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