point-style-dash.json 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {
  2. "config": {
  3. "type": "bubble",
  4. "data": {
  5. "datasets": [{
  6. "data": [
  7. {"x": 0, "y": 3, "r": 0},
  8. {"x": 1, "y": 3, "r": 2},
  9. {"x": 2, "y": 3, "r": 4},
  10. {"x": 3, "y": 3, "r": 8},
  11. {"x": 4, "y": 3, "r": 16},
  12. {"x": 5, "y": 3, "r": 32}
  13. ],
  14. "backgroundColor": "#00ff00",
  15. "borderColor": "transparent",
  16. "borderWidth": 0
  17. }, {
  18. "data": [
  19. {"x": 0, "y": 2, "r": 0},
  20. {"x": 1, "y": 2, "r": 2},
  21. {"x": 2, "y": 2, "r": 4},
  22. {"x": 3, "y": 2, "r": 8},
  23. {"x": 4, "y": 2, "r": 16},
  24. {"x": 5, "y": 2, "r": 32}
  25. ],
  26. "backgroundColor": "transparent",
  27. "borderColor": "#0000ff",
  28. "borderWidth": 1
  29. }, {
  30. "data": [
  31. {"x": 0, "y": 1, "r": 0},
  32. {"x": 1, "y": 1, "r": 2},
  33. {"x": 2, "y": 1, "r": 4},
  34. {"x": 3, "y": 1, "r": 8},
  35. {"x": 4, "y": 1, "r": 16},
  36. {"x": 5, "y": 1, "r": 32}
  37. ],
  38. "backgroundColor": "#00ff00",
  39. "borderColor": "#0000ff",
  40. "borderWidth": 2
  41. }]
  42. },
  43. "options": {
  44. "responsive": false,
  45. "legend": false,
  46. "title": false,
  47. "elements": {
  48. "point": {
  49. "pointStyle": "dash"
  50. }
  51. },
  52. "layout": {
  53. "padding": 40
  54. },
  55. "scales": {
  56. "xAxes": [{"display": false}],
  57. "yAxes": [{"display": false}]
  58. }
  59. }
  60. },
  61. "options": {
  62. "canvas": {
  63. "height": 256,
  64. "width": 512
  65. }
  66. }
  67. }