-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Charts] Support BarChart with scaleType: time #12537
Comments
The mains reason why From what I understand, the main benefit of your proposal would be to have a nice formatting out of the box, instead of having to define formater as follow valueFormatter: (date, context) =>
context.location === 'tick'
? date.toLocaleTimeString(/* option to only display hours */)
: `date.toLocaleString(/* option for the entire timestamp */)`, Do I miss other nice feature it would bring? |
Not quite exactly, it's not uncommon to represent time series with bars, or stacked bars. Especially when the data points are evenly spaced. Yet, the way I understand, the X-axis for a time series gets formatted differently than just formatting tick marks: Here there is for instance the "...11PM Sat 23 01AM..." and it looks like it also adapts the amount of ticks to the available space. Basically, I'd like a variant on line/area chart but where the line is represented by bars. e.g. see also https://grafana.com/docs/grafana/latest/panels-visualizations/visualizations/time-series/#time-series => https://play.grafana.org/d/000000016/1-time-series-graphs?orgId=1&viewPanel=17 |
@Janpot: How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
Summary
Trying out charts on a small weather dashboard. Would like to show precipitation over time in a bar chart. See bottom chart on https://dashboard-framework-prototype.vercel.app/forecast. Would like the X-axis to look like the other two charts.
Would it make sense to add a
bars: true
to theLineChart
series, analog to thearea: true
?Examples
No response
Motivation
No response
Search keywords: barchart time
The text was updated successfully, but these errors were encountered: