Skip to content

How can I highlight a single bar? ​

The chart settings have no option to emphasize a specific bar on a chart. However, you can use a small trick with your data and the stacking settings to highlight it.

In this article

Prepare your data ​

First, prepare your data. For example, suppose you have a chart with one series, and its data looks like this:

text
Year	|   Austria
string	|   number   
2003	|   1336060
2004	|   1538156
2005	|   1576579
2006	|   1600652
2007	|   1968113
2008	|   1901067

Original chart ​

Bar chart before highlighting

To highlight the value for 2006, add one more column with the same title and type as the first series, but with empty values:

text
Year	|   Austria	|   Austria
string	|   number	|   number
2003	|   1336060	|   
2004	|   1538156	|   
2005	|   1576579	|   
2006	|   1600652	|   
2007	|   1968113	|   
2008	|   1901067	|

Then move the selected value from the first series to the second one:

text
Year	|   Austria	|   Austria
string	|   number	|   number
2003	|   1336060	|   
2004	|   1538156	|   
2005	|   1576579	|   
2006	|               |   1600652
2007	|   1968113	|   
2008	|   1901067	|

After doing so, save your CSV or XLSX file with the data changes.

Highlighted chart ​

Bar chart with the 2006 bar highlighted

Set up the chart ​

Next, set up the chart settings:

  1. Create a new chart or edit an existing one, and upload the prepared CSV or XLSX file ( PRO ).

  2. Go to the chart settings screen and, under Bars Settings, set the Is Stacked option to Yes.

    Is Stacked option set to Yes in Bars Settings

  3. Remove the second series from the legend: under the Series Settings group, set the Visible In Legend option to No for that series.

    Visible In Legend option set to No in Series Settings

  4. Save the chart and embed it on a page.

Was this helpful?