• 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: 'Your Chart Title',
    20. position: '0% 0%',
    21. marginTop: 10,
    22. marginRight: 0,
    23. marginLeft: 0,
    24. marginBottom: 10,
    25. fontWeight: 'normal',
    26. fontStyle: 'italic',
    27. mediaRules: [{
    28. maxWidth: 400,
    29. color: 'red'
    30. }]
    31. },
    32. series: [{
    33. values: [11, 24, 17, 23, 13, 29, 43, 46, 44, 18, 37, 35, 37, 10, 35, 29, 17, 31, 9, 4],
    34. text: 'Item 0'
    35. },
    36. {
    37. values: [24, 3, 40, 16, 8, 13, 7, 10, 10, 4, 21, 2, 49, 47, 9, 45, 2, 11, 20, 36],
    38. text: 'Item 1'
    39. }
    40. ]
    41. };
    42.  
    43. zingchart.render({
    44. id: 'myChart',
    45. data: chartConfig,
    46. height: 400,
    47. width: '100%'
    48. });
    49. </script>
    50. </body>
    51.  
    52. </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: 'Your Chart Title',
    5. position: '0% 0%',
    6. marginTop: 10,
    7. marginRight: 0,
    8. marginLeft: 0,
    9. marginBottom: 10,
    10. fontWeight: 'normal',
    11. fontStyle: 'italic',
    12. mediaRules: [{
    13. maxWidth: 400,
    14. color: 'red'
    15. }]
    16. },
    17. series: [{
    18. values: [11, 24, 17, 23, 13, 29, 43, 46, 44, 18, 37, 35, 37, 10, 35, 29, 17, 31, 9, 4],
    19. text: 'Item 0'
    20. },
    21. {
    22. values: [24, 3, 40, 16, 8, 13, 7, 10, 10, 4, 21, 2, 49, 47, 9, 45, 2, 11, 20, 36],
    23. text: 'Item 1'
    24. }
    25. ]
    26. };
    27.  
    28. zingchart.render({
    29. id: 'myChart',
    30. data: chartConfig,
    31. height: 400,
    32. width: '100%'
    33. });