• Recent
    • Tags
    • Popular
    • Register
    • Login

    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.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Solved Customizing report charts?

    User help
    3
    4
    2.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • sjobbeS
      sjobbe
      last edited by

      Hello

      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.

      Example:

      Untitled.png

      1 Reply Last reply Reply Quote 0
      • JoelHaggarJ
        JoelHaggar
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • sjobbeS
          sjobbe
          last edited by sjobbe

          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

          1 Reply Last reply Reply Quote 0
          • terrypackerT
            terrypacker
            last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post