The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Prevent commas from X axis in Scatter Plot
chakravarthy_ra
Member Posts: 6 Contributor II
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 ?
0
Best Answer
-
sgenzer Administrator, Moderator, Employee-RapidMiner, RapidMiner Certified Analyst, Community Manager, Member, University Professor, PM Moderator Posts: 2,959 Community Manager
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>Scott
0
Answers
hello @chakravarthy_ra - that's an interesting one. Can you please post a screenshot of your app graph?
Scott
Hi,
In the meantime, you might want to try out the operator "Format Numbers".
Cheers,
Ingo
Sorry i did not respond in time. Here is the image ....