• 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.  
    26. callout: true,
    27. calloutHeight: 15,
    28. calloutPosition: 'bottom',
    29. calloutWidth: 0,
    30. calloutTip: {
    31. type: 'circle',
    32. backgroundColor: '#fff',
    33. borderWidth: 2,
    34. borderColor: '#f60',
    35. offsetY: 5,
    36. size: 5,
    37. },
    38. }
    39. }
    40. },
    41. series: [{
    42. values: [35, 42, 67, 89, 25, 34, 67, 85],
    43. goals: [27, 35, 69, 95, 10, 21, 69, 89],
    44. backgroundColor: '#F44336',
    45.  
    46. goal: {
    47. backgroundColor: '#FFE082',
    48. borderColor: '#F44336'
    49. }
    50. },
    51. {
    52. values: [25, 61, 36, 47, 27, 38, 83, 26],
    53. goals: [45, 55, 38, 37, 48, 45, 74, 17],
    54. backgroundColor: '#E91E63',
    55.  
    56. goal: {
    57. backgroundColor: '#C5E1A5',
    58. borderColor: '#E91E63'
    59. }
    60. },
    61. ]
    62. };
    63.  
    64. zingchart.render({
    65. id: 'myChart',
    66. data: chartConfig,
    67. height: 400,
    68. width: '100%'
    69. });
    70. </script>
    71. </body>
    72.  
    73. </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.  
    11. callout: true,
    12. calloutHeight: 15,
    13. calloutPosition: 'bottom',
    14. calloutWidth: 0,
    15. calloutTip: {
    16. type: 'circle',
    17. backgroundColor: '#fff',
    18. borderWidth: 2,
    19. borderColor: '#f60',
    20. offsetY: 5,
    21. size: 5,
    22. },
    23. }
    24. }
    25. },
    26. series: [{
    27. values: [35, 42, 67, 89, 25, 34, 67, 85],
    28. goals: [27, 35, 69, 95, 10, 21, 69, 89],
    29. backgroundColor: '#F44336',
    30.  
    31. goal: {
    32. backgroundColor: '#FFE082',
    33. borderColor: '#F44336'
    34. }
    35. },
    36. {
    37. values: [25, 61, 36, 47, 27, 38, 83, 26],
    38. goals: [45, 55, 38, 37, 48, 45, 74, 17],
    39. backgroundColor: '#E91E63',
    40.  
    41. goal: {
    42. backgroundColor: '#C5E1A5',
    43. borderColor: '#E91E63'
    44. }
    45. },
    46. ]
    47. };
    48.  
    49. zingchart.render({
    50. id: 'myChart',
    51. data: chartConfig,
    52. height: 400,
    53. width: '100%'
    54. });