• 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. contextMenu: {
    19. item: {
    20. backgroundColor: "#333",
    21. borderWidth: 8,
    22. color: "red"
    23. }
    24. }
    25. },
    26. graphset: [{
    27. type: "line",
    28. subtitle: {
    29. text: "Right-click chart to view context menu"
    30. },
    31. series: [{
    32. "values": [139, 51.8, 114, 93, 102, 78]
    33. },
    34. {
    35. "values": [157, 126, 83, 152, 150, 194]
    36. },
    37. {
    38. "values": [124, 111, 147, 137, 124, 170]
    39. }
    40. ]
    41. }]
    42. };
    43.  
    44. zingchart.render({
    45. id: 'myChart',
    46. data: myConfig,
    47. height: 400,
    48. width: "100%"
    49. });
    50. </script>
    51. </body>
    52.  
    53. </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. contextMenu: {
    5. item: {
    6. backgroundColor: "#333",
    7. borderWidth: 8,
    8. color: "red"
    9. }
    10. }
    11. },
    12. graphset: [{
    13. type: "line",
    14. subtitle: {
    15. text: "Right-click chart to view context menu"
    16. },
    17. series: [{
    18. "values": [139, 51.8, 114, 93, 102, 78]
    19. },
    20. {
    21. "values": [157, 126, 83, 152, 150, 194]
    22. },
    23. {
    24. "values": [124, 111, 147, 137, 124, 170]
    25. }
    26. ]
    27. }]
    28. };
    29.  
    30. zingchart.render({
    31. id: 'myChart',
    32. data: myConfig,
    33. height: 400,
    34. width: "100%"
    35. });