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:

    To write code in Source View

    <script type="text/javascript">
    function hintContent() {
    return this.x + ' cm, ' + this.y + ' kg';
    }
    </script>
  2. In design view, right-click on the C1ScatterChart and select Properties to open C1ScatterChart'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