ComponentOne CompositeChart for ASP.NET Web Forms
Quick Start / Step 4 of 5: Adding a Chart ToolTip
In This Topic
    Step 4 of 5: Adding a Chart ToolTip
    In This Topic

    In this topic you will add a simple JavaScript function in your source page and apply the JavaScript function name to the Hint object.

    1. Add the following JavaScript function to your source page
      <script type="text/javascript">
      
              function hintContent() {
      
                  return this.label + ' ' + this.y + '';
      
              }
      
      </script>
      
    2. In design view right-click on the C1CompositeChart and select Properties to open C1CompositeChart’s Properties window.
    3. Expand Hint->Content and set the Function property to hintContent. This will apply the JavaScript function to the chart tooltip.
    See Also