Search
ToolTip.text Property
See Also
 






Gets or sets the tooltip text.

Namespace: MindFusion.Charting
File: MindFusion.Charting.js

 Syntax

JavaScript  Copy Code

get text() {}

 Property Value

A String that specifies the text.

 Example

The following code customizes a tooltip rendered on a chart built with MindFusion.Charting for JavaScript:

JavaScript  Copy Code

var ToolTip = Charting.ToolTip;


// customize the tooltip
ToolTip.text = "Click on the chart to see detailed data";
ToolTip.brush = new Drawing.Brush("#fafafa");
ToolTip.pen = new Drawing.Pen("#9caac6");
ToolTip.textBrush = new Drawing.Brush("#5050c0");
ToolTip.horizontalOffset = -2;
ToolTip.verticallOffset = -2;
ToolTip.horizontalPadding = 6;
ToolTip.verticalPadding = 4;
ToolTip.font = new Charting.Drawing.Font("Verdana", 12, Charting.Drawing.FontStyle.Italic);

 See Also