• 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. let chartConfig = {
    24. type: 'gauge',
    25. title: {
    26. text: 'Angular Gauge'
    27. },
    28. scaleR: {
    29. item: {
    30. alpha: 1,
    31. angle: 'auto',
    32. backgroundColor: '#ffe6e6',
    33. borderColor: 'red',
    34. borderRadius: '2px',
    35. borderWidth: 1,
    36. fontColor: 'red',
    37. fontFamily: 'Courier',
    38. fontSize: 10,
    39. fontStyle: 'normal',
    40. fontWeight: 'normal',
    41. offsetR: 0,
    42. padding: '5px 10px',
    43. textAlpha: 1,
    44. visible: true,
    45. bottomState: {
    46. backgroundColor: 'red',
    47. offsetX: '10px',
    48. offsetY: '10px',
    49. },
    50. }
    51. },
    52. scale: {
    53. sizeFactor: 0.8
    54. },
    55. series: [{
    56. values: [79],
    57. csize: '5%',
    58. size: '90%',
    59. backgroundColor: '#000000'
    60. }]
    61. };
    62.  
    63. zingchart.render({
    64. id: 'myChart',
    65. data: chartConfig,
    66. height: '100%',
    67. width: '100%'
    68. });
    69. </script>
    70. </body>
    71.  
    72. </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. let chartConfig = {
    2. type: 'gauge',
    3. title: {
    4. text: 'Angular Gauge'
    5. },
    6. scaleR: {
    7. item: {
    8. alpha: 1,
    9. angle: 'auto',
    10. backgroundColor: '#ffe6e6',
    11. borderColor: 'red',
    12. borderRadius: '2px',
    13. borderWidth: 1,
    14. fontColor: 'red',
    15. fontFamily: 'Courier',
    16. fontSize: 10,
    17. fontStyle: 'normal',
    18. fontWeight: 'normal',
    19. offsetR: 0,
    20. padding: '5px 10px',
    21. textAlpha: 1,
    22. visible: true,
    23. bottomState: {
    24. backgroundColor: 'red',
    25. offsetX: '10px',
    26. offsetY: '10px',
    27. },
    28. }
    29. },
    30. scale: {
    31. sizeFactor: 0.8
    32. },
    33. series: [{
    34. values: [79],
    35. csize: '5%',
    36. size: '90%',
    37. backgroundColor: '#000000'
    38. }]
    39. };
    40.  
    41. zingchart.render({
    42. id: 'myChart',
    43. data: chartConfig,
    44. height: '100%',
    45. width: '100%'
    46. });