ChartScrollbar
Type class
ChartScrollbar class displays chart scrollbar. Supported by AmSerialChart and AmXYChart.
Example of how scrollbar is added to the chart:
var chart = new AmCharts.AmSerialChart();
var chartScrollbar = new AmCharts.ChartScrollbar();
chart.addChartScrollbar(chartScrollbar);```
Sources
This information about ChartScrollbar is provided for reference only and is not available through exported packages and thus should not be imported or used on its own.
Inheritance
ChartScrollbar does not extend any other symbol.
ChartScrollbar is not extended by any other symbol.
Properties
autoGridCountType
booleanDefaultfalseSpecifies whether number of gridCount is specified automatically, acoarding to the axis size.
backgroundAlphaType
numberDefault1Background opacity.
backgroundColorType
stringDefault#D4D4D4Background color of the scrollbar.
categoryAxisType
CategoryAxisDefaultinstance of CategoryAxisRead-only. Category axis of the scrollbar.
colorType
stringDefaultText color. Will use chart's color if not set.
dragIconHeightType
numberDefault18Height of resize grip image. Note, you should also update the image in amcharts/images folder if you don't want it to be distorted because of resizing.
dragIconWidthType
numberDefault11Width of resize grip image. Note, you should also update the image in amcharts/images folder if you don't want it to be distorted because of resizing.
graphType
AmGraphDefaultSpecifies which graph will be displayed in the scrollbar. Only Serial chart's scrollbar can display a graph.
graphFillAlphaType
numberDefault0.1Graph fill opacity. Value range is 0 - 1.
graphFillColorType
stringDefault#000000Graph fill color.
graphLineAlphaType
numberDefault0Graph line opacity. Value range is 0 - 1.
graphLineColorType
stringDefault#000000Graph line color.
graphTypeType
stringDefaultby 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".
gridAlphaType
numberDefault0.7Grid opacity. Value range is 0 - 1.
gridColorType
stringDefault#FFFFFFGrid color.
gridCountType
numberDefault0The number of grid lines.
hideResizeGripsType
booleanDefaultfalseSpecifies whether resize grips are hidden when mouse is away from the scrollbar.
maximumType
numberMaximum value of ValueAxis of ChartScrollbar. Calculated automatically, of not set.
minimumType
numberMinimum value of ValueAxis of ChartScrollbar. Calculated automatically, of not set.
resizeEnabledType
booleanDefaulttrueSpecifies whether scrollbar has a resize feature.
scrollbarHeightType
numberDefault20Height (width, if chart is rotated) of a scrollbar.
scrollDurationType
numberDefault2Duration of scrolling, when the user clicks on scrollbar's background, in seconds.
selectedBackgroundAlphaType
numberDefault1Selected backround opacity.
selectedBackgroundColorType
stringDefault#EFEFEFSelected background color.
selectedGraphFillAlphaType
numberDefault0.5Selected graph's fill opacity. Value range is 0 - 1.
selectedGraphFillColorType
stringDefault#000000Selected graph's fill color.
selectedGraphLineAlphaType
numberDefault0Selected graph's line opacity. Value range is 0 - 1.
selectedGraphLineColorType
stringDefault#000000Selected graph's line color.
updateOnReleaseOnlyType
booleanDefaultfalseSpecifies if the chart should be updated while dragging/resizing the scrollbar or only at the moment when user releases mouse button.
Methods
ChartScrollbar does not have any methods.
Events
ChartScrollbar does not have any events.