ChartScrollbar
Type class
Create a scrollbar for AmSerialChart and AmXYChart charts.
Example
```js var chart = AmCharts.makeChart("chartdiv",{ ... "pathToImages": "http://cdn.amcharts.com/lib/3/images/", // required for grips "chartScrollbar": { "updateOnReleaseOnly": true } });```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
accessibleLabelType
stringDefaultZoom chart using cursor arrowsText which screen readers will read if user rolls-over or sets focus using tab key (this is possible only if tabIndex property of AmGraph is set to some number) on the grips or draggable part of a scrollbar. Text is added as aria-label tag. Note - not all screen readers and browsers support this. Note, you should set tabIndex to some number in order it would be possible to zoom chart using cursor keys.
autoGridCountType
booleanDefaultfalseSpecifies whether number of gridCount is specified automatically, according to the axis size.
backgroundAlphaType
numberDefault1Background opacity.
backgroundColorType
colorDefault#D4D4D4Background color of the scrollbar.
colorType
colorDefault#FFFFFFText color.
dragCursorDownType
stringDefaultcursor: move; cursor: grab; cursor: -moz-grabbing; cursor: -webkit-grabbing;Mouse cursor displayed when clicked on selected part of a scrollbar.
dragCursorHoverType
stringDefaultcursor: move; cursor: grab; cursor: -moz-grab; cursor: -webkit-grab;Mouse cursor displayed when hovering over selected part of a scrollbar.
dragIconType
stringDefaultdragIconRoundBigFile name of scrollbar drag (resize grip) icon. You can find a set of icons in amcharts/images folder - you can choose from these: dragIconRectBig, dragIconRectBigBlack, dragIconRectSmall, dragIconRectSmallBlack, dragIconRoundBig, dragIconRoundBigBlack, dragIconRoundSmall, dragIconRoundSmallBlack. You can also use your own custom icons. Don't forget to change dragIconWidth and dragIconHeight if you change icons.
dragIconHeightType
numberDefault35Height 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
numberDefault35Width 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.
enabledType
booleanDefaulttrueSpecifies if scrollbar is enabled. You can hide/show scrollbar using this property without actually removing it.
graphFillAlphaType
numberDefault1Graph fill opacity. Value range is 0 - 1.
graphFillColorType
colorDefault#BBBBBBGraph fill color.
graphLineAlphaType
numberDefault0Graph line opacity. Value range is 0 - 1.
graphLineColorType
colorDefault#BBBBBBGraph line color.
graphTypeType
stringby 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
colorDefault#FFFFFFGrid color.
gridCountType
numberDefault0The number of grid lines.
hideResizeGripsType
booleanDefaultfalseSpecifies whether resize grips are hidden when mouse is away from the scrollbar.
hResizeCursorType
stringDefaultew-resizeMouse cursor type shown when user hovers horizontal cursor's resize grips.
hResizeCursorDownType
stringCSS value of cursor displayed when mouse is pressed down over horizontal cursor's resize grip.
hResizeCursorHoverType
stringCSS value of cursor displayed when hovering over horizontal cursor's resize grip.
ignoreCustomColorsType
booleanDefaultfalseIf you have column type graph in your scrollbar, and this graph has custom colors for one or more columns in data provider, those columns will be colored with this custom color. However you might not want this in some cases. Set this property to true to use scrollbar's graph colors.
maximumType
numberMaximum value of ValueAxis of ChartScrollbar. Calculated automatically, if not set.
minimumType
numberMinimum value of ValueAxis of ChartScrollbar. Calculated automatically, if not set.
offsetType
numberDefault0Distance from plot area to scrollbar, in pixels.
oppositeAxisType
booleanDefaulttrueBy default, scrollbar is in the opsite side of plot area from the axis. If you set this property to false, scrollbar will be placed next to category/value axis. However it won't adjust it's position regarding axis labels, so you might need to use offset property to move scrollbar away from labels.
resizeEnabledType
booleanDefaulttrueIf set to
falseit will prevent the chart scroll bar to change selection scope. The grip images will not be shown as well. The user would still be able to pan / move selection.scrollbarHeightType
numberDefault20Height (width, if chart is rotated) of a scrollbar.
scrollDurationType
numberDefault1Duration of scrolling, when the user clicks on scrollbar's background, in seconds. Note, updateOnReleaseOnly should be set to false in order animation to happen.
selectedBackgroundAlphaType
numberDefault1Selected backround opacity.
selectedBackgroundColorType
colorDefault#EFEFEFSelected background color.
selectedGraphFillAlphaType
numberDefault1Selected graph's fill opacity. Value range is 0 - 1.
selectedGraphFillColorType
colorDefault#888888Selected graph's fill color.
selectedGraphLineAlphaType
numberDefault0Selected graph's line opacity. Value range is 0 - 1.
selectedGraphLineColorType
colorDefault#888888Selected graph's line color.
tabIndexType
numberIn case you set it to some number, the chart will set focus on grips and draggable area of the scrollbar when user clicks tab key. When a focus is set, screen readers like NVDA Screen reader will read label which is set using accessibleLabel property of ChartScrollbar. When a focus is set user can zoom-in, zoom-out or pan the scrollbar using cursor keys. Note, not all browsers and readers support this.
updateOnReleaseOnlyType
booleanDefaultfalseSpecifies if the chart should be updated while dragging/resizing the scrollbar or only at the moment when user releases mouse button.
vResizeCursorType
stringDefaultns-resizeMouse cursor type shown when user hovers vertical cursor's resize grips.
vResizeCursorDownType
stringCSS value of cursor displayed when mouse is pressed down over vertical cursor's resize grip.
vResizeCursorHoverType
stringCSS value of cursor displayed when hovering over vertical cursor's resize grip.
Methods
ChartScrollbar does not have any methods.
Events
ChartScrollbar does not have any events.