• 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 myConfig = {
    24. "history": {
    25. "background-color": "#2c3e50",
    26. "border-radius": "-5px",
    27. "alpha": "0.7",
    28. "item": {
    29. "background-color": "#e74c3c",
    30. "border-width": 0
    31. },
    32. "item-off": {
    33. "background-color": "#bdc3c7",
    34. "shadow": false
    35. }
    36. },
    37. "graphset": [{
    38. "id": "zc",
    39. "subtitle": {
    40. "text": "Click a data object to load a new chart!"
    41. },
    42. "type": "bar",
    43. "series": [{
    44. "values": [11],
    45. "url": "https://storage.googleapis.com/zingchart-com.appspot.com/child1.txt",
    46. "target": "graph=zc"
    47. },
    48. {
    49. "values": [44],
    50. "url": "https://storage.googleapis.com/zingchart-com.appspot.com/child2.txt",
    51. "target": "graph=zc"
    52. },
    53. {
    54. "values": [26],
    55. "url": "https://storage.googleapis.com/zingchart-com.appspot.com/child3.txt",
    56. "target": "graph=zc"
    57. }
    58. ]
    59. }]
    60. };
    61.  
    62. zingchart.render({
    63. id: 'myChart',
    64. data: myConfig,
    65. height: '100%',
    66. width: '100%',
    67. cacheControl: '',
    68. });
    69. </script>
    70. </body>
    71.  
    72. </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 myConfig = {
    2. "history": {
    3. "background-color": "#2c3e50",
    4. "border-radius": "-5px",
    5. "alpha": "0.7",
    6. "item": {
    7. "background-color": "#e74c3c",
    8. "border-width": 0
    9. },
    10. "item-off": {
    11. "background-color": "#bdc3c7",
    12. "shadow": false
    13. }
    14. },
    15. "graphset": [{
    16. "id": "zc",
    17. "subtitle": {
    18. "text": "Click a data object to load a new chart!"
    19. },
    20. "type": "bar",
    21. "series": [{
    22. "values": [11],
    23. "url": "https://storage.googleapis.com/zingchart-com.appspot.com/child1.txt",
    24. "target": "graph=zc"
    25. },
    26. {
    27. "values": [44],
    28. "url": "https://storage.googleapis.com/zingchart-com.appspot.com/child2.txt",
    29. "target": "graph=zc"
    30. },
    31. {
    32. "values": [26],
    33. "url": "https://storage.googleapis.com/zingchart-com.appspot.com/child3.txt",
    34. "target": "graph=zc"
    35. }
    36. ]
    37. }]
    38. };
    39.  
    40. zingchart.render({
    41. id: 'myChart',
    42. data: myConfig,
    43. height: '100%',
    44. width: '100%',
    45. cacheControl: '',
    46. });