I like to call the this from sitemap direct or indirect. Is this possible?
Here is an example sitemap code for a rrd4j graph where rrd4j data can be switched between hour, day, week and month. You need to create a switch item for that.
Switch item=PowerConsumptionInWatt_Diagramm label="Bezugs-/Einspeiseleistung (Y-Achse in Watt)" icon="chart" mappings=[0="Stunde", 1="Tag", 2="Woche", 3="Monat"]
Chart item=TwoWayMeter_PowerConsumptionInWatt period=h refresh=60000 service="rrd4j" legend=true visibility=[PowerConsumptionInWatt_Diagramm == "0"]
Chart item=TwoWayMeter_PowerConsumptionInWatt period=D refresh=60000 service="rrd4j" legend=true visibility=[PowerConsumptionInWatt_Diagramm == "1"]
Chart item=TwoWayMeter_PowerConsumptionInWatt period=W refresh=60000 service="rrd4j" legend=true visibility=[PowerConsumptionInWatt_Diagramm == "2"]
Chart item=TwoWayMeter_PowerConsumptionInWatt period=M refresh=60000 service="rrd4j" legend=true visibility=[PowerConsumptionInWatt_Diagramm == "3"]
This is a screenshot of the related graph integration from my sitemap. Works on the mobile phone as well.
The chart you show is not created by rrd4j. That chart is created by MainUI. The code to generate the chart actually runs in your browser. In order to generate that chart from a sitemap, that code must be in the sitemap viewer you are using (e.g. BasicUI). And that code doesn’t exist there.
However, you could create a Chart page in MainUI and use a webview to show the chart page in the sitemap. But you’ll get the whole MainUI, not just the chart.
As you hopefully know, sitemaps do support their own charting through the Chart element as shown in @dk8pn’s reply. These charts are not as flexible as MainUI’s charts though.
Thanks for clarification. I forgot to point out that i use BasicUI on my Windows computer as well as on my mobile phone.
I also apply Webview, just above the rrd4j graph in my sitemap. See screenshots of my PC and my mobile phone:
One disadvantage of such Chart elements that sometimes affects me, is auto scale. But for most of my applications, they are very useful.
Thanks. I used this in the past but is not as nice as the integrated solution.
I know. It would be nice if there was a way to call a chart created by ManinUI from outside.



