• 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. var myConfig = {
    17. type: 'gauge',
    18. scaleR: {
    19. center: {
    20. alpha: 1,
    21. backgroundColor: '#ffe6e6',
    22. borderColor: 'red',
    23. borderWidth: 2,
    24. size: 20,
    25. type: 'gear9',
    26. x: '50%',
    27. visible: true,
    28. y: '50%'
    29. },
    30. values: '0:90:10'
    31. },
    32. series: [{
    33. values: [35]
    34. }]
    35. };
    36.  
    37. zingchart.render({
    38. id: 'myChart',
    39. data: myConfig,
    40. height: 400,
    41. width: "100%"
    42. });
    43. </script>
    44. </body>
    45.  
    46. </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. var myConfig = {
    2. type: 'gauge',
    3. scaleR: {
    4. center: {
    5. alpha: 1,
    6. backgroundColor: '#ffe6e6',
    7. borderColor: 'red',
    8. borderWidth: 2,
    9. size: 20,
    10. type: 'gear9',
    11. x: '50%',
    12. visible: true,
    13. y: '50%'
    14. },
    15. values: '0:90:10'
    16. },
    17. series: [{
    18. values: [35]
    19. }]
    20. };
    21.  
    22. zingchart.render({
    23. id: 'myChart',
    24. data: myConfig,
    25. height: 400,
    26. width: "100%"
    27. });