You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

annotations.md 722 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. Annotations are for special values (like range points). They are defined within the `data` property itself.
  2. ## Markers
  3. To highlight certain values on the Y axis, `yMarkers` can be set. They will shown ad dotted lines on the graph.
  4. ```js
  5. data = {
  6. // labels: [],
  7. // datasets: [],
  8. yMarkers: [
  9. {
  10. label: "Marker",
  11. value: 43,
  12. options: { labelPos: 'right' }
  13. }
  14. ]
  15. }
  16. ```
  17. [demo only marker]
  18. ## Regions
  19. 2D counterparts to markers, they have a `start` and `end` instead of value:
  20. ```js
  21. yRegions: [
  22. {
  23. label: "Region",
  24. start: -10,
  25. end: 50,
  26. options: { labelPos: 'left' }
  27. },
  28. ],
  29. ```
  30. Shown as a a greyed out area between the extremes.
  31. [demo only region]
  32. ## Tooltips
  33. Tooltips are by default
  34. [demo format]