RGraph: HTML5 Javascript charts library - In-graph labels
This page shows the various options for in-graph labels. The in-graph labels can be set like this:
obj.Set('chart.labels.ingraph', [,,'Hoolio',,'Olga']);
Or like this if you want to be more specific:
obj.Set('chart.labels.ingraph', [,,['Hoolio', 'red', 'yellow', -1, 60],,'Olga']);
The array can consist of:
- The label text
- The text color
- The background color
- This can be 1 or -1 and denotes whether the label should be above or below the line. This has no effect in Bar or Scatter charts
- The length of the label pointer/arrow
Example line chart
Example bar chart
Example bar chart (arrow variant)
Example bar chart (dot variant)