Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
web:chart [2019/10/17 12:22]
agcyphers [Properties]
web:chart [2019/10/17 12:30]
agcyphers [Examples]
Line 153: Line 153:
 chartInstance.ScaleWidth = 10 '// Add an axis point every 10 values between 0 and 100 (0..10..20..30)</​code>​ chartInstance.ScaleWidth = 10 '// Add an axis point every 10 values between 0 and 100 (0..10..20..30)</​code>​
  
 +=== Tooltip Templates ===
 +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:
 +
 +^ Variable ​     ^ Description ​      ^
 +| value | value of the data point |
 +| label | label for the position the data point is at |
 +| datasetLabel | label for the dataset the point is from |
 +| strokeColor | stroke color for the dataset |
 +| fillColor | fill color for the dataset |
 +| highlightFill | highlight fill color for the dataset |
 +| highlightStroke | highlight stroke color for the dataset |