CategoricalChartExpression
Description
The CategoricalChartExpression is the ancestor for all categorical chart types. It inherits from AbstractChartExpression, and adds several additional properties specific to categorical chart types.
CategoricalChartExpression Properties
Property Name |
Data Type |
Description |
---|---|---|
categoricalItemLabelRotation |
Decimal |
Rotation of the categorical item label, between 0 and 1. |
categoricalLabelDateFormat |
String |
Only used if categoricalLabelFormat is specified. Should contain a valid Java SimpleDateFormat mask for formatting the date value. Use this to format Java Date types. For formatting numbers, see categoricalLabelDecimalFormat. |
categoricalLabelDecimalFormat |
String |
Only used if categoricalLabelFormat is specified. Should contain a valid Java DecimalFormat mask for formatting the decimal number. Use this to format numbers. For formatting dates, see categoricalLabelDateFormat. |
categoricalLabelFormat |
String |
When the categorical chart is generated, by default, the bars (for example) don't have any visible value. Sometimes, it's desirable to see the actual value associated with each bar, or each line. Can be a combination of text, and any of the following replaceable parameters: |
categoryAxisLabel |
String |
The label for the categorical axis (commonly called the X-Axis). |
horizontal |
Boolean (true/false) |
If true, the x-axis and y-axis will be swapped. Commonly used for horizontal bar charts, but could also be used for |
labelRotation |
Decimal |
Rotation percentage for the category labels. |
maxCategoryLabelWidthRatio |
Decimal |
Sets the maximum category label width, expressed as a percentage of (a) the category label rectangle, or (b) the length of the range axis. |
seriesColors |
Array of Strings |
Zero-based array of strings, one color for each series (bar for example). Each element is a color in either HTML notation (like #80f000), or one of the w3c defined color names (like "cadet blue"). |
showGridLines |
Boolean (true/false) |
If true, will show Domain grid lines (see the JFreeChart reference manual setDomainGridLinesVisible for additional details). |
valueAxisLabel |
String |
The label for the value axis (commonly called the Y-Axis). |