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