Class CategoryAxesSettings

CategoryAxesSettings settings set's settings common for all CategoryAxes of StockPanels. If you change a property after the chart is initialized, you should call stockChart.validateNow() method in order for it to work. If there is no default value specified, default value of CategoryAxis class will be used.

Index

Properties

Properties

public autoGridCount: boolean

Specifies whether number of gridCount is specified automatically, according to the axis size.

default

true

public axisAlpha: number

Axis opacity.

public axisColor: string

Axis color.

public axisHeight: number

Height of category axes. Set it to 0 if you set inside property to true.

default

28

public axisThickness: number

Thickness of the axis.

public color: string

Text color.

public dashLength: number

Length of a dash.

public dateFormats: Array<any>

Date formats of different periods. Possible period values: fff - milliseconds, ss - seconds, mm - minutes, hh - hours, DD - days, MM - months, WW - weeks, YYYY - years. Check this page for date formatting strings.

public equalSpacing: boolean

If you want data points to be placed at equal intervals (omiting dates with no data), set equalSpacing to true.

public fillAlpha: number

Fill opacity. Every second space between grid lines can be filled with fillColor.

public fillColor: string

Fill color. Every second space between grid lines can be filled with color. Set fillAlpha to a value greater than 0 to see the fills.

public fontSize: number

Text size.

public gridAlpha: number

Opacity of grid lines.

public gridColor: string

Color of grid lines.

public gridCount: number

Approximate number of grid lines. You should set autoGridCount to false in order this property not to be ignored.

default

10

public gridThickness: number

Thickness of grid lines.

public groupToPeriods: Array<any>

Periods to which data will be gruoped in case there are more data items in the selected period than specified in maxSeries property. ["ss", "10ss", "30ss", "mm", "10mm", "30mm", "hh", "DD", "WW", "MM", "YYYY"]

public inside: boolean

Specifies whether values should be placed inside or outside of plot area.

public labelRotation: number

Rotation angle of a label.

public maxSeries: number

Maximum series shown at a time. In case there are more data points in the selection than maxSeries, the chart will group data to longer periods, for example - you have 250 days in the selection, and maxSeries is 150 - the chart will group data to weeks.

default

150

public minPeriod: string

Specifies the shortest period of your data. fff - millisecond, ss - second, mm - minute, hh - hour, DD - day, MM - month, YYYY - year. DD

public position: string

top or "bottom".

public startOnAxis: boolean

Specifies whether the graph should start on axis or not. In case you display columns, it is recommended to set this to false. startOnAxis can be set to true only if equalSpacing is set to true.

public tickLength: number

Tick length.