Products Downloads


French version


 

Used to represent a "Dial"-type chart. Based on the Java XChart DialChart class.



Style parameter

Hash object for which the keys are style property names and the values the value associated with each property. This object groups together a set of base properties which are common to all types of chart as well as a set of properties which are specific to "Dial" charts.


Base styles (Java XChart Styler class)

Property name

Value type

AnnotationsFont

Cf. Java Font Type

AntiAlias

Boolean

BaseFont

Cf. Java Font Type

ChartBackgroundColor

Cf. Java Color Type

ChartFontColor

Cf. Java Color Type

ChartPadding

Number (integer)

ChartTitleBoxBackgroundColor

Cf. Java Color Type

ChartTitleBoxBorderColor

Cf. Java Color Type

ChartTitleBoxVisible

Boolean

ChartTitleFont

Cf. Java Font Type

ChartTitlePadding

Number (integer)

ChartTitleVisible

Boolean

DecimalPattern

String

HasAnnotations

Boolean

LegendBackgroundColor

Cf. Java Color Type

LegendBorderColor

Cf. Java Color Type

LegendFont

Cf. Java Font Type

LegendLayout

String "Vertical", "Horizontal"

LegendPadding

Number (integer)

LegendPosition

Strings "OutsideE", "InsideNW", "InsideNE", "InsideSE", "InsideSW", "InsideN", "InsideS", "OutsideS"

LegendSeriesLineLength

Number (integer)

LegendVisible

Boolean

PlotBackgroundColor

Cf. Java Color Type

PlotBorderColor

Cf. Java Color Type

PlotBorderVisible

Boolean

PlotContentSize

Number (decimal)

SeriesColors

Color sequence 
Cf. Java Color Type

SeriesLines

Property not supported

SeriesMarkers

"Circle", "Cross", "Diamond", "None", "Oval", "Plus", "Rectangle", "Square", "Trapezoid", "TriangleDown", "TriangleUp" string sequence

Theme

String 
"XChart", "GGPlot2", "Matlab"

ToolTipBackgroundColor

Cf. Java Color Type

ToolTipBorderColor

Cf. Java Color Type

ToolTipFont

Cf. Java Font Type

ToolTipHighlightColor

Cf. Java Color Type

ToolTipsAlwaysVisible

Boolean

ToolTipsEnabled

Boolean

ToolTipType

String "xLabels", "yLabels", "xAndYLabels"

YAxisGroupPosition

Sequence of sequences with a length of 2. Each sub-sequence contains a Number (integer) and a "Left", "Right" String.

Specific styles (Java XChart DialStyler class)

ArcAngle

Number (decimal)

ArrowArcAngle

Number (decimal)

ArrowArcPercentage

Number (decimal)

ArrowLengthPercentage

Number (decimal)

AxisTickLabels

String sequence

AxisTickLabelsVisible

Boolean

AxisTickMarksColor

Cf. Java Color Type

AxisTickMarksStroke

Property not supported

AxisTicksMarksVisible

Boolean

AxisTickValues

Number sequence (decimal)

AxisTitleFont

Cf. Java Font Type

AxisTitlePadding

Number (integer)

AxisTitleVisible

Boolean

Circular

Boolean

DonutThickness

Number (decimal)

GreenColor

Cf. Java Color Type

GreenFrom

Number (decimal)

GreenTo

Number (decimal)

NormalColor

Cf. Java Color Type

NormalFrom

Number (decimal)

NormalTo

Number (decimal)

RedColor

Cf. Java Color Type

RedFrom

Number (decimal)

RedTo

Number (decimal)

↑ Top of page


Series parameter

Sequence of Hash objects representing the data series of the "Dial" chart. Also, style properties can be defined for each series. Each Hash object represents a series: these properties enable data values as well as style property values to be stored.


Data properties of a series

A "Dial" chart series is represented by its name and a single value (Cf. addSeries methodhttps://knowm.org/javadocs/xchart/org/knowm/xchart/DialChart.html).


Property name 

Value type 

Mandatory 

name

String

Y

value

Number (decimal)

Y

annotation

String

N

↑ Top of page


Style properties of a series

These properties are used to specify a series by overloading a style property defined in the Hash object of the macro's Style parameter. Each property is defined in an XChart class (Series base class or specific DialSeries class) by its "setter" method.

When one of these properties is used in this macro, its Freemarker type is that which corresponds to the associated Java type.


Base series styles (Java XChart Series class)

Property name

Value type

Enabled

Boolean

FillColor

Cf. Java Color Type

Label

String

ShowInLegend

Boolean

YAxisGroup

Number (integer)

Specific series styles (Java XChart DialSeries class)

LineColor

Cf. Java Color Type

LineStyle

Property not supported

LineWidth

Number (decimal)

Marker

Strings "Circle", "Cross", "Diamond", "None", "Oval", "Plus", "Rectangle", "Square", "Trapezoid", "TriangleDown", "TriangleUp"

MarkerColor

Cf. Java Color Type

↑ Top of page


  • Aucune étiquette