• 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>
    10. html,
    11. body,
    12. #myChart {
    13. height: 100%;
    14. width: 100%;
    15. }
    16. </style>
    17. </head>
    18.  
    19. <body>
    20. <div id='myChart'></div>
    21. <script>
    22. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    23. let chartConfig = {
    24. type: 'bullet',
    25. plot: {
    26. goal: {
    27. tooltip: {
    28. callout: true,
    29. calloutHeight: 15,
    30. calloutPosition: 'bottom',
    31. calloutWidth: 0,
    32. calloutTip: {
    33. type: 'circle',
    34. backgroundColor: '#fff',
    35. borderWidth: 2,
    36. borderColor: '#f60',
    37. offsetY: 5,
    38. size: 5,
    39. },
    40. }
    41. }
    42. },
    43. scaleY: {
    44. values: '0:100:25',
    45. guide: {
    46. lineStyle: 'solid'
    47. }
    48. },
    49. series: [{
    50. values: [35, 42, 67, 89, 25, 34, 67, 85],
    51. goals: [27, 35, 69, 95, 10, 21, 69, 89],
    52. backgroundColor: '#FFEB3B'
    53. }, {
    54. values: [25, 61, 36, 47, 27, 38, 83, 26],
    55. goals: [45, 55, 38, 37, 48, 45, 74, 17],
    56. backgroundColor: '#FFC107'
    57. }]
    58. };
    59.  
    60. zingchart.render({
    61. id: 'myChart',
    62. data: chartConfig,
    63. height: '100%',
    64. width: '100%'
    65. });
    66. </script>
    67. </body>
    68.  
    69. </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. html,
    2. body,
    3. #myChart {
    4. height: 100%;
    5. width: 100%;
    6. }
    1. let chartConfig = {
    2. type: 'bullet',
    3. plot: {
    4. goal: {
    5. tooltip: {
    6. callout: true,
    7. calloutHeight: 15,
    8. calloutPosition: 'bottom',
    9. calloutWidth: 0,
    10. calloutTip: {
    11. type: 'circle',
    12. backgroundColor: '#fff',
    13. borderWidth: 2,
    14. borderColor: '#f60',
    15. offsetY: 5,
    16. size: 5,
    17. },
    18. }
    19. }
    20. },
    21. scaleY: {
    22. values: '0:100:25',
    23. guide: {
    24. lineStyle: 'solid'
    25. }
    26. },
    27. series: [{
    28. values: [35, 42, 67, 89, 25, 34, 67, 85],
    29. goals: [27, 35, 69, 95, 10, 21, 69, 89],
    30. backgroundColor: '#FFEB3B'
    31. }, {
    32. values: [25, 61, 36, 47, 27, 38, 83, 26],
    33. goals: [45, 55, 38, 37, 48, 45, 74, 17],
    34. backgroundColor: '#FFC107'
    35. }]
    36. };
    37.  
    38. zingchart.render({
    39. id: 'myChart',
    40. data: chartConfig,
    41. height: '100%',
    42. width: '100%'
    43. });