• 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. height: 100%;
    13. width: 100%;
    14. margin: 0;
    15. padding: 0;
    16. }
    17.  
    18. #myChart {
    19. height: 100%;
    20. width: 100%;
    21. min-height: 150px;
    22. }
    23.  
    24. .zc-ref {
    25. display: none;
    26. }
    27. </style>
    28. </head>
    29.  
    30. <body>
    31. <div id="myChart"><a class="zc-ref" href="https://www.zingchart.com">Powered by ZingChart</a></div>
    32. <script>
    33. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    34.  
    35. function myFunction() {
    36. alert("hello from myFunction");
    37.  
    38. }
    39.  
    40. var myConfig =
    41.  
    42. {
    43. gui: {
    44. behaviors: [{
    45. id: "ViewSource",
    46. enabled: "none"
    47. },
    48. {
    49. id: "SaveAsImage",
    50. enabled: "none"
    51. },
    52. {
    53. id: "DownloadPDF",
    54. enabled: "none"
    55. },
    56. {
    57. id: "DownloadSVG",
    58. enabled: "none"
    59. },
    60. {
    61. id: "Print",
    62. enabled: "none"
    63. }
    64. ],
    65. contextMenu: {
    66. customItems: [{
    67. text: "Custom Item", //button text
    68. "function": "myFunction" //custom function to fire from button click
    69. }]
    70. }
    71. },
    72. graphset: [{
    73. type: 'bar',
    74. series: [{
    75. values: [35, 42, 67, 89, 25, 34, 67, 85]
    76. }]
    77. }]
    78.  
    79.  
    80. };
    81.  
    82. zingchart.render({
    83. id: 'myChart',
    84. data: myConfig,
    85. height: '100%',
    86. width: '100%'
    87. });
    88. </script>
    89. </body>
    90.  
    91. </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"><a class="zc-ref" href="https://www.zingchart.com">Powered by ZingChart</a></div>
    13. </body>
    14.  
    15. </html>
    1. html,
    2. body {
    3. height: 100%;
    4. width: 100%;
    5. margin: 0;
    6. padding: 0;
    7. }
    8.  
    9. #myChart {
    10. height: 100%;
    11. width: 100%;
    12. min-height: 150px;
    13. }
    14.  
    15. .zc-ref {
    16. display: none;
    17. }
    1. function myFunction() {
    2. alert("hello from myFunction");
    3.  
    4. }
    5.  
    6. var myConfig =
    7.  
    8. {
    9. gui: {
    10. behaviors: [{
    11. id: "ViewSource",
    12. enabled: "none"
    13. },
    14. {
    15. id: "SaveAsImage",
    16. enabled: "none"
    17. },
    18. {
    19. id: "DownloadPDF",
    20. enabled: "none"
    21. },
    22. {
    23. id: "DownloadSVG",
    24. enabled: "none"
    25. },
    26. {
    27. id: "Print",
    28. enabled: "none"
    29. }
    30. ],
    31. contextMenu: {
    32. customItems: [{
    33. text: "Custom Item", //button text
    34. "function": "myFunction" //custom function to fire from button click
    35. }]
    36. }
    37. },
    38. graphset: [{
    39. type: 'bar',
    40. series: [{
    41. values: [35, 42, 67, 89, 25, 34, 67, 85]
    42. }]
    43. }]
    44.  
    45.  
    46. };
    47.  
    48. zingchart.render({
    49. id: 'myChart',
    50. data: myConfig,
    51. height: '100%',
    52. width: '100%'
    53. });