• 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. rules: [{
    29. rule: '%v > 50',
    30. backgroundColor: 'green'
    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. {
    46. values: [25, 61, 36, 47, 27, 38, 83, 26],
    47. goals: [45, 55, 38, 37, 48, 45, 74, 17],
    48. backgroundColor: '#FFC107'
    49. },
    50. ]
    51. };
    52.  
    53. zingchart.render({
    54. id: 'myChart',
    55. data: chartConfig,
    56. height: 400,
    57. width: '100%'
    58. });
    59. </script>
    60. </body>
    61.  
    62. </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. rules: [{
    14. rule: '%v > 50',
    15. backgroundColor: 'green'
    16. }]
    17. }
    18. },
    19. scaleY: {
    20. values: '0:100:25',
    21. guide: {
    22. lineStyle: 'solid'
    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: '#FFEB3B'
    29. },
    30. {
    31. values: [25, 61, 36, 47, 27, 38, 83, 26],
    32. goals: [45, 55, 38, 37, 48, 45, 74, 17],
    33. backgroundColor: '#FFC107'
    34. },
    35. ]
    36. };
    37.  
    38. zingchart.render({
    39. id: 'myChart',
    40. data: chartConfig,
    41. height: 400,
    42. width: '100%'
    43. });