• 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.  
    26. },
    27. "graphset": [{
    28. "id": "zc",
    29. "subtitle": {
    30. "text": "Click a bar to load a new chart!"
    31. },
    32. "type": "bar",
    33. "series": [{
    34. "values": [11],
    35. "url": "https://storage.googleapis.com/zingchart-com.appspot.com/child1.txt",
    36. "target": "graph=zc"
    37. },
    38. {
    39. "values": [44],
    40. "url": "https://storage.googleapis.com/zingchart-com.appspot.com/child2.txt",
    41. "target": "graph=zc"
    42. },
    43. {
    44. "values": [26],
    45. "url": "https://storage.googleapis.com/zingchart-com.appspot.com/child3.txt",
    46. "target": "graph=zc"
    47. }
    48. ]
    49. }]
    50. };
    51.  
    52. zingchart.render({
    53. id: 'myChart',
    54. data: myConfig,
    55. height: '100%',
    56. width: '100%',
    57. // turn off ZingChart default headers for cors
    58. cacheControl: '',
    59. });
    60. </script>
    61. </body>
    62.  
    63. </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.  
    4. },
    5. "graphset": [{
    6. "id": "zc",
    7. "subtitle": {
    8. "text": "Click a bar to load a new chart!"
    9. },
    10. "type": "bar",
    11. "series": [{
    12. "values": [11],
    13. "url": "https://storage.googleapis.com/zingchart-com.appspot.com/child1.txt",
    14. "target": "graph=zc"
    15. },
    16. {
    17. "values": [44],
    18. "url": "https://storage.googleapis.com/zingchart-com.appspot.com/child2.txt",
    19. "target": "graph=zc"
    20. },
    21. {
    22. "values": [26],
    23. "url": "https://storage.googleapis.com/zingchart-com.appspot.com/child3.txt",
    24. "target": "graph=zc"
    25. }
    26. ]
    27. }]
    28. };
    29.  
    30. zingchart.render({
    31. id: 'myChart',
    32. data: myConfig,
    33. height: '100%',
    34. width: '100%',
    35. // turn off ZingChart default headers for cors
    36. cacheControl: '',
    37. });