Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
web:chart [2019/10/17 12:29]
agcyphers [Examples]
web:chart [2019/10/17 12:30]
agcyphers [Examples]
Line 154: Line 154:
  
 === Tooltip Templates === === Tooltip Templates ===
-Anything in between <% and %> will be executed as JavaScript. For example: ​<code js><% if (label) { %> and later <% } %></​code>​. Using <%= expr %> will print the value of the variable named by expr into the tooltip.+Anything in between <% and %> will be executed as JavaScript. For example: ​''​<% if (label) { %> and later <% } %>''​. Using ''​<%= expr %>'' ​will print the value of the variable named by ''​expr'' ​into the tooltip.
  
 The available variables to print into the tooltip depends on the chart type. In general, the following variables are available: The available variables to print into the tooltip depends on the chart type. In general, the following variables are available: