ChartScrollbarSettings
Type class
ChartScrollbarSettings settings set's settings for chart scrollbar. 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 ChartScrollbar class will be used.
Sources
This information about ChartScrollbarSettings is provided for reference only and is not available through exported packages and thus should not be imported or used on its own.
Inheritance
ChartScrollbarSettings does not extend any other symbol.
ChartScrollbarSettings is not extended by any other symbol.
Properties
autoGridCountType
booleanDefaulttrueSpecifies whether number of gridCount is specified automatically, according to the axis size.
backgroundAlphaType
numberBackground opacity.
backgroundColorType
colorBackground color of the scrollbar.
colorType
colorText color.
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.
enabledType
booleanDefaulttrueSet false if you don't need scrollbar.
fontSizeType
numberFont size.
graphFillAlphaType
numberGraph fill opacity.
graphFillColorType
colorGraph fill color.
graphLineAlphaType
numberGraph line opacity.
graphLineColorType
colorGraph line color.
graphTypeType
stringType of chart scrollbar's graph. 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.
gridAlphaType
numberGrid opacity.
gridColorType
colorGrid color.
gridCountType
numberGrid count. You should set autoGridCount to false in order this property to work.
heightType
numberDefault40Height of scrollbar, in pixels.
hideResizeGripsType
booleanDefaultfalseSpecifies whether resize grips are hidden when mouse is away from the scrollbar.
markPeriodChangeType
booleanSpecifies if category axis of scrollbar should mark period change with a different date format.
positionType
stringDefaultbottomPosition of a scrollbar. Possible values are "top" and "bottom".
resizeEnabledType
booleanDefaulttrueSpecifies whether scrollbar has a resize feature.
scrollDurationType
numberDuration 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
numberSelected background opacity.
selectedBackgroundColorType
colorSelected background color.
selectedGraphFillAlphaType
numberSelected graph'sfill opacity.
selectedGraphFillColorType
colorSelected graph'sfill color.
selectedGraphLineAlphaType
numberSelected graph'sline opacity.
selectedGraphLineColorType
colorSelected graph's line color.
updateOnReleaseOnlyType
booleanDefaulttrueSpecifies if the chart should be updated while dragging/resizing the scrollbar or only at the moment when user releases mouse button. Usefull when working with large data sets.
usePeriodType
stringThis is very important feature for those, who work with large data sets. You can tell ChartScrollbar what period it should use for it's graph and save a lot of time for rendering of this graph. For example, if your minPeriod is "DD" (days), set usePeriod = "WW" (weeks) and you will have 7 times less data points in scrollbar's graph. Note, the period you specify here should be set in CategoryAxesSettings.groupToPeriods.
Methods
ChartScrollbarSettings does not have any methods.
Events
ChartScrollbarSettings does not have any events.