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.
- 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>
- In design view right-click on the C1BubbleChart and select Properties to open C1BubbleChart's Properties window.
- Expand Hint->Content and set the Function property to Hint. This will apply the JavaScript function to the chart tooltip.
- Expand ChartLabel and set the ChartLabelFormatString property to c2.
See Also