Closed theknut closed 5 months ago
Additionally the documentation needs to be updated accordingly. I have an updated script for writing the signal values using InfluxDB. I can update the documentation with the same PR, if you like.
Works very well. For the documentation in the Wiki, all that needs to be noted is that the yAxisTicks parameter is not required in the PageItem and is calculated automatically in this case.
I'll do that together with the next upcomming PR.
IMHO the
yAxisTicks
parameter forchartPage
is a little bit hard to understand, given the required formatting. Besides that, in the example theyAxisTicks
for the office temperature are from -25° to +25° C which makes no sense, at least for me. But there is really no need to provide them at all because we can caluclate the yAxisTicks based on the provided values. In this pull request there is an added algorithm which calculates the ticks if noyAxisTicks
was provided for the page. This makes configuring thechartPage
a little bit easier and more responsive.Example debug logging:
Notice how the amount of calculated ticks changes with the given range of values to display.