Chart styles
Charts obtain the following formatting from the
GlobalStyleSheet.css
.
Item
Style
Charts
1 pt light gray border
Titles and labels
10 point bold font
Additionally, when you create a new chart, do the following to make it match the existing chart reports.
Use the default width, unless there is more than one chart on the report. When you include multiple charts in a single report, set the chart width to 750px.
To use gradients and color palettes, copy and paste the strings from the table in
Global report styles
into the XML report specification.
General guideline: select the chart type based on the data you expect to be returned.
Use line graphs as the chart type only when you can guarantee the report will retrieve continuous data.
If there are multiple series, a stacked bar works better than a non-stacked bar.
As a best practice, use percentages only when the total percentage equals 100%. Pie charts tend to confuse people when the values do not add up to 100%.
If there are only two series on a chart and you display both the Y1 and Y2 axes, as a best practice you should match the colors to the first two palette colors for the axis labels.
Following is a chart that does not use the global styles.
Following is a chart that uses the global styles and has additional formatting applied.
Copyright IBM Corporation 2014. All Rights Reserved.