• 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></style>
    10. </head>
    11.  
    12. <body>
    13. <div id='myChart'></div>
    14. <script>
    15. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"]; /* view Result and right click on chart to view contextMenu */
    16. var myConfig = {
    17. gui: {
    18. behaviors: [ //default contextMenu behaviors
    19. {
    20. id: "Reload", //built-in id
    21. enabled: "all" //sets visibility to show
    22. },
    23. {
    24. id: "SaveAsImage",
    25. enabled: "all"
    26. },
    27. {
    28. id: "DownloadPDF", //built-in id
    29. enabled: "all" //sets visibility to show
    30. },
    31. {
    32. id: "DownloadSVG",
    33. enabled: "all"
    34. },
    35. {
    36. id: "Print",
    37. enabled: "all"
    38. },
    39. {
    40. id: "ViewSource", //built-in id
    41. enabled: "none" //sets visibility to hide
    42. },
    43. {
    44. id: "About ZingChart" //removed with licensing
    45. }
    46. ]
    47. },
    48. graphset: [{
    49. type: "bar",
    50. series: [{
    51. values: [35, 42, 67, 89, 25, 34, 67, 85]
    52. },
    53. {
    54. values: [27, 35, 74, 70, 35, 40, 60, 70]
    55. },
    56. {
    57. values: [10, 50, 40, 65, 40, 50, 30, 25]
    58. }
    59. ]
    60. }]
    61. };
    62.  
    63. zingchart.render({
    64. id: 'myChart',
    65. data: myConfig,
    66. height: 400,
    67. width: "100%"
    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.  
    1. /* view Result and right click on chart to view contextMenu */
    2. var myConfig = {
    3. gui: {
    4. behaviors: [ //default contextMenu behaviors
    5. {
    6. id: "Reload", //built-in id
    7. enabled: "all" //sets visibility to show
    8. },
    9. {
    10. id: "SaveAsImage",
    11. enabled: "all"
    12. },
    13. {
    14. id: "DownloadPDF", //built-in id
    15. enabled: "all" //sets visibility to show
    16. },
    17. {
    18. id: "DownloadSVG",
    19. enabled: "all"
    20. },
    21. {
    22. id: "Print",
    23. enabled: "all"
    24. },
    25. {
    26. id: "ViewSource", //built-in id
    27. enabled: "none" //sets visibility to hide
    28. },
    29. {
    30. id: "About ZingChart" //removed with licensing
    31. }
    32. ]
    33. },
    34. graphset: [{
    35. type: "bar",
    36. series: [{
    37. values: [35, 42, 67, 89, 25, 34, 67, 85]
    38. },
    39. {
    40. values: [27, 35, 74, 70, 35, 40, 60, 70]
    41. },
    42. {
    43. values: [10, 50, 40, 65, 40, 50, 30, 25]
    44. }
    45. ]
    46. }]
    47. };
    48.  
    49. zingchart.render({
    50. id: 'myChart',
    51. data: myConfig,
    52. height: 400,
    53. width: "100%"
    54. });