• 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: 'bullet',
    25. plot: {
    26. goal: {
    27. bottomState: {
    28. backgroundColor: 'red',
    29. offsetX: '10px',
    30. offsetY: '10px',
    31. },
    32. }
    33. },
    34. scaleY: {
    35. values: '0:100:25',
    36. guide: {
    37. lineStyle: 'solid'
    38. }
    39. },
    40. series: [{
    41. values: [35, 42, 67, 89, 25, 34, 67, 85],
    42. goals: [27, 35, 69, 95, 10, 21, 69, 89],
    43. backgroundColor: '#FFEB3B'
    44. }, {
    45. values: [25, 61, 36, 47, 27, 38, 83, 26],
    46. goals: [45, 55, 38, 37, 48, 45, 74, 17],
    47. backgroundColor: '#FFC107'
    48. }]
    49. };
    50.  
    51. zingchart.render({
    52. id: 'myChart',
    53. data: chartConfig,
    54. height: '100%',
    55. width: '100%'
    56. });
    57. </script>
    58. </body>
    59.  
    60. </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: 'bullet',
    3. plot: {
    4. goal: {
    5. bottomState: {
    6. backgroundColor: 'red',
    7. offsetX: '10px',
    8. offsetY: '10px',
    9. },
    10. }
    11. },
    12. scaleY: {
    13. values: '0:100:25',
    14. guide: {
    15. lineStyle: 'solid'
    16. }
    17. },
    18. series: [{
    19. values: [35, 42, 67, 89, 25, 34, 67, 85],
    20. goals: [27, 35, 69, 95, 10, 21, 69, 89],
    21. backgroundColor: '#FFEB3B'
    22. }, {
    23. values: [25, 61, 36, 47, 27, 38, 83, 26],
    24. goals: [45, 55, 38, 37, 48, 45, 74, 17],
    25. backgroundColor: '#FFC107'
    26. }]
    27. };
    28.  
    29. zingchart.render({
    30. id: 'myChart',
    31. data: chartConfig,
    32. height: '100%',
    33. width: '100%'
    34. });