Ask A Cartographer

Is there a way to change the color of each bar in a bar graph?

November 07 2007 | 0 comments
Categories: ArcGIS Methods, Symbology

Is there a way to change the color of each bar in a bar graph? I don't like the default colors
assigned to them.

Mapping Center Answer:

There are a couple options. First, I’m assuming you’re not depending on your layer’s colors, and that you’re using 9.2 Both start with opening the window for your graph (Tools menu -> Graphs –> Name of the graph).

Change the palette

1.  Right-click anywhere on the graph and choose Properties (the last choice).
2.  In the Series tab, a little over half way down, you can choose a different color palette. These include options to use colors defined in templates (I’ll explain why that’s important later).

Customize each color:

1.  Right-click anywhere on the graph and choose Advanced Properties (next to the last choice). That will open up the Editing dialog box.
2.  On the left, select the “Data” item (next the last).
3.  Then in the lower right, click on the square palette (16 colored chips).
4.  Double click on any of the colors you want to change.

The one problem with this latter method is that there’s a bug in the design of the chart engine we use and we cannot figure out a way to store your color changes permanently, i.e., when you save your MXD. There are two options:

1.  Right-click on the graph, once you’ve got the colors looking right, and choose “Copy as Graphic” and paste it into your layout. That graphic will have the correct colors and retain them when you save the layout. I at a minimum do this.
2.  Create template (hence my above reference). Right-click on the graph and choose Export. Click the Native tab, and then Save. This will save a .tee file. Which when saved in your C:\Program Files\ArcGIS\GraphTemplates folder should make that template available from the Load Template button. The trick is that you’ll need to save a template for each type of graph you make, which will only save you time if you make these graphs frequently; otherwise just use option 1.

If you would like to post a comment, please login.

Contact Us | Legal | Privacy |