• 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>
    10. html,
    11. body {
    12. height: 100%;
    13. width: 100%;
    14. margin: 0;
    15. padding: 0;
    16. }
    17.  
    18. #myChart {
    19. width: 100%;
    20. min-height: 150px;
    21. }
    22. </style>
    23. </head>
    24.  
    25. <body>
    26. <div id='myChart'></div>
    27. <script>
    28. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    29. var myConfig = {
    30. type: "gauge",
    31. title: {
    32. text: 'Multiple Needles'
    33. },
    34. series: [{
    35. values: [35],
    36. backgroundColor: '#ff1744'
    37. },
    38. {
    39. values: [15],
    40. backgroundColor: '#d500f9'
    41. },
    42. {
    43. values: [25],
    44. backgroundColor: '#1de9b6'
    45. },
    46. {
    47. values: [12],
    48. backgroundColor: '#ff9100'
    49. },
    50. {
    51. values: [28],
    52. backgroundColor: '#00b0ff'
    53. },
    54. {
    55. values: [33],
    56. backgroundColor: '#424242'
    57. }
    58. ]
    59. };
    60.  
    61. zingchart.render({
    62. id: 'myChart',
    63. data: myConfig,
    64. height: '100%',
    65. width: '100%'
    66. });
    67. </script>
    68. </body>
    69.  
    70. </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. html,
    2. body {
    3. height: 100%;
    4. width: 100%;
    5. margin: 0;
    6. padding: 0;
    7. }
    8.  
    9. #myChart {
    10. width: 100%;
    11. min-height: 150px;
    12. }
    1. var myConfig = {
    2. type: "gauge",
    3. title: {
    4. text: 'Multiple Needles'
    5. },
    6. series: [{
    7. values: [35],
    8. backgroundColor: '#ff1744'
    9. },
    10. {
    11. values: [15],
    12. backgroundColor: '#d500f9'
    13. },
    14. {
    15. values: [25],
    16. backgroundColor: '#1de9b6'
    17. },
    18. {
    19. values: [12],
    20. backgroundColor: '#ff9100'
    21. },
    22. {
    23. values: [28],
    24. backgroundColor: '#00b0ff'
    25. },
    26. {
    27. values: [33],
    28. backgroundColor: '#424242'
    29. }
    30. ]
    31. };
    32.  
    33. zingchart.render({
    34. id: 'myChart',
    35. data: myConfig,
    36. height: '100%',
    37. width: '100%'
    38. });