• 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. let chartConfig = {
    17. type: 'area',
    18. title: {
    19. text: 'Chart Title'
    20. },
    21. subtitle: {
    22. text: 'Your Chart Subtitle',
    23. mediaRules: [{
    24. maxWidth: 400,
    25. color: 'red'
    26. }]
    27. },
    28. series: [{
    29. values: [11, 24, 17, 23, 13, 29, 43, 46, 44, 18, 37, 35, 37, 10, 35, 29, 17, 31, 9, 4]
    30. },
    31. {
    32. values: [24, 3, 40, 16, 8, 13, 7, 10, 10, 4, 21, 2, 49, 47, 9, 45, 2, 11, 20, 36]
    33. }
    34. ]
    35. };
    36.  
    37. zingchart.render({
    38. id: 'myChart',
    39. data: chartConfig,
    40. height: 400,
    41. width: '100%'
    42. });
    43. </script>
    44. </body>
    45.  
    46. </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. let chartConfig = {
    2. type: 'area',
    3. title: {
    4. text: 'Chart Title'
    5. },
    6. subtitle: {
    7. text: 'Your Chart Subtitle',
    8. mediaRules: [{
    9. maxWidth: 400,
    10. color: 'red'
    11. }]
    12. },
    13. series: [{
    14. values: [11, 24, 17, 23, 13, 29, 43, 46, 44, 18, 37, 35, 37, 10, 35, 29, 17, 31, 9, 4]
    15. },
    16. {
    17. values: [24, 3, 40, 16, 8, 13, 7, 10, 10, 4, 21, 2, 49, 47, 9, 45, 2, 11, 20, 36]
    18. }
    19. ]
    20. };
    21.  
    22. zingchart.render({
    23. id: 'myChart',
    24. data: chartConfig,
    25. height: 400,
    26. width: '100%'
    27. });