Closed redstreet closed 5 months ago
Sounds doable. Let me have a look.
Question about this: are you interested in using a bar chart for time series data where, for example, the month appears on the x-axis and the sum of the data points is plotted on the y-axis? Or is this more for showing cumulative data, such as total miles run?
I'm personally interested in the former.
I'm interested in plotting individual, average, and sums of daily, time series data.
One additional note: would it be possible to default to zero for days where the property is missing?
Thank you!
Alright, so I'm thinking that it can have two ranges for the x-axis: daily or monthly. For daily it would plot entries for the past N days, and sum up the data for each day. In monthly mode it would plot entries for the past N months and display either the total or daily average for that month. Does that sound like what you're looking for?
I was thinking of it slightly differently:
At a basic level, I was thinking of simply being able to select a bar chart as an option to replace the current line chart, which works much better for non continuous data. In addition, the ability to assume default value of 0 for days on which a value is not available.
To add to this, a chart (bar and line would both be options) to plot the average, grouped over N days. This generalizes it. More specifically:
plot_aggregate(metric, "average/sum", start-date, time_period(N))
Here is an example: say I want to analyze how many minutes of running I do per day, which I log daily in my journal. I might be interested in:
plot_aggregate(running_minutes, average, 2022-11-01, 7)
Does that seem reasonable and useful? Happy to engage more on this if needed.
I join this feature request. I will use it to know which sport I look more, or which type of movie. But without the friction to open the panel and add data to the page plugin-metric-data. Like this I can have template already made and just change the data inside.
Implemented in version 0.22. Let me know what you think!
Wondering if it would be hard to include a
properties-bar
like the existingproperties-line
? Thanks for considering!