• Edit
  • Download
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7. <link href="https://fonts.googleapis.com/css?family=Inconsolata" rel="stylesheet">
    8.  
    9. <script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
    10. <style>
    11. html,
    12. body {
    13. height: 100%;
    14. width: 100%;
    15. margin: 0;
    16. padding: 0;
    17. }
    18.  
    19. #myChart {
    20. height: 100%;
    21. width: 100%;
    22. min-height: 150px;
    23. }
    24.  
    25. .zc-ref {
    26. display: none;
    27. }
    28. </style>
    29. </head>
    30.  
    31. <body>
    32. <div id="myChart"><a class="zc-ref" href="https://www.zingchart.com">Powered by ZingChart</a></div>
    33. <script>
    34. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    35. let chartConfig = {
    36. type: 'area',
    37. globals: {
    38. tooltip: {
    39. border: '3px solid red',
    40. padding: 15,
    41. },
    42. },
    43. title: {
    44. text: 'Area Chart',
    45. fontSize: 20,
    46. },
    47. legend: {},
    48. crosshairX: {},
    49. scaleX: {},
    50. scaleY: {
    51. guide: {
    52. visible: false
    53. }
    54. },
    55. plot: {
    56. valueBox: {}
    57. },
    58. series: [{
    59. values: [35, 42, 67, 89, 25, 34, 67, 85],
    60. backgroundColor: '#212121'
    61. },
    62. {
    63. values: [25, 59, 30, 16, 51, 99, 31, 39],
    64. backgroundColor: '#616161'
    65. }
    66. ]
    67. };
    68.  
    69. zingchart.render({
    70. id: 'myChart',
    71. data: chartConfig,
    72. height: 400,
    73. width: '100%'
    74. });
    75. </script>
    76. </body>
    77.  
    78. </html>
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7. <link href="https://fonts.googleapis.com/css?family=Inconsolata" rel="stylesheet">
    8.  
    9. <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
    10. </head>
    11.  
    12. <body>
    13. <div id="myChart"><a class="zc-ref" href="https://www.zingchart.com">Powered by ZingChart</a></div>
    14. </body>
    15.  
    16. </html>
    1. html,
    2. body {
    3. height: 100%;
    4. width: 100%;
    5. margin: 0;
    6. padding: 0;
    7. }
    8.  
    9. #myChart {
    10. height: 100%;
    11. width: 100%;
    12. min-height: 150px;
    13. }
    14.  
    15. .zc-ref {
    16. display: none;
    17. }
    1. let chartConfig = {
    2. type: 'area',
    3. globals: {
    4. tooltip: {
    5. border: '3px solid red',
    6. padding: 15,
    7. },
    8. },
    9. title: {
    10. text: 'Area Chart',
    11. fontSize: 20,
    12. },
    13. legend: {},
    14. crosshairX: {},
    15. scaleX: {},
    16. scaleY: {
    17. guide: {
    18. visible: false
    19. }
    20. },
    21. plot: {
    22. valueBox: {}
    23. },
    24. series: [{
    25. values: [35, 42, 67, 89, 25, 34, 67, 85],
    26. backgroundColor: '#212121'
    27. },
    28. {
    29. values: [25, 59, 30, 16, 51, 99, 31, 39],
    30. backgroundColor: '#616161'
    31. }
    32. ]
    33. };
    34.  
    35. zingchart.render({
    36. id: 'myChart',
    37. data: chartConfig,
    38. height: 400,
    39. width: '100%'
    40. });