To add tooltips to the chart's axes, complete the following steps:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Imports C1.Win.C1Chart |
To write code in C#
C# |
Copy Code
|
---|---|
using C1.Win.C1Chart; |
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
'Enable tooltip C1Chart1.ToolTip.Enabled = True C1Chart1.ChartArea.AxisX.TooltipText = "X-Axis" C1Chart1.ChartArea.AxisY.TooltipText = "Y-Axis" |
To write code in C#
C# |
Copy Code
|
---|---|
//Enable tooltip c1Chart1.ToolTip.Enabled = true; c1Chart1.ChartArea.AxisX.TooltipText = "X-Axis"; c1Chart1.ChartArea.AxisY.TooltipText = "Y-Axis"; |
When you hover over the x-axis and y-axis on the chart area at run time, the tooltips appear for the x-axis and y-axis, like the following: