• 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. #myChart {
    13. height: 100%;
    14. width: 100%;
    15. }
    16. </style>
    17. </head>
    18.  
    19. <body>
    20. <div id='myChart'></div>
    21. <script>
    22. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    23. var myConfig9 = {
    24. "type": "gauge",
    25. "scale": {
    26. "size-factor": 0.7
    27. },
    28. "scale-2": {
    29. "size-factor": 1
    30. },
    31. "scale-r": { //Default Scale
    32. "aperture": 200,
    33. "values": "0:100:20",
    34. "center": {
    35. "size": 5,
    36. "background-color": "#66CCFF #FFCCFF",
    37. "border-color": "none"
    38. }
    39. },
    40. "scale-r-2": { //Additional Scale
    41. "aperture": 250,
    42. "values": "-100:100:20",
    43. "center": {
    44. "size": 5,
    45. "background-color": "#66CCFF #FFCCFF",
    46. "border-color": "none"
    47. },
    48. "guide": {
    49. "alpha": 0 //Make sure your larger scale's background is set to transparent.
    50. }
    51. },
    52. "series": [{
    53. "values": [87],
    54. "csize": "5%",
    55. "size": "90%"
    56. },
    57. {
    58. "values": [65],
    59. "scales": "scale-2,scale-r-2", //Specify which scale your data should plot to.
    60. "csize": "5%",
    61. "size": "90%"
    62. }
    63. ]
    64. };
    65.  
    66. zingchart.render({
    67. id: 'myChart',
    68. data: myConfig9,
    69. height: "100%",
    70. width: "100%"
    71. });
    72. </script>
    73. </body>
    74.  
    75. </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. #myChart {
    4. height: 100%;
    5. width: 100%;
    6. }
    1. var myConfig9 = {
    2. "type": "gauge",
    3. "scale": {
    4. "size-factor": 0.7
    5. },
    6. "scale-2": {
    7. "size-factor": 1
    8. },
    9. "scale-r": { //Default Scale
    10. "aperture": 200,
    11. "values": "0:100:20",
    12. "center": {
    13. "size": 5,
    14. "background-color": "#66CCFF #FFCCFF",
    15. "border-color": "none"
    16. }
    17. },
    18. "scale-r-2": { //Additional Scale
    19. "aperture": 250,
    20. "values": "-100:100:20",
    21. "center": {
    22. "size": 5,
    23. "background-color": "#66CCFF #FFCCFF",
    24. "border-color": "none"
    25. },
    26. "guide": {
    27. "alpha": 0 //Make sure your larger scale's background is set to transparent.
    28. }
    29. },
    30. "series": [{
    31. "values": [87],
    32. "csize": "5%",
    33. "size": "90%"
    34. },
    35. {
    36. "values": [65],
    37. "scales": "scale-2,scale-r-2", //Specify which scale your data should plot to.
    38. "csize": "5%",
    39. "size": "90%"
    40. }
    41. ]
    42. };
    43.  
    44. zingchart.render({
    45. id: 'myChart',
    46. data: myConfig9,
    47. height: "100%",
    48. width: "100%"
    49. });