This tutorial helps you discover the various preferences you can set in your chart stylesheet. You can edit the live stylesheet below and hit the 'refresh' icon or [ctrl-s] to view the affected areas.
Components
axis_category
Sets the label attributes for the category-axis. The category-axis is the horizontal axis or x-axis. This axis appears vertical in bar charts.
- skip: Default is '0'
If this axis holds too many labels, the skip key allows skipping (hiding) some labels. A zero value doesn't hide any labels. If the skip value is 1, then the first label is displayed, the following label is skipped, and so on. If the skip value is 2, then the first label is displayed, the following 2 are skipped, and so on. Another way to hide labels is by passing empty strings to chart_data in place of category labels. - font: Default is 'arial'
The font used in the category-axis. See the Fonts section below. - bold: Default is 'true'
A boolean value that indicates whether the font is bold or not. - size: The font's size. The default font size is calculated based on the chart size
- color: Default is '000000'
The font's color. This must be a string holding triple hexadecimal values representing the red, green, and blue components for a color. - alpha: Default is '90'
This affects the labels' transparency, only when the embedded font is used (see the Fonts section below.) Valid values are 0 (fully transparent) to 100 (fully opaque). To hide all labels in this axis, set the alpha to 0 - orientation: Default is 'horizontal'
This affects the labels' orientation, only when the embedded font is used (see the Fonts section below.) Valid values are horizontal, diagonal_up, diagonal_down, vertical_up, and vertical_down. Polar charts also accept the value circular. - margin: Default is 'false'
This applies to area, stacked area, and line charts only. It's a boolean value that indicates whether to leave a margin on the left and right of the graph, or bump it against the left and right chart borders. In mixed charts, there's always a margin to algin area and line charts with column charts - min: This applies to scatter charts only, when the category-axis is calculated like the value-axis. This determines the minimum value to start this axis with. The default is calculated from the chart's data
- max: This applies to scatter charts only, when the category-axis is calculated like the value-axis. This determines the maximum value to end this axis with. The default is calculated from the chart's data
- steps: Default is '4'
This applies to scatter charts only, when the category-axis is calculated like the value-axis. This determines the number of steps between the minimum and maximum values. If the minimum value is negative, and the maximum value is positive, then 'steps' is the number of steps between zero and the larger of max and absolute min. - prefix: Default is ''
This applies to scatter charts only, when the category-axis is calculated like the value-axis. This determines the characters to add before the value numbers (example: $10). - suffix:Default is ''
This applies to scatter charts only, when the category-axis is calculated like the value-axis. This determines the characters to add after the value numbers (example: 10%). - decimals: Default is '0' (no decimals)
This applies to scatter charts only, when the category-axis is calculated like the value-axis. This determines the number of decimal places to the right of the decimal point (example: 10.45). - decimal_char: Default is '.' This applies to scatter charts only, when the category-axis is calculated like the value-axis. This determines the character to use at the left of a decimal fraction (example: 1.5).
- separator: Default is '' This applies to scatter charts only, when the category-axis is calculated like the value-axis. This determines the character to place between every group of thousands (example: 1,000,000).
