Group digits and round in a Line chart, Mendix Charts widget

0
Hi, i am using the Mendix Charts, I have a Line Chart where i want to group digit the value en round to 0 decimals. So 5330033,45548214 needs to be : 5.330.033 Does anybody know what to do i added the line chart and the config of the linecharts: Do i need to
asked
3 answers
0

Not sure, but looking at the plotly (where the Mendix Charts is bases upon) documentation,

this might help you: https://plot.ly/javascript/reference/#scatter-marker-colorbar-separatethousands

or

https://plot.ly/javascript/reference/#scatter-marker-colorbar-tickformat

In any case; Plotly is the chart library underneath the Mendix charts, so take a look at their documentation!

answered
0

Hi Mayhan,

  The specific plotly property you are interested in is separatethousands.  This is a Boolean that will group your digits as outlined in the plotly documentation.  When combined with the rounding solution outlined in your last question you will get the full solution.  It will look something like:

{ "font": { ……} "yaxis" : { "zerolinewidth": 1, "zerolinecolor": "black", "hoverformat": ".0f", "separatethousands: "true"}….

To experiment with new properties quickly using Mendix Charts, don't forget to enable 'Developer' mode on the 'Advanced' tab of your chart.  This will give you a live editing tab for your plotly chart where you can try out new properties.  Anything in the plot.ly Javascript reference documentation should be yours to explore and try.

Good luck!

answered
0

answered