• 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. goal: {
    20. backgroundColor: 'pink',
    21. borderWidth: 1,
    22. borderColor: 'red',
    23. borderRadius: 2,
    24. lineStyle: 'dashdot',
    25. alpha: 0.8,
    26. height: '10px',
    27. }
    28. },
    29. scaleY: {
    30. values: '0:100:25',
    31. guide: {
    32. lineStyle: 'solid'
    33. }
    34. },
    35. series: [{
    36. values: [35, 42, 67, 89, 25, 34, 67, 85],
    37. goals: [27, 35, 69, 95, 10, 21, 69, 89],
    38. backgroundColor: '#FFEB3B'
    39. },
    40. {
    41. values: [25, 61, 36, 47, 27, 38, 83, 26],
    42. goals: [45, 55, 38, 37, 48, 45, 74, 17],
    43. backgroundColor: '#FFC107'
    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. goal: {
    5. backgroundColor: 'pink',
    6. borderWidth: 1,
    7. borderColor: 'red',
    8. borderRadius: 2,
    9. lineStyle: 'dashdot',
    10. alpha: 0.8,
    11. height: '10px',
    12. }
    13. },
    14. scaleY: {
    15. values: '0:100:25',
    16. guide: {
    17. lineStyle: 'solid'
    18. }
    19. },
    20. series: [{
    21. values: [35, 42, 67, 89, 25, 34, 67, 85],
    22. goals: [27, 35, 69, 95, 10, 21, 69, 89],
    23. backgroundColor: '#FFEB3B'
    24. },
    25. {
    26. values: [25, 61, 36, 47, 27, 38, 83, 26],
    27. goals: [45, 55, 38, 37, 48, 45, 74, 17],
    28. backgroundColor: '#FFC107'
    29. },
    30. ]
    31. };
    32.  
    33. zingchart.render({
    34. id: 'myChart',
    35. data: chartConfig,
    36. height: 400,
    37. width: '100%'
    38. });