Grapher offers two ways to change the individual bar colors on a bar chart: using a color table or using a color column/row.
Method 1: Color Table
Use a color table to set define a number of colors that are used to fill each bar in order. Any number of colors can be defined The colors in the table are repeated if there are more bars than defined colors by default.
- Click the Bar Chart in the Object Manager to select it.
- In the Property Manager, click on the Fill tab.
- Check the box next to Use color table. The bar chart will change to a variety of default colors.
- Click Set button next to the Color table command.
- In the Color Table dialog, make any changes to customize the individual bar colors or patterns. The colors will appear in the order they are listed on the left side of the dialog. To change a color or pattern, click on the color on the left side and make changes on the right side of the dialog.
- Click OK to update the plot.
- To show a legend of the Color table fill colors, check the Show color table legend on the Fill tab in the Property Manager.
Method 2: Color Column/Row
Use a color column or row to designate a specific color for each bar in your data file. In addition to the information to create the bar chart, an additional color column/row in the worksheet is needed. This column/row must contain the color name or the RBG/RGBA value (for Grapher 15 and newer).
- Click the Bar Chart in the Object Manager to select it.
- In the Property Manager, click on the Fill tab.
- Click None next to Color variable and select the worksheet color column/row. The bars are each filled appropriately.
- To determine appropriate color names, click on any filled object in Grapher. On the Fill page in the Property Manager, click the color next to Foreground color. Select the desired color and the color name is shown.
Select the desired color and the color name appears beside it.
- Instead of color names, Grapher 15 and newer versions support the use of RGB or RGBA values in the color column/row. These can be specified in the following formats:
- RGB(255, 255, 255)
- \COLOR(255, 255, 255, 255)
- R255 G255 B255
- R255 G255 B255 A255
- \RGBR255 \RGBG255 \RGBB255
Updated March 9, 2020
Comments
0 comments
Please sign in to leave a comment.