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 hint() {
    return 'x:' + this.x + ',y:' + this.y + ",y1:" + this.data.y1;
    }
    </script>
  2. In design view right-click on the C1BubbleChart and select Properties to open C1BubbleChart's Properties window.
  3. Expand Hint->Content and set the Function property to Hint. This will apply the JavaScript function to the chart tooltip.
  4. Expand ChartLabel and set the ChartLabelFormatString property to c2.
See Also