• 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. let chartConfig = {
    17. type: 'bullet',
    18. plot: {
    19. borderRadius: 3,
    20. goal: {
    21. borderWidth: 1,
    22. height: 10
    23. }
    24. },
    25. series: [{
    26. values: [35, 42, 67, 89, 25, 34, 67, 85],
    27. goals: [27, 35, 69, 95, 10, 21, 69, 89],
    28. backgroundColor: '#F44336',
    29.  
    30. goal: {
    31. backgroundColor: '#FFE082',
    32. borderColor: '#F44336'
    33. }
    34. },
    35. {
    36. values: [25, 61, 36, 47, 27, 38, 83, 26],
    37. goals: [45, 55, 38, 37, 48, 45, 74, 17],
    38. backgroundColor: '#E91E63',
    39.  
    40. goal: {
    41. backgroundColor: '#C5E1A5',
    42. borderColor: '#E91E63'
    43. }
    44. },
    45. ]
    46. };
    47.  
    48. zingchart.render({
    49. id: 'myChart',
    50. data: chartConfig,
    51. height: 400,
    52. width: '100%'
    53. });
    54. </script>
    55. </body>
    56.  
    57. </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. let chartConfig = {
    2. type: 'bullet',
    3. plot: {
    4. borderRadius: 3,
    5. goal: {
    6. borderWidth: 1,
    7. height: 10
    8. }
    9. },
    10. series: [{
    11. values: [35, 42, 67, 89, 25, 34, 67, 85],
    12. goals: [27, 35, 69, 95, 10, 21, 69, 89],
    13. backgroundColor: '#F44336',
    14.  
    15. goal: {
    16. backgroundColor: '#FFE082',
    17. borderColor: '#F44336'
    18. }
    19. },
    20. {
    21. values: [25, 61, 36, 47, 27, 38, 83, 26],
    22. goals: [45, 55, 38, 37, 48, 45, 74, 17],
    23. backgroundColor: '#E91E63',
    24.  
    25. goal: {
    26. backgroundColor: '#C5E1A5',
    27. borderColor: '#E91E63'
    28. }
    29. },
    30. ]
    31. };
    32.  
    33. zingchart.render({
    34. id: 'myChart',
    35. data: chartConfig,
    36. height: 400,
    37. width: '100%'
    38. });