Prevent commas from X axis in Scatter Plot

chakravarthy_rachakravarthy_ra Member Posts: 6 Contributor II
edited March 2020 in Help

I have a int value on the x axis, and a real number value on the y axis, of a scatter plot in a web app. The x axis is year-date (yyyyww). However, since it sees it as an int, the scatter plot puts a comma in between the digits. How do i avoid the comma ? 

Best Answer

  • sgenzersgenzer Administrator, Moderator, Employee, RapidMiner Certified Analyst, Community Manager, Member, University Professor, PM Moderator Posts: 2,959 Community Manager
    Solution Accepted

    yup - as usual @IngoRM is the guru.  Seems to solve the issue for me.

     

    <?xml version="1.0" encoding="UTF-8"?><process version="8.0.001">
    <context>
    <input/>
    <output/>
    <macros/>
    </context>
    <operator activated="true" class="process" compatibility="8.0.001" expanded="true" name="Process">
    <process expanded="true">
    <operator activated="true" class="operator_toolbox:generate_univariate_series" compatibility="0.8.000" expanded="true" height="68" name="Generate Univariate Series" width="90" x="45" y="34">
    <parameter key="min" value="201600.0"/>
    <parameter key="max" value="201612.0"/>
    </operator>
    <operator activated="true" class="generate_attributes" compatibility="8.0.001" expanded="true" height="82" name="Generate Attributes" width="90" x="179" y="34">
    <list key="function_descriptions">
    <parameter key="foo" value="rand()"/>
    </list>
    </operator>
    <operator activated="true" class="format_numbers" compatibility="8.0.001" expanded="true" height="82" name="Format Numbers" width="90" x="313" y="34">
    <parameter key="attribute_filter_type" value="single"/>
    <parameter key="attribute" value="att1"/>
    </operator>
    <connect from_op="Generate Univariate Series" from_port="output" to_op="Generate Attributes" to_port="example set input"/>
    <connect from_op="Generate Attributes" from_port="example set output" to_op="Format Numbers" to_port="example set input"/>
    <connect from_op="Format Numbers" from_port="example set output" to_port="result 1"/>
    <portSpacing port="source_input 1" spacing="0"/>
    <portSpacing port="sink_result 1" spacing="0"/>
    <portSpacing port="sink_result 2" spacing="0"/>
    </process>
    </operator>
    </process>

    foo.png

     

    Scott

     

     

Answers

  • sgenzersgenzer Administrator, Moderator, Employee, RapidMiner Certified Analyst, Community Manager, Member, University Professor, PM Moderator Posts: 2,959 Community Manager

    hello @chakravarthy_ra - that's an interesting one. Can you please post a screenshot of your app graph?

     

    Scott

     

  • IngoRMIngoRM Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, Community Manager, RMResearcher, Member, University Professor Posts: 1,751 RM Founder

    Hi,

     

    In the meantime, you might want to try out the operator "Format Numbers".

     

    Cheers,

    Ingo

    sgenzer
  • chakravarthy_rachakravarthy_ra Member Posts: 6 Contributor II

    Sorry i did not respond in time. Here is the image ....RatingComparator2.png

Sign In or Register to comment.