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