Represents the current tooltip.
Namespace: MindFusion.Charting
File: ToolTip.js
JavaScript Copy Code |
---|
// class |
The properties of the ToolTip can be used as static. The tooltips can be set by including LabelKinds.ToolTip among the values of the supportedLabel property of a Series.
The following code creates a BarSeries and provides two arrays with label data - one is the data array, which will serve as labels and the other is an array with strings. Then it specifies that the two arrays will be used for tooltips and labels at the X-axis with the supportedLabel property. Finally, it customizes the tooltip:
JavaScript Copy Code |
---|
var labels = [ var data = new Collections.List([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]); // create sample data series //specifies that the labels will be used for the X-axis and tooltips // customize tooltips |