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