• Edit
  • Download
    1. <!doctype html>
    2. <html class="zc-html">
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7. <script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
    8. <style>
    9. .zc-body {
    10. background-color: #fff;
    11. }
    12.  
    13. .chart--container {
    14. height: 100%;
    15. width: 100%;
    16. min-height: 530px;
    17. }
    18.  
    19. .zc-ref {
    20. display: none;
    21. }
    22. </style>
    23. </head>
    24.  
    25. <body class="zc-body">
    26. <div id="myChart" class="chart--container">
    27. <a href="https://www.zingchart.com/" rel="noopener" class="zc-ref">Powered by ZingChart</a>
    28. </div>
    29.  
    30. <script>
    31. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"]; // CHART CONFIG
    32. // -----------------------------
    33. let chartConfig = {
    34. type: 'range',
    35. backgroundColor: '#ffffff',
    36. title: {
    37. text: 'Average Temperature',
    38. backgroundColor: '#ffffff',
    39. fontColor: '#000',
    40. },
    41. legend: {
    42. align: 'center',
    43. backgroundColor: '#e0e0e0',
    44. borderColor: '#fff',
    45. layout: 'x4',
    46. shadow: false,
    47. verticalAlign: 'bottom',
    48. },
    49. plot: {
    50. tooltip: {
    51. visible: false,
    52. },
    53. alphaArea: 1,
    54. aspect: 'spline',
    55. hoverState: {
    56. backgroundColor: 'none',
    57. },
    58. lineWidth: '0px',
    59. marker: {
    60. visible: false,
    61. },
    62. },
    63. scaleX: {
    64. guide: {
    65. alpha: 1,
    66. lineStyle: 'solid',
    67. lineWidth: '1px',
    68. },
    69. item: {
    70. offsetX: '0px',
    71. textAlign: 'left',
    72. },
    73. label: {
    74. text: 'Year',
    75. },
    76. labels: ['01/2017', '01/2018', '01/2019', '01/2020', '01/2021', '01/2022'],
    77. lineWidth: '1px',
    78. tick: {
    79. lineWidth: '1px',
    80. placement: 'outer',
    81. size: '10px',
    82. },
    83. },
    84. scaleY: {
    85. label: {
    86. text: 'Celsius',
    87. },
    88. lineWidth: '1px',
    89. tick: {
    90. lineWidth: '1px',
    91. },
    92. },
    93.  
    94. series: [{
    95. text: 'Pacific Ocean',
    96. values: [
    97. [5, 12],
    98. [2, 10],
    99. [6, 14],
    100. [4, 14],
    101. [5, 16],
    102. [6, 15],
    103. ],
    104. backgroundColor: '#0ce9d1',
    105. lineColor: '#0ce9d1',
    106. },
    107. {
    108. text: 'Atlantic Ocean',
    109. values: [
    110. [6, 10],
    111. [4, 6],
    112. [7, 13],
    113. [6, 12],
    114. [8, 14],
    115. [6, 14],
    116. ],
    117. backgroundColor: '#e7ffcc',
    118. lineColor: '#e7ffcc',
    119. },
    120. {
    121. text: 'Southern Ocean',
    122. values: [
    123. [7, 8],
    124. [4, 6],
    125. [8, 9],
    126. [6, 12],
    127. [9, 12],
    128. [6, 14],
    129. ],
    130. backgroundColor: '#ccfff9',
    131. lineColor: '#ccfff9',
    132. },
    133. {
    134. text: 'Indian Ocean',
    135. values: [
    136. [7, 8],
    137. [4, 5],
    138. [8, 9],
    139. [6, 8],
    140. [9, 11],
    141. [9, 13],
    142. ],
    143. backgroundColor: '#8bdceb',
    144. lineColor: '#8bdceb',
    145. },
    146. ],
    147. guide: {
    148. marker: {
    149. type: 'triangle',
    150. size: '7px',
    151. },
    152. plotLabel: {
    153. text: '<span style="color:%color">%t</span><span style="color:%color"> Min: %node-min-value Max: %node-max-value</span> ',
    154. backgroundColor: '#000',
    155. borderRadius: '5px',
    156. fontColor: '#FFF',
    157. fontSize: '15px',
    158. headerText: '%kt',
    159. },
    160. },
    161. };
    162.  
    163. // RENDER CHARTS
    164. // -----------------------------
    165. zingchart.render({
    166. id: 'myChart',
    167. data: chartConfig,
    168. height: '100%',
    169. width: '100%',
    170. });
    171. </script>
    172. </body>
    173.  
    174. </html>
    1. <!doctype html>
    2. <html class="zc-html">
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingSoft Demo</title>
    7. <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
    8. </head>
    9.  
    10. <body class="zc-body">
    11. <div id="myChart" class="chart--container">
    12. <a href="https://www.zingchart.com/" rel="noopener" class="zc-ref">Powered by ZingChart</a>
    13. </div>
    14.  
    15. </body>
    16.  
    17. </html>
    1. .zc-body {
    2. background-color: #fff;
    3. }
    4.  
    5. .chart--container {
    6. height: 100%;
    7. width: 100%;
    8. min-height: 530px;
    9. }
    10.  
    11. .zc-ref {
    12. display: none;
    13. }
    1. // CHART CONFIG
    2. // -----------------------------
    3. let chartConfig = {
    4. type: 'range',
    5. backgroundColor: '#ffffff',
    6. title: {
    7. text: 'Average Temperature',
    8. backgroundColor: '#ffffff',
    9. fontColor: '#000',
    10. },
    11. legend: {
    12. align: 'center',
    13. backgroundColor: '#e0e0e0',
    14. borderColor: '#fff',
    15. layout: 'x4',
    16. shadow: false,
    17. verticalAlign: 'bottom',
    18. },
    19. plot: {
    20. tooltip: {
    21. visible: false,
    22. },
    23. alphaArea: 1,
    24. aspect: 'spline',
    25. hoverState: {
    26. backgroundColor: 'none',
    27. },
    28. lineWidth: '0px',
    29. marker: {
    30. visible: false,
    31. },
    32. },
    33. scaleX: {
    34. guide: {
    35. alpha: 1,
    36. lineStyle: 'solid',
    37. lineWidth: '1px',
    38. },
    39. item: {
    40. offsetX: '0px',
    41. textAlign: 'left',
    42. },
    43. label: {
    44. text: 'Year',
    45. },
    46. labels: ['01/2017', '01/2018', '01/2019', '01/2020', '01/2021', '01/2022'],
    47. lineWidth: '1px',
    48. tick: {
    49. lineWidth: '1px',
    50. placement: 'outer',
    51. size: '10px',
    52. },
    53. },
    54. scaleY: {
    55. label: {
    56. text: 'Celsius',
    57. },
    58. lineWidth: '1px',
    59. tick: {
    60. lineWidth: '1px',
    61. },
    62. },
    63.  
    64. series: [{
    65. text: 'Pacific Ocean',
    66. values: [
    67. [5, 12],
    68. [2, 10],
    69. [6, 14],
    70. [4, 14],
    71. [5, 16],
    72. [6, 15],
    73. ],
    74. backgroundColor: '#0ce9d1',
    75. lineColor: '#0ce9d1',
    76. },
    77. {
    78. text: 'Atlantic Ocean',
    79. values: [
    80. [6, 10],
    81. [4, 6],
    82. [7, 13],
    83. [6, 12],
    84. [8, 14],
    85. [6, 14],
    86. ],
    87. backgroundColor: '#e7ffcc',
    88. lineColor: '#e7ffcc',
    89. },
    90. {
    91. text: 'Southern Ocean',
    92. values: [
    93. [7, 8],
    94. [4, 6],
    95. [8, 9],
    96. [6, 12],
    97. [9, 12],
    98. [6, 14],
    99. ],
    100. backgroundColor: '#ccfff9',
    101. lineColor: '#ccfff9',
    102. },
    103. {
    104. text: 'Indian Ocean',
    105. values: [
    106. [7, 8],
    107. [4, 5],
    108. [8, 9],
    109. [6, 8],
    110. [9, 11],
    111. [9, 13],
    112. ],
    113. backgroundColor: '#8bdceb',
    114. lineColor: '#8bdceb',
    115. },
    116. ],
    117. guide: {
    118. marker: {
    119. type: 'triangle',
    120. size: '7px',
    121. },
    122. plotLabel: {
    123. text: '<span style="color:%color">%t</span><span style="color:%color"> Min: %node-min-value Max: %node-max-value</span> ',
    124. backgroundColor: '#000',
    125. borderRadius: '5px',
    126. fontColor: '#FFF',
    127. fontSize: '15px',
    128. headerText: '%kt',
    129. },
    130. },
    131. };
    132.  
    133. // RENDER CHARTS
    134. // -----------------------------
    135. zingchart.render({
    136. id: 'myChart',
    137. data: chartConfig,
    138. height: '100%',
    139. width: '100%',
    140. });