Class ChartScrollbar

ChartScrollbar class displays chart scrollbar. Supported by AmSerialChart and AmXYChart.

example

var chart = new AmCharts.AmSerialChart(); var chartScrollbar = new AmCharts.ChartScrollbar(); chart.addChartScrollbar(chartScrollbar);

Index

Properties

Properties

public autoGridCount: boolean

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

public backgroundAlpha: number

Background opacity.

default

1

public backgroundColor: string

Background color of the scrollbar.

default

D4D4D4

public categoryAxis: CategoryAxis

Read-only. Category axis of the scrollbar.

public color: string

Text color. Will use chart's color if not set.

public graph: AmGraph

Specifies which graph will be displayed in the scrollbar. Only Serial chart's scrollbar can display a graph.

public graphFillAlpha: number

Graph fill opacity. Value range is 0 - 1. 0.1

public graphFillColor: string

Graph fill color. #000000

public graphLineAlpha: number

Graph line opacity. Value range is 0 - 1.

public graphLineColor: string

Graph line color. #000000

public graphType: string

by default the graph type is the same as the original graph's type, however in case of candlestick or ohlc you might want to show line graph in the scrollbar. Possible values are: "line", "column", "step", "smoothedLine", "candlestick", "ohlc".

public gridAlpha: number

Grid opacity. Value range is 0 - 1. 0.7

public gridColor: string

Grid color. #FFFFFF

public gridCount: number

The number of grid lines.

public hideResizeGrips: boolean

Specifies whether resize grips are hidden when mouse is away from the scrollbar.

public resizeEnabled: boolean

Specifies whether scrollbar has a resize feature.

default

true

public scrollDuration: number

Duration of scrolling, when the user clicks on scrollbar's background, in seconds.

default

2 3

public scrollbarHeight: number

Height (width, if chart is rotated) of a scrollbar. 20

public selectedBackgroundAlpha: number

Selected backround opacity.

default

1

public selectedBackgroundColor: string

Selected background color. #EFEFEF

public selectedGraphFillAlpha: number

Selected graph's fill opacity. Value range is 0 - 1. 0.5

public selectedGraphFillColor: string

Selected graph's fill color. #000000

public selectedGraphLineAlpha: number

Selected graph's line opacity. Value range is 0 - 1.

public selectedGraphLineColor: string

Selected graph's line color. #000000

public updateOnReleaseOnly: boolean

Specifies if the chart should be updated while dragging/resizing the scrollbar or only at the moment when user releases mouse button.