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