• 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. #myChart {
    13. height: 100%;
    14. width: 100%;
    15. }
    16. </style>
    17. </head>
    18.  
    19. <body>
    20. <div id='myChart'></div>
    21. <script>
    22. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    23. var seriesObj1 = {
    24. values: [69, 68, 54, 48, 70, 74, 98, 70, 72, 68, 49, 69]
    25. };
    26. var seriesObj2 = {
    27. values: [51, 53, 47, 60, 48, 52, 75, 52, 55, 47, 60, 48]
    28. };
    29.  
    30. zingchart.render({
    31. id: "myChart",
    32. output: "svg",
    33. height: '100%',
    34. width: '100%',
    35. data: {
    36. "type": "line",
    37. "title": {
    38. "text": "Series Data Objects"
    39. },
    40. "series": [
    41. seriesObj1, seriesObj2
    42. ]
    43. }
    44. });
    45. </script>
    46. </body>
    47.  
    48. </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. html,
    2. body,
    3. #myChart {
    4. height: 100%;
    5. width: 100%;
    6. }
    1. var seriesObj1 = {
    2. values: [69, 68, 54, 48, 70, 74, 98, 70, 72, 68, 49, 69]
    3. };
    4. var seriesObj2 = {
    5. values: [51, 53, 47, 60, 48, 52, 75, 52, 55, 47, 60, 48]
    6. };
    7.  
    8. zingchart.render({
    9. id: "myChart",
    10. output: "svg",
    11. height: '100%',
    12. width: '100%',
    13. data: {
    14. "type": "line",
    15. "title": {
    16. "text": "Series Data Objects"
    17. },
    18. "series": [
    19. seriesObj1, seriesObj2
    20. ]
    21. }
    22. });