ChartCursorSettings
Type class
ChartCursorSettings settings set's settings for chart cursor. 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 ChartCursor class will be used.
Sources
This information about ChartCursorSettings is provided for reference only and is not available through exported packages and thus should not be imported or used on its own.
Inheritance
ChartCursorSettings does not extend any other symbol.
ChartCursorSettings is not extended by any other symbol.
Properties
balloonPointerOrientationType
stringDefaulthorizontalSpecifies orientation of value balloon pointer.
bulletsEnabledType
booleanSpecifies if bullet for each graph will follow the cursor.
bulletSizeType
numberSize of bullets, following the cursor.
categoryBalloonAlphaType
numberOpacity of the category balloon.
categoryBalloonColorType
colorColor of the category balloon.
categoryBalloonDateFormatsType
object[]Default[{period:"YYYY", format:"YYYY"}, {period:"MM", format:"MMM, YYYY"}, {period:"WW", format:"MMM DD, YYYY"}, {period:"DD", format:"MMM DD, YYYY"}, {period:"hh", format:"JJ:NN"}, {period:"mm", format:"JJ:NN"}, {period:"ss", format:"JJ:NN:SS"}, {period:"fff", format:"JJ:NN:SS"}]Array of date format objects. Date format object must have "period" and "format" items. Available periods are: fff - millisecond, ss - second, mm - minute, hh - hour, DD - date, WW - week, MM - month, YYYY - year.
categoryBalloonEnabledType
booleanSpecifies whether category balloon is enabled.
categoryBalloonTextType
stringDefault[[category]]You can have
category-toCategorytags in there and show category ranges this way.colorType
colorDefault#FFFFFFText color.
cursorAlphaType
numberOpacity of the cursor line.
cursorColorType
colorColor of the cursor line.
cursorPositionType
stringPossible values: start, middle, mouse.
enabledType
booleanDefaulttrueSet this to "false" if you don't want chart cursor to appear in your charts.
fullWidthType
booleanDefaultfalseIf set to true, instead of a cursor line user will see a fill which width will always be equal to the width of one data item. We'd recommend setting cursorAlpha to 0.1 or some other small number if using this feature.
graphBulletSizeType
numberDefault1.7Size of a graph's bullet (if available) at the cursor position. If you don't want the bullet to change it's size, set this property to 1.
leaveAfterTouchType
booleanDefaulttruehis makes cursor and balloons to remain after user touches the chart.
leaveCursorType
booleanDefaultfalseSpecifies if cursor should be left at it's last position. Useful for touch devices - user might want to see the balloons after he moves finger away.
onePanelOnlyType
booleanDefaultfalseIf you set this to true, Stock Chart will display value balloons on currently hovered panel only.
panType
booleanIf this is set to true, the user will be able to pan the chart instead of zooming.
selectWithoutZoomingType
booleanDefaultfalseSpecifies if cursor should only mark selected area but not zoom-in after user releases mouse button.
showNextAvailableType
booleanDefaultfalseIf true, the graph will display balloon on next available data point if currently hovered item doesn't have value for this graph.
valueBalloonsEnabledType
booleanDefaultfalseSpecifies whether value balloons are enabled. In case they are not, the balloons might be displayed anyway, when the user rolls-over the column or bullet.
valueLineAlphaType
numberOpacity of value line. Will use cursorAlpha value if not set.
valueLineBalloonEnabledType
booleanDefaultfalseSpecifies if value balloon next to value axis labels should be displayed. If you have more than one axis, set valueLineAxis property of ChartCursor to indicate which axis should display the balloon.
valueLineEnabledType
booleanDefaultfalseSpecifies if cursor of Serial chart should display horizontal (or vertical if chart is rotated) line. This line might help users to compare distant values of a chart. You can also enable value balloon on this line by setting valueLineAxis property of ChartCursor.
zoomableType
booleanSpecifies if the user can zoom-in the chart. If pan is set to true, zoomable is switched to false automatically.
Methods
ChartCursorSettings does not have any methods.
Events
ChartCursorSettings does not have any events.