# Add ToolTips to Chart's Points in the Data Series

## Content



To add ToolTips to the Chart's DataSeries, complete the following steps:

1.  Add C1Chart to the Form.
2.  Add the following directive to declare the **C1.Win.C1Chart** namepace:
    
    DOC-DETAILS-TAG-OPEN
    
    DOC-SUMMARY-TAG-OPEN
    
    To write code in Visual Basic
    
    DOC-SUMMARY-TAG-CLOSE
    
    ```vbnet
    Imports C1.Win.C1Chart
    ```
    
    DOC-DETAILS-TAG-CLOSE
    
    DOC-DETAILS-TAG-OPEN
    
    DOC-SUMMARY-TAG-OPEN
    
    To write code in C#
    
    DOC-SUMMARY-TAG-CLOSE
    
    ```csharp
    using C1.Win.C1Chart;
    ```
    
    DOC-DETAILS-TAG-CLOSE
    
3.  Add the following code in the **Form\_load** procedure to declare the dataseries and add the tooltips to the dataseries:
    
    DOC-DETAILS-TAG-OPEN
    
    DOC-SUMMARY-TAG-OPEN
    
    To write code in Visual Basic
    
    DOC-SUMMARY-TAG-CLOSE
    
    ```vbnet
    C1Chart1.ToolTip.Enabled = True
    Dim sc As ChartDataSeriesCollection = C1Chart1.ChartGroups(0).ChartData.SeriesList 
    For Each ds As ChartDataSeries In sc
        ds.TooltipText = "Series: {#TEXT}" + ControlChars.Cr + ControlChars.Lf + "x = {#XVAL}" + ControlChars.Cr + ControlChars.Lf + "y = {#YVAL}"
    Next ds
    ```
    
    DOC-DETAILS-TAG-CLOSE
    
    DOC-DETAILS-TAG-OPEN
    
    DOC-SUMMARY-TAG-OPEN
    
    To write code in C#
    
    DOC-SUMMARY-TAG-CLOSE
    
    ```csharp
    ChartDataSeriesCollection sc =
    c1Chart1.ChartGroups[0].ChartData.SeriesList; 
      foreach (ChartDataSeries ds in sc)
         ds.TooltipText = "Series: {#TEXT}" + '\r' + '\n' + "x = {#XVAL}" + '\r' + '\n' + "y = {#YVAL}";
    // Enable tooltip
    c1Chart1.ToolTip.Enabled = true;
    ```
    
    DOC-DETAILS-TAG-CLOSE
    
    **This topic illustrates the following**:
    
    When you hover over the points in the data series on the chart area at run time, the tooltips appear for each point, like the following:
    
    <br />![](https://cdn.mescius.io/document-site-files/images/70bd33a2-280e-4cc3-a1c0-7b827eceb8aa/imagesext/image10_6.png)

## See Also

[Add ToolTips to Chart's Header and Footer](/componentone/docs/win/online-chart2d/chartforwinformstask/addtooltipstochartel/addtooltipstochartsh)