-
Notifications
You must be signed in to change notification settings - Fork 14
Tooltip
Tooltip
This class contains methods and properties related to the tooltip.
- none
- BackgroundColor
- BorderColor
- BorderWidth
- CaretPadding
- CaretSize
- DisplayColors
- Enabled
- Padding
- Position
- UsePointStyle
The following sections contain a detailed description of the methods and properties.
With this property you can specify the color of the background of the tooltip.
You can specify the background color in four ways:
- rgba-code: rgba(77,22,66,0.5)
- rgb-code: rgb(128,255,73)
- hex-code: #FF77A1
- color name: green
--
myChart.Chart.Tooltip.BackgroundColor = "grey"
With this property you can specify the color of the border of the tooltip.
You can specify the background color in four ways:
- rgba-code: rgba(77,22,66,0.5)
- rgb-code: rgb(128,255,73)
- hex-code: #FF77A1
- color name: green
{nothing} which leads to 'rgba(0, 0, 0, 0)'
myChart.Chart.Tooltip.BorderColor = "red"
With this property you can specify the size of the border of the tooltip.
0
myChart.Chart.Tooltip.BorderWidth = 2
With this property you can specify the size, in px, of the tooltip arrow.
5
myChart.Chart.Tooltip.CaretSize = 10
With this property you can specify the extra distance to move the end of the tooltip arrow away from the tooltip point.
2
myChart.Chart.Tooltip.CaretPadding = 5
With this property you can specify if color boxes are shown in the tooltip.
True
myChart.Chart.Tooltip.DisplayColors= False
With this property you can specify if the tooltip is enabled.
True
myChart.Chart.Tooltip.Enabled = False
--
With this property you can specify the padding inside the tooltip.
6
myChart.Chart.Tooltip.Padding = 10
--
With this property you can specify the mode for positioning the tooltip.
- ttpAverage
- ttpNearest
ttpAverage
myChart.Chart.Tooltip.Position = ttpNearest
--
With this property you can specify to use the corresponding point style instead of color boxes.
This property only has an effect if "DisplayColors" is set to "True".
False
myChart.Chart.Tooltip.UsePointStyle = True