• 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='//code.jquery.com/jquery-2.1.4.min.js'></script>
    10.  
    11. <script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
    12. <style></style>
    13. </head>
    14.  
    15. <body>
    16. <div id='demo-chart'></div>
    17. <button class='btn btn-info' id="demo1">Demo 1</button>
    18. <button class='btn btn-info' id="demo2">Demo 2</button>
    19. <button class='btn btn-info' id="demo3">Demo 3</button>
    20. <div id="displayEvents">
    21. <p id="output">&nbsp;</p>
    22. </div>
    23. <script>
    24. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    25. var myConfig = {
    26. graphset: [{
    27. id: "tryme",
    28. type: "bar3d",
    29. scaleX: {
    30. zooming: true,
    31. zoomTo: [2, 5]
    32. },
    33. series: [{
    34. values: [34, 67, 85, 89, 25, 34, 12]
    35. },
    36. {
    37. values: [35, 42, 89, 25, 34, 67, 85]
    38. }
    39. ]
    40. },
    41. {
    42. type: "line",
    43. series: [{
    44. values: [35, 42, 67, 89, 25, 34, 67, 85]
    45. },
    46. {
    47. values: [35, 42, 67, 89, 25, 34, ]
    48. }
    49. ]
    50. }
    51. ]
    52. };
    53.  
    54. zingchart.render({
    55. id: 'demo-chart',
    56. data: myConfig,
    57. height: 400,
    58. width: '100%',
    59. });
    60.  
    61. demo1.addEventListener('click', function() {
    62. let output = zingchart.exec('demo-chart', 'get3dview', {
    63. graphid: "tryme"
    64. });
    65. zcdocs.demos.dump('get3dview', output);
    66. });
    67. demo2.addEventListener('click', function() {
    68. let output = zingchart.exec('demo-chart', 'get3dview', {
    69. graphid: 1,
    70. plotindex: 1
    71. });
    72. zcdocs.demos.dump('get3dview', output);
    73. });
    74. demo3.addEventListener('click', function() {
    75. let output = zingchart.exec('demo-chart', 'get3dview');
    76. zcdocs.demos.dump('get3dview', output);
    77. });
    78. </script>
    79. </body>
    80.  
    81. </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='//code.jquery.com/jquery-2.1.4.min.js'></script>
    10.  
    11. <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
    12. </head>
    13.  
    14. <body>
    15. <div id='demo-chart'></div>
    16. <button class='btn btn-info' id="demo1">Demo 1</button>
    17. <button class='btn btn-info' id="demo2">Demo 2</button>
    18. <button class='btn btn-info' id="demo3">Demo 3</button>
    19. <div id="displayEvents">
    20. <p id="output">&nbsp;</p>
    21. </div>
    22. </body>
    23.  
    24. </html>
    1.  
    1. var myConfig = {
    2. graphset: [{
    3. id: "tryme",
    4. type: "bar3d",
    5. scaleX: {
    6. zooming: true,
    7. zoomTo: [2, 5]
    8. },
    9. series: [{
    10. values: [34, 67, 85, 89, 25, 34, 12]
    11. },
    12. {
    13. values: [35, 42, 89, 25, 34, 67, 85]
    14. }
    15. ]
    16. },
    17. {
    18. type: "line",
    19. series: [{
    20. values: [35, 42, 67, 89, 25, 34, 67, 85]
    21. },
    22. {
    23. values: [35, 42, 67, 89, 25, 34, ]
    24. }
    25. ]
    26. }
    27. ]
    28. };
    29.  
    30. zingchart.render({
    31. id: 'demo-chart',
    32. data: myConfig,
    33. height: 400,
    34. width: '100%',
    35. });
    36.  
    37. demo1.addEventListener('click', function() {
    38. let output = zingchart.exec('demo-chart', 'get3dview', {
    39. graphid: "tryme"
    40. });
    41. zcdocs.demos.dump('get3dview', output);
    42. });
    43. demo2.addEventListener('click', function() {
    44. let output = zingchart.exec('demo-chart', 'get3dview', {
    45. graphid: 1,
    46. plotindex: 1
    47. });
    48. zcdocs.demos.dump('get3dview', output);
    49. });
    50. demo3.addEventListener('click', function() {
    51. let output = zingchart.exec('demo-chart', 'get3dview');
    52. zcdocs.demos.dump('get3dview', output);
    53. });