• 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: 'line',
    18. legend: {
    19. header: {
    20. text: 'Header'
    21. },
    22. footer: {
    23. text: 'Footer',
    24. },
    25. maxItems: 3,
    26. overflow: 'page',
    27. },
    28. series: [{
    29. values: [1, 2, 3, 11, 2, 2, 4, 4, 5],
    30. text: 'Dogs'
    31. },
    32. {
    33. values: [13, 23, 14, 15, 16, 16, 27, 16, 13],
    34. text: 'Cats'
    35. },
    36. {
    37. values: [22, 24, 16, 26, 25, 29, 24, 23, 28],
    38. text: 'Reptiles'
    39. },
    40. {
    41. values: [31, 28, 34, 36, 28, 36, 39, 27, 36],
    42. text: 'Birds'
    43. },
    44. {
    45. values: [45, 38, 49, 42, 39, 48, 42, 40, 49],
    46. text: 'Fish'
    47. },
    48. {
    49. values: [50, 42, 57, 49, 53, 53, 48, 57, 53],
    50. text: 'Horses'
    51. }
    52. ]
    53. };
    54.  
    55. zingchart.render({
    56. id: 'myChart',
    57. data: chartConfig,
    58. height: 400,
    59. width: '100%'
    60. });
    61. </script>
    62. </body>
    63.  
    64. </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: 'line',
    3. legend: {
    4. header: {
    5. text: 'Header'
    6. },
    7. footer: {
    8. text: 'Footer',
    9. },
    10. maxItems: 3,
    11. overflow: 'page',
    12. },
    13. series: [{
    14. values: [1, 2, 3, 11, 2, 2, 4, 4, 5],
    15. text: 'Dogs'
    16. },
    17. {
    18. values: [13, 23, 14, 15, 16, 16, 27, 16, 13],
    19. text: 'Cats'
    20. },
    21. {
    22. values: [22, 24, 16, 26, 25, 29, 24, 23, 28],
    23. text: 'Reptiles'
    24. },
    25. {
    26. values: [31, 28, 34, 36, 28, 36, 39, 27, 36],
    27. text: 'Birds'
    28. },
    29. {
    30. values: [45, 38, 49, 42, 39, 48, 42, 40, 49],
    31. text: 'Fish'
    32. },
    33. {
    34. values: [50, 42, 57, 49, 53, 53, 48, 57, 53],
    35. text: 'Horses'
    36. }
    37. ]
    38. };
    39.  
    40. zingchart.render({
    41. id: 'myChart',
    42. data: chartConfig,
    43. height: 400,
    44. width: '100%'
    45. });