Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

2. Customizing your Chart > Configuring the tooltips - Pg. 60

Customizing your Chart Different modes to display data values Data values, by default, are displayed horizontally. If you want values to be rotated, you can do that using rotateValues='1' . In a column chart, you can also opt to display the labels inside the columns using the placeValuesInside='1' attribute. It can be combined with rotateValues to have rotated figures inside the columns. Add details to your chart using custom labels instead of data values If you want to explain the sudden increase or fall in the revenue of a particular year, you can do that on the chart itself using custom labels. You just need to use <set displayValue='Year End Discount, $42.3K' ...> and the label will be shown on the chart instead of the data value. Configuring the tooltips Every time you hover over a data plot, a tooltip with the name and the value of that point will come up. In case you don't want to have tooltips on your chart, you can switch it off using showToolTip='0' . On the other hand, you can use the tooltip to show added details about the data points, which if present on the chart can add a lot of clutter to it. To have a custom tooltip instead of the default name and value, you need to use <set tooltext='Detailed explanation