Graph time series as bars
This section explains how to use Time series field options to visualize time series data as bars and illustrates what the options do.
Create the panel
- Add a panel. Select the Time series visualization.
- In the Panel editor side pane, click Graph styles to expand it.
- In Style, click Bars.
Style the bars
Use the following field settings to refine your visualization.
Some field options will not affect the visualization until you click outside of the field option box you are editing or press Enter.
Set the position of the bar relative to a data point. In the examples below, Show points is set to Always to make it easier to see the difference this setting makes. The points do not change; the bars change in relationship to the points.
The bar is drawn before the point. The point is placed on the trailing corner of the bar.
The bar is drawn around the point. The point is placed in the center of the bar. This is the default.
The bar is drawn after the point. The point is placed on the leading corner of the bar.
Set the thickness of the lines bar outlines, from 0 to 10 pixels. Fill opacity is set to 10 in the examples below.
Line thickness set to 1:
Line thickness set to 7:
Set the opacity of the bar fill, from 0 to 100 percent. In the examples below, the Line width is set to 1.
Fill opacity set to 20:
Fill opacity set to 95:
Set the mode of the gradient fill. Fill gradient is based on the line color. To change the color, use the standard color scheme field option.
Gradient appearance is influenced by the Fill opacity setting. In the screenshots below, Fill opacity is set to 50.
No gradient fill. This is the default setting.
Transparency of the gradient is calculated based on the values on the y-axis. Opacity of the fill is increasing with the values on the Y-axis.
Gradient color is generated based on the hue of the line color.
Choose when the points should be shown on the graph
Grafana automatically decides whether or not to show the points depending on the density of the data. If the density is low, then points are shown.
Show the points no matter how dense the data set is. This example uses a Line width of 1. If the line width is thicker than the point size, then the line obscures the points.
Set the size of the points, from 1 to 40 pixels in diameter.
Point size set to 6:
Point size set to 20:
Never show the points.
For full instructions, refer to Graph stacked time series.
For full instructions, refer to Change axis display.
Bar graph examples
Below are some bar graph examples to give you ideas.
Related Grafana resources
Unify your data with Grafana plugins: Splunk, MongoDB, Datadog, and more
Show how Grafana can be used to take data from multiple different sources and unify it, without disrupting the investments that are working today.
Getting started with Grafana Enterprise and observability
Join the Grafana Labs team for a 30-minute demo of how to get started with the Grafana Stack, so you can go from zero to observability in just a few minutes.