Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

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:
{0} - The series name.
{1} - The (pre-formatted) x-value
{2} - The (pre-formatted) y-value
Default (from JFreeChart): Empty - no label

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.
Example:
<property name="labelRotation">7.0</property>

maxCategoryLabelWidthRatio

Decimal

Sets the maximum category label width. See the JFreeChart reference manual setMaximumCategoryLabelWidthRatio for more details.

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").
Example:
<property name="seriesColor[0]">#018FE1</property>
<property name="seriesColor[1]">#CB02D2</property>

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).

Class Descendants

  • No labels