Solved Customizing report charts?
Is it possible to customize the report charts? The graphs are too small and the header source should be "Device Name" instead of "Name". Also Data type, Sum and Count data is irrelevant.
Sure, you can create a new template file in /web/modules/reports/web/ftl/ or edit the one called reportChart.ftl. Then select the template you want when editing the report
Got it! What about changing the actual graph? In the .ftl it is only like this:
I'd like to add more width to it
The image is created prior to generating the HTML via the FTL template. The images all have preset sizes and are generated at this size when the report is created.
A future feature could be allowing sizes to be set in the report configuration.
However there is a way to generate different size charts via the Chart Servlet. This is the servlet that generates the charts on the Data Point Details page. The help for this can be accessed via the help icon in the System Settings --> Chart API Settings. These charts are different than the report charts but it should be possible to use this chart instead if you can create the URL properly in the template.