• 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"];
    16. var myConfig = {
    17. gui: {
    18. contextMenu: {
    19. button: {
    20. visible: true,
    21. mediaRules: {
    22. maxWidth: 500,
    23. visible: false
    24. }
    25. },
    26. gear: {}
    27. }
    28. },
    29. graphset: [{
    30. type: "line",
    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. "values": [155, 225, 225, 218, 200, 224]
    42. }
    43. ]
    44. }]
    45. };
    46.  
    47. zingchart.render({
    48. id: 'myChart',
    49. data: myConfig,
    50. height: 400,
    51. width: "100%"
    52. });
    53. </script>
    54. </body>
    55.  
    56. </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. var myConfig = {
    2. gui: {
    3. contextMenu: {
    4. button: {
    5. visible: true,
    6. mediaRules: {
    7. maxWidth: 500,
    8. visible: false
    9. }
    10. },
    11. gear: {}
    12. }
    13. },
    14. graphset: [{
    15. type: "line",
    16. series: [{
    17. "values": [139, 51.8, 114, 93, 102, 78]
    18. },
    19. {
    20. "values": [157, 126, 83, 152, 150, 194]
    21. },
    22. {
    23. "values": [124, 111, 147, 137, 124, 170]
    24. },
    25. {
    26. "values": [155, 225, 225, 218, 200, 224]
    27. }
    28. ]
    29. }]
    30. };
    31.  
    32. zingchart.render({
    33. id: 'myChart',
    34. data: myConfig,
    35. height: 400,
    36. width: "100%"
    37. });