• Edit
  • Download
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7.  
    8. <script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
    9. <style></style>
    10. </head>
    11.  
    12. <body>
    13. <div id='myChart'></div>
    14. <script>
    15. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    16. let chartConfig = {
    17. type: 'gauge',
    18. scaleR: {
    19. markers: [{
    20. type: 'area',
    21. range: [10, 30],
    22.  
    23. alpha: 1,
    24. backgroundColor: '#ff4d4d',
    25. borderColor: 'red',
    26. borderWidth: 1,
    27. offsetEnd: 0.1,
    28. offsetStart: 0.5,
    29.  
    30. label: {
    31. text: 'Area Marker',
    32. callout: true,
    33. calloutHeight: 30,
    34. calloutPosition: 'bottom',
    35. calloutWidth: 0,
    36. calloutTip: {
    37. type: 'circle',
    38. backgroundColor: '#fff',
    39. borderWidth: 2,
    40. borderColor: '#f60',
    41. size: 5,
    42. },
    43.  
    44. alpha: 1,
    45. angle: 0,
    46. backgroundColor: '#ffe6e6',
    47. borderColor: 'red',
    48. borderRadius: '3px',
    49. borderWidth: 1,
    50. fontColor: 'red',
    51. fontFamily: 'Courier',
    52. fontSize: 10,
    53. fontStyle: 'normal',
    54. fontWeight: 'normal',
    55. lineStyle: 'solid',
    56. offsetR: 50,
    57. padding: 5,
    58. textAlign: 'left',
    59. textAlpha: 1,
    60. width: '100%'
    61. }
    62. },
    63. {
    64. type: 'line',
    65. range: [70],
    66.  
    67. alpha: 1,
    68. lineColor: 'red',
    69. lineStyle: 'solid',
    70. lineWidth: 3,
    71.  
    72. label: {
    73. text: 'Line Marker',
    74. callout: true,
    75. calloutHeight: 30,
    76. calloutPosition: 'bottom',
    77. calloutWidth: 0,
    78. calloutTip: {
    79. type: 'circle',
    80. backgroundColor: '#fff',
    81. borderWidth: 2,
    82. borderColor: '#f60',
    83. size: 5,
    84. },
    85.  
    86. alpha: 1,
    87. angle: 0,
    88. backgroundColor: '#ffe6e6',
    89. borderColor: 'red',
    90. borderRadius: '3px',
    91. borderWidth: 1,
    92. fontColor: 'red',
    93. fontFamily: 'Courier',
    94. fontSize: 10,
    95. fontStyle: 'normal',
    96. fontWeight: 'normal',
    97. lineStyle: 'solid',
    98. offsetR: -5,
    99. padding: 5,
    100. textAlign: 'left',
    101. textAlpha: 1,
    102. width: '100%',
    103. }
    104. }
    105. ],
    106. values: '0:90:10'
    107. },
    108. series: [{
    109. values: [35]
    110. }]
    111. };
    112.  
    113. zingchart.render({
    114. id: 'myChart',
    115. data: chartConfig,
    116. height: 400,
    117. width: '100%'
    118. });
    119. </script>
    120. </body>
    121.  
    122. </html>
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7.  
    8. <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
    9. </head>
    10.  
    11. <body>
    12. <div id='myChart'></div>
    13. </body>
    14.  
    15. </html>
    1.  
    1. let chartConfig = {
    2. type: 'gauge',
    3. scaleR: {
    4. markers: [{
    5. type: 'area',
    6. range: [10, 30],
    7.  
    8. alpha: 1,
    9. backgroundColor: '#ff4d4d',
    10. borderColor: 'red',
    11. borderWidth: 1,
    12. offsetEnd: 0.1,
    13. offsetStart: 0.5,
    14.  
    15. label: {
    16. text: 'Area Marker',
    17. callout: true,
    18. calloutHeight: 30,
    19. calloutPosition: 'bottom',
    20. calloutWidth: 0,
    21. calloutTip: {
    22. type: 'circle',
    23. backgroundColor: '#fff',
    24. borderWidth: 2,
    25. borderColor: '#f60',
    26. size: 5,
    27. },
    28.  
    29. alpha: 1,
    30. angle: 0,
    31. backgroundColor: '#ffe6e6',
    32. borderColor: 'red',
    33. borderRadius: '3px',
    34. borderWidth: 1,
    35. fontColor: 'red',
    36. fontFamily: 'Courier',
    37. fontSize: 10,
    38. fontStyle: 'normal',
    39. fontWeight: 'normal',
    40. lineStyle: 'solid',
    41. offsetR: 50,
    42. padding: 5,
    43. textAlign: 'left',
    44. textAlpha: 1,
    45. width: '100%'
    46. }
    47. },
    48. {
    49. type: 'line',
    50. range: [70],
    51.  
    52. alpha: 1,
    53. lineColor: 'red',
    54. lineStyle: 'solid',
    55. lineWidth: 3,
    56.  
    57. label: {
    58. text: 'Line Marker',
    59. callout: true,
    60. calloutHeight: 30,
    61. calloutPosition: 'bottom',
    62. calloutWidth: 0,
    63. calloutTip: {
    64. type: 'circle',
    65. backgroundColor: '#fff',
    66. borderWidth: 2,
    67. borderColor: '#f60',
    68. size: 5,
    69. },
    70.  
    71. alpha: 1,
    72. angle: 0,
    73. backgroundColor: '#ffe6e6',
    74. borderColor: 'red',
    75. borderRadius: '3px',
    76. borderWidth: 1,
    77. fontColor: 'red',
    78. fontFamily: 'Courier',
    79. fontSize: 10,
    80. fontStyle: 'normal',
    81. fontWeight: 'normal',
    82. lineStyle: 'solid',
    83. offsetR: -5,
    84. padding: 5,
    85. textAlign: 'left',
    86. textAlpha: 1,
    87. width: '100%',
    88. }
    89. }
    90. ],
    91. values: '0:90:10'
    92. },
    93. series: [{
    94. values: [35]
    95. }]
    96. };
    97.  
    98. zingchart.render({
    99. id: 'myChart',
    100. data: chartConfig,
    101. height: 400,
    102. width: '100%'
    103. });