Wijmo UI for the Web
Format Numeric Values
Show AllShow All
Hide AllHide All

Building on the Quick Start example, you can format and rotate the axis labels using the annoFormatString and labels options of the axis, and format the tooltip text by creating a function for the content of the hint option.

Note: By default, the tooltip text shows the seriesList label and the Y data, but we are changing it to display the label and the X data instead.
  1. In the <head> section of your HTML file, replace the script that includes the document ready function with this one, which uses the hint option to format the tooltip text, and formats the axis labels using the annoFormatString and labels options of the axis. 

    Drop down and copy script to paste in <head> section

  2. No changes are necessary in the <body> section of your HTML file. The basic <div> tag is sufficient to create the chart.
  3. Save your HTML file and open it in a browser. The widget appears like the one in the live widget below, with the X axis labels formatted and rotated to better fit the chart. Hover over a data point to see the hint.

See Also

Reference

Widgets

 
Support Options