Charts: howTo draw lines like rrd4j using other persistences

I switched completely to non rrd-persistence for standard-persistence, so my charts look like this:

Which is a bit confusing, because JDBC/MariaDB handles states completely different and the lines try to “mimick” in-between states with drawing a … line.

with rrd4j it looks like this:

I find this kind of charts much better. Is there a way to “trick” charts into doing exactly that?

and while we’re at it, if this “trick” involves also the legend to show all states “at once” (see Charts all values legend and non rrd4j-persistence), that would be great!

You can use e.g. service: inmemory below an item’s config: to chart from inmemory persistence.

1 Like

There is no “trick” here. With rrd4j data must be persisted every minute. So what you are seeing are actual data points from the persistence. It looks like you have set your new persistence to only have a strategy of every change, so it can only plot those occasional points.

If you are making these charts yourself, then there is a a way control whether the chart draws diagonal lines or only horizontal and vertical lines:

If you are just bringing up an item’s default graph, then I don’t think there is anyway to modify the chart options to get what you want.

1 Like

I might have misunderstood the original question but I would suggest to try this:

step: end

In the code part of the graph definition… Standard line graph, just add this extra definition and I think you’ll get what you want…

1 Like

step: end really does the trick. There is no configuration on the “Edit” portion, even in “advanced” mode, or is there?
InMemory could also do it I guess, but the graph definition works fine!

(and yes, this only works in “Pages - Charts” context, not if you just load one or more items in a graph like the “Analyze” link on items does.)