shape.txt 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {
  2. "y_legend":{
  3. "text": "Time of day",
  4. "style": "{color: #736AFF;}"
  5. },
  6. "elements":[
  7. {
  8. "type": "line",
  9. "colour": "#736AFF",
  10. "text": "Avg. wave height (cm)",
  11. "font-size": 10,
  12. "width": 2,
  13. "dot-size": 4,
  14. "halo-size": 0,
  15. "line-style": {"style":"dash","on":10,"off":5},
  16. "values" : [
  17. 6,6,
  18. {"value":7, "colour":"#FF0000", "tip":"LINE<br>#val#", "dot-size":12, "halo-size": 3 },
  19. 8,8]
  20. },
  21. {
  22. "type": "shape",
  23. "colour": "#FF0000",
  24. "alpha": 0.2,
  25. "values" : [
  26. {"x":2,"y":2},
  27. {"x":4,"y":2},
  28. {"x":4,"y":4},
  29. {"x":3,"y":5},
  30. {"x":2,"y":4}
  31. ]
  32. },
  33. {
  34. "type": "line_dot",
  35. "colour": "#736AFF",
  36. "text": "Line Dot Key",
  37. "font-size": 10,
  38. "width": 2,
  39. "dot-size": 4,
  40. "halo-size": 1,
  41. "tip": "global dot<br>#val#",
  42. "values" : [
  43. 2,2,
  44. {"value":3, "colour":"#FF0000", "tip":"DOT<br>#val#<br>Key: #key#<br>#x_label#, #x_legend#", "dot-size":12, "halo-size": 3 },
  45. 4,4]
  46. }
  47. ],
  48. "y_axis":{
  49. "max": 10
  50. }
  51. }