Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.
Solved Customizing report charts?
-
-
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:
<img src="${inline}${point.chartPath}"/>
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.