Everything in MainUI gets stored in the JSONDB. It is best to use the REST API to interact with the JOSNDB rather than editing it yourself. For one thing you’ll have to stop OH before making any such changes or else OH will overwrite them.
I’m pretty sure you’ll use the
ui REST end point but you’ll probably have to research the code or do some queries and experiments to figure out what the JSON needs to look like.
Have you worked out the Semantic Model yet? I’d be willing to bet that most of those charts are already dynamically generated. All Items that are queryable from the DB will be dynamically chartable individually. You can even put an outline of the chart behind the Item’s card.
When you put your Items into a Model a chart with all the Items will be available for all the Items of a given Property type automatically by clicking the “Analyze All” button at the bottom of the card.
The Items shown and the time period can be dynamically adjusted. Changes to the chart config can be saved as a new Chart page.
You can also create custom widgets with a custom Analyze All function to dynamically generate charts in that widget. In short you can add an “Analyze Item(s)” action to any widget which will add that “Analyze All” button and open a dynamically generated chart with the configured Items when clicked.
And again, you can customize these Charts and save them if you want to use them on a Chart Page.
In general, MainUI charts are mostly intended to be dynamically generated in these ways and not statically like your current setup is configured. Also, these charts can’t be used in a sitemap so the use cases you’re after really isn’t supported in MainUI anyway. So it might be worth considering adjusting your use case so it better fits with the MainUI model or sticking with the Grafana model and sitemaps.