tick-drawing.json 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. {
  2. "config": {
  3. "type": "horizontalBar",
  4. "data": {
  5. "labels": ["January", "February", "March", "April", "May", "June", "July"],
  6. "datasets": []
  7. },
  8. "options": {
  9. "legend": false,
  10. "title": false,
  11. "scales": {
  12. "xAxes": [{
  13. "type": "category",
  14. "position": "top",
  15. "id": "x-axis-1",
  16. "ticks": {
  17. "display": false
  18. },
  19. "gridLines":{
  20. "drawOnChartArea": false,
  21. "drawBorder": false,
  22. "color": "rgba(0, 0, 0, 1)",
  23. "zeroLineColor": "rgba(0, 0, 0, 1)"
  24. }
  25. }, {
  26. "type": "category",
  27. "position": "bottom",
  28. "id": "x-axis-2",
  29. "ticks": {
  30. "display": false
  31. },
  32. "gridLines":{
  33. "drawOnChartArea": false,
  34. "drawBorder": false,
  35. "color": "rgba(0, 0, 0, 1)",
  36. "zeroLineColor": "rgba(0, 0, 0, 1)"
  37. }
  38. }],
  39. "yAxes": [{
  40. "position": "left",
  41. "id": "y-axis-1",
  42. "type": "linear",
  43. "ticks": {
  44. "display": false,
  45. "min": -100,
  46. "max": 100
  47. },
  48. "gridLines":{
  49. "drawOnChartArea": false,
  50. "drawBorder": false,
  51. "color": "rgba(0, 0, 0, 1)",
  52. "zeroLineColor": "rgba(0, 0, 0, 1)"
  53. }
  54. }, {
  55. "type": "linear",
  56. "id": "y-axis-2",
  57. "position": "right",
  58. "ticks": {
  59. "display": false,
  60. "min": 0,
  61. "max": 50
  62. },
  63. "gridLines":{
  64. "drawOnChartArea": false,
  65. "drawBorder": false,
  66. "color": "rgba(0, 0, 0, 1)",
  67. "zeroLineColor": "rgba(0, 0, 0, 1)"
  68. }
  69. }]
  70. }
  71. }
  72. },
  73. "options": {
  74. "canvas": {
  75. "height": 256,
  76. "width": 512
  77. }
  78. }
  79. }