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