• Edit
  • Download
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7. <script nonce="undefined" src="//www.zingchart.com/scripts/zcDocs.js"></script>
    8. <link href='//www.zingchart.com/css/zcDocs.css' rel='stylesheet' type='text/css'>
    9. <script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
    10. <style>
    11. html,
    12. body,
    13. {
    14. height: 100%;
    15. width: 100%;
    16. }
    17. </style>
    18. </head>
    19.  
    20. <body>
    21. <div id='myChart'></div>
    22. <pre id='output'></pre>
    23. <script>
    24. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    25. var myConfig = {
    26. "history": {
    27.  
    28. },
    29. "graphset": [{
    30. "id": "zc",
    31. "subtitle": {
    32. "text": "Click a bar to load a new chart!"
    33. },
    34. "type": "bar",
    35. "series": [{
    36. "values": [11],
    37. "url": "https://storage.googleapis.com/zingchart-com.appspot.com/child1.txt",
    38. "target": "graph=zc"
    39. },
    40. {
    41. "values": [44],
    42. "url": "https://storage.googleapis.com/zingchart-com.appspot.com/child2.txt",
    43. "target": "graph=zc"
    44. },
    45. {
    46. "values": [26],
    47. "url": "https://storage.googleapis.com/zingchart-com.appspot.com/child3.txt",
    48. "target": "graph=zc"
    49. }
    50. ]
    51. }]
    52. };
    53.  
    54. zingchart.render({
    55. id: 'myChart',
    56. data: myConfig,
    57. height: '600',
    58. width: '800',
    59. // turn off ZingChart default headers for cors
    60. cacheControl: '',
    61. });
    62.  
    63. zingchart.history_forward = function(p) {
    64. zcdocs.demos.dump('history_forward', p);
    65. }
    66. zingchart.history_back = function(p) {
    67. zcdocs.demos.dump('history_back', p);
    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. <script src="//www.zingchart.com/scripts/zcDocs.js"></script>
    8. <link href='//www.zingchart.com/css/zcDocs.css' rel='stylesheet' type='text/css'>
    9. <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
    10. </head>
    11.  
    12. <body>
    13. <div id='myChart'></div>
    14. <pre id='output'></pre>
    15. </body>
    16.  
    17. </html>
    1. html,
    2. body,
    3. {
    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: '600',
    34. width: '800',
    35. // turn off ZingChart default headers for cors
    36. cacheControl: '',
    37. });
    38.  
    39. zingchart.history_forward = function(p) {
    40. zcdocs.demos.dump('history_forward', p);
    41. }
    42. zingchart.history_back = function(p) {
    43. zcdocs.demos.dump('history_back', p);
    44. }