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