Floating point values line chart
-
Hi all. I'm making some tests with line charts of 3.x of the dashboards module. I'm trying to plot historical values of a floating point sinusoidal virtual data point by means of the following code.
<ma-point-values point-xid="energy" values="point2Values" from="from" to="to" rollup="AVERAGE" auto-rollup-interval="true"> </ma-point-values> <ma-serial-chart style="height: 300px; width: 100%" series-1-values="point2Values" balloon="true" export="true"> </ma-serial-chart>
Also if "energy" data are floating point values, on the chart I see them as integers. Maybe with <ma-serial-chart> directive is it possible to plot just the integer data?
Thanksa a lot.
Stefano -
Hi Larry,
The charts should definitely display the values as floating point. If you view the data on the data points detail page can you see floating point values?
Jared
-
Hi Jared, thanks for your reply. Yes, on the detail page I can see floating point values.
You can appreciate the same behaviour on the Custom Dashboard Module; please check the "outside temp value" plot on the Line Chart example page (YOUR_MANGO/dashboards/examples/charts/line-chart). The demo "outside temp" value is a floating point data. If you pass with mouse on the line to show the ballon, you will read just the integer value. Moreover if you check the "voltage" data you should see an often constant function's trend; this occurs because the voltage data has very small increments.
Therefore I suppose that the chart is composed by rounded integer values which are interpolated between them to obtain a continue plot. Is it correct? If so, how can I change this behaviour? Thanks a lot!
-
Unfortunately I can't replicate what you are seeing, I can see the floating point values. Are you using the latest dashboard module? v3.2.1?
The other suggestion I can make is playing with the
series-x-type
attributes on the serial chart and also look at setting the various valueAxis options as shown in the "Advanced Chart" example.