• 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. var myConfig18 = {
    24. "type": "bullet",
    25. "legend": {},
    26. "tooltip": {
    27. "text": "Value: %v<br>Goal: %g",
    28. "font-color": "purple",
    29. "font-family": "Verdana, Geneva, sans-serif",
    30. "background-color": "white",
    31. "border-color": "yellow",
    32. "border-width": 2,
    33. "line-style": "dotted"
    34. },
    35. "scale-x": {
    36. "labels": ["ME", "NH", "MA", "RI", "CT", "NY"]
    37. },
    38. "series": [{
    39. "values": [20, 40, 25, 50, 15, 45],
    40. "goals": [25, 43, 30, 40, 21, 59],
    41. "text": "September",
    42. "background-color": "red",
    43. "goal": {
    44. "background-color": "green"
    45. }
    46. },
    47. {
    48. "values": [5, 30, 21, 18, 59, 50],
    49. "goals": [21, 35, 23, 29, 61, 55],
    50. "text": "October",
    51. "background-color": "orange",
    52. "goal": {
    53. "background-color": "blue"
    54. }
    55. },
    56. {
    57. "values": [30, 5, 18, 21, 33, 41],
    58. "goals": [36, 17, 20, 19, 24, 49],
    59. "text": "November",
    60. "background-color": "yellow",
    61. "goal": {
    62. "background-color": "purple"
    63. }
    64. }
    65. ]
    66. };
    67.  
    68. zingchart.render({
    69. id: 'myChart',
    70. data: myConfig18,
    71. height: "100%",
    72. width: "100%"
    73. });
    74. </script>
    75. </body>
    76.  
    77. </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. var myConfig18 = {
    2. "type": "bullet",
    3. "legend": {},
    4. "tooltip": {
    5. "text": "Value: %v<br>Goal: %g",
    6. "font-color": "purple",
    7. "font-family": "Verdana, Geneva, sans-serif",
    8. "background-color": "white",
    9. "border-color": "yellow",
    10. "border-width": 2,
    11. "line-style": "dotted"
    12. },
    13. "scale-x": {
    14. "labels": ["ME", "NH", "MA", "RI", "CT", "NY"]
    15. },
    16. "series": [{
    17. "values": [20, 40, 25, 50, 15, 45],
    18. "goals": [25, 43, 30, 40, 21, 59],
    19. "text": "September",
    20. "background-color": "red",
    21. "goal": {
    22. "background-color": "green"
    23. }
    24. },
    25. {
    26. "values": [5, 30, 21, 18, 59, 50],
    27. "goals": [21, 35, 23, 29, 61, 55],
    28. "text": "October",
    29. "background-color": "orange",
    30. "goal": {
    31. "background-color": "blue"
    32. }
    33. },
    34. {
    35. "values": [30, 5, 18, 21, 33, 41],
    36. "goals": [36, 17, 20, 19, 24, 49],
    37. "text": "November",
    38. "background-color": "yellow",
    39. "goal": {
    40. "background-color": "purple"
    41. }
    42. }
    43. ]
    44. };
    45.  
    46. zingchart.render({
    47. id: 'myChart',
    48. data: myConfig18,
    49. height: "100%",
    50. width: "100%"
    51. });