Graph 1 bar per day
See the attached photo, From the code I wrote. Get results as i attached the picture. But i want to get 1 bar graph per day using the maximum value.
thank you support.!
There is a way to do this exactly the way you want but I'll share a few other ideas that you might be interested in.
I would suggest using the Date Bar. To enable this edit the menu item and select "Data and Rollup".
You can also make buttons to control the date bar like in this example https://help.infiniteautomation.com/buttons-to-set-date-bar/
You can also set a default rollup and chart type for each Data Point when editing the Data Point details on the Data Source page.
Here is an example of using the date and rollups from the date bar. If you set the default rollup for the Data Point then this will be passed through
<ma-watch-list-chart watch-list="designer.watchList" points="designer.points" from="dateBar.from" to="dateBar.to" rollup-type="dateBar.rollupType" rollup-intervals="dateBar.rollupIntervals" rollup-interval-period="dateBar.rollupIntervalPeriod" simplify-tolerance="dateBar.simplifyTolerance"></ma-watch-list-chart>
Look at the API documentation for ma-point-values under /ui/docs/ng-mango/ma-point-values
I think you just need to remove the auto-rollup-interval="true" add in