• 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='myChart'></div>
    17. <button class='btn btn-info' id="demo1">Demo 1</button>
    18. <button class='btn btn-info' id="demo2">Demo 2</button>
    19. <script>
    20. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    21. var myConfig = {
    22. graphset: [{
    23. type: "bar3d",
    24. series: [{
    25. id: "tryme",
    26. values: [35, 42, 67, 89, 25, 34, 67, 85]
    27. },
    28. {
    29. values: [35, 42, 67, 89, 25, 34, 67, 85]
    30. }
    31. ]
    32. },
    33. {
    34. type: "line3d",
    35. series: [{
    36. values: [35, 42, 67, 89, 25, 34, 67, 85]
    37. },
    38. {
    39. values: [35, 42, 67, 89, 25, 34, 67, 85]
    40. }
    41. ]
    42. }
    43. ]
    44. };
    45.  
    46. zingchart.render({
    47. id: 'myChart',
    48. data: myConfig,
    49. height: 400,
    50. width: '100%'
    51. });
    52.  
    53. demo1.addEventListener('click', function() {
    54. zingchart.exec('myChart', 'set3dview', {
    55. "y-angle": 30,
    56. depth: 10,
    57. });
    58. });
    59. demo2.addEventListener('click', function() {
    60. zingchart.exec('myChart', 'set3dview', {
    61. graphid: 1,
    62. yAngle: 50,
    63. depth: 10,
    64. zAngle: 20,
    65. xAngle: 10
    66. });
    67. });
    68. </script>
    69. </body>
    70.  
    71. </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='myChart'></div>
    16. <button class='btn btn-info' id="demo1">Demo 1</button>
    17. <button class='btn btn-info' id="demo2">Demo 2</button>
    18. </body>
    19.  
    20. </html>
    1.  
    1. var myConfig = {
    2. graphset: [{
    3. type: "bar3d",
    4. series: [{
    5. id: "tryme",
    6. values: [35, 42, 67, 89, 25, 34, 67, 85]
    7. },
    8. {
    9. values: [35, 42, 67, 89, 25, 34, 67, 85]
    10. }
    11. ]
    12. },
    13. {
    14. type: "line3d",
    15. series: [{
    16. values: [35, 42, 67, 89, 25, 34, 67, 85]
    17. },
    18. {
    19. values: [35, 42, 67, 89, 25, 34, 67, 85]
    20. }
    21. ]
    22. }
    23. ]
    24. };
    25.  
    26. zingchart.render({
    27. id: 'myChart',
    28. data: myConfig,
    29. height: 400,
    30. width: '100%'
    31. });
    32.  
    33. demo1.addEventListener('click', function() {
    34. zingchart.exec('myChart', 'set3dview', {
    35. "y-angle": 30,
    36. depth: 10,
    37. });
    38. });
    39. demo2.addEventListener('click', function() {
    40. zingchart.exec('myChart', 'set3dview', {
    41. graphid: 1,
    42. yAngle: 50,
    43. depth: 10,
    44. zAngle: 20,
    45. xAngle: 10
    46. });
    47. });