• 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. globals: {
    37. marker: {
    38. backgroundColor: '#1A237E',
    39. type: 'star5',
    40. size: 7,
    41.  
    42. mediaRules: [{
    43. maxWidth: 400,
    44. backgroundColor: 'red',
    45. }],
    46. }
    47. },
    48. type: 'area',
    49. title: {
    50. text: 'Area Chart',
    51. fontSize: 20,
    52. },
    53. legend: {},
    54. crosshairX: {},
    55. scaleX: {},
    56. scaleY: {
    57. guide: {
    58. visible: false
    59. }
    60. },
    61. plot: {
    62. valueBox: {}
    63. },
    64. series: [{
    65. values: [35, 42, 67, 89, 25, 34, 67, 85],
    66. backgroundColor: '#212121'
    67. },
    68. {
    69. values: [25, 59, 30, 16, 51, 99, 31, 39],
    70. backgroundColor: '#616161'
    71. }
    72. ]
    73. };
    74.  
    75. zingchart.render({
    76. id: 'myChart',
    77. data: chartConfig,
    78. height: 400,
    79. width: '100%'
    80. });
    81. </script>
    82. </body>
    83.  
    84. </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. globals: {
    3. marker: {
    4. backgroundColor: '#1A237E',
    5. type: 'star5',
    6. size: 7,
    7.  
    8. mediaRules: [{
    9. maxWidth: 400,
    10. backgroundColor: 'red',
    11. }],
    12. }
    13. },
    14. type: 'area',
    15. title: {
    16. text: 'Area Chart',
    17. fontSize: 20,
    18. },
    19. legend: {},
    20. crosshairX: {},
    21. scaleX: {},
    22. scaleY: {
    23. guide: {
    24. visible: false
    25. }
    26. },
    27. plot: {
    28. valueBox: {}
    29. },
    30. series: [{
    31. values: [35, 42, 67, 89, 25, 34, 67, 85],
    32. backgroundColor: '#212121'
    33. },
    34. {
    35. values: [25, 59, 30, 16, 51, 99, 31, 39],
    36. backgroundColor: '#616161'
    37. }
    38. ]
    39. };
    40.  
    41. zingchart.render({
    42. id: 'myChart',
    43. data: chartConfig,
    44. height: 400,
    45. width: '100%'
    46. });