• 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. topState: {
    29. backgroundColor: 'red',
    30. offsetX: '10px',
    31. offsetY: '10px',
    32. },
    33. }
    34. }
    35. },
    36. scaleY: {
    37. values: '0:100:25',
    38. guide: {
    39. lineStyle: 'solid'
    40. }
    41. },
    42. series: [{
    43. values: [35, 42, 67, 89, 25, 34, 67, 85],
    44. goals: [27, 35, 69, 95, 10, 21, 69, 89],
    45. backgroundColor: '#FFEB3B'
    46. }, {
    47. values: [25, 61, 36, 47, 27, 38, 83, 26],
    48. goals: [45, 55, 38, 37, 48, 45, 74, 17],
    49. backgroundColor: '#FFC107'
    50. }]
    51. };
    52.  
    53. zingchart.render({
    54. id: 'myChart',
    55. data: chartConfig,
    56. height: '100%',
    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. 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. topState: {
    7. backgroundColor: 'red',
    8. offsetX: '10px',
    9. offsetY: '10px',
    10. },
    11. }
    12. }
    13. },
    14. scaleY: {
    15. values: '0:100:25',
    16. guide: {
    17. lineStyle: 'solid'
    18. }
    19. },
    20. series: [{
    21. values: [35, 42, 67, 89, 25, 34, 67, 85],
    22. goals: [27, 35, 69, 95, 10, 21, 69, 89],
    23. backgroundColor: '#FFEB3B'
    24. }, {
    25. values: [25, 61, 36, 47, 27, 38, 83, 26],
    26. goals: [45, 55, 38, 37, 48, 45, 74, 17],
    27. backgroundColor: '#FFC107'
    28. }]
    29. };
    30.  
    31. zingchart.render({
    32. id: 'myChart',
    33. data: chartConfig,
    34. height: '100%',
    35. width: '100%'
    36. });