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