Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

scadh's avatar
Level 1

Nova Trend Metric data point plotting

I'm having an issue with the Nova Trend Metric. Specifically, the data plotted on the line chart always ends on the most recent date that has a non-zero value. I am plotting a count of daily Event Enrollments with options for 7, 30 and 365 days. If the current date (Chronos::now()) has a non-zero value of Event Enrollments, it is shown in the right-most data point in the chart; if the value is zero, then the right-most data point is yesterday... or however many days back it is until a non-zero value is found. Either way, the left-most of the chart is always relative to whichever end date is shown (e.g. if i select a period of 7 days and the plotted "end date" is 3 days ago, then the plotted "start date" will be 10 days ago).

From a data point of view, I understand why this happens. From a "what people expect" point of view, I do not. I would like the end date to be fixed as the current date, with the start date always relative to that. If the most recent 3 days have no Event Enrollments, then plot zeros instead of skipping them. Empty values in the middle of the date range ARE plotted as zero and I'd like to see this same behavior at the end of the date range. To the point that if there have been no new enrollments in last 7 days, the line chart plots 7 days of zeros.

Is this something that can be overcome and, if so, could someone point me in the right direction?

0 likes
0 replies

Please or to participate in this conversation.