3.4.2 Specifying a Data Format for Tooltip Text

To specify a data format for the tooltip text, format the 'message' parameter input using the 'formatNumber()' function. In the example below, the tooltips on 'Chart1' are given a particular numeric format:

for(var i = 1; i < data.length; i++) {

  var fdata = formatNumber(data[i][1],"#,###");

  replet.addStatus("Chart1", [1,i-1], fdata);

}

<< 3.4.1 Adding Tooltips to a Table or Chart © 1996-2013 InetSoft Technology Corporation (v11.5) 3.5 Text and TextBox >>