• 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. var myConfig = {
    17. type: 'line',
    18. scaleX: {
    19. item: {
    20. fontSize: 10
    21. },
    22. markers: [{
    23. type: 'line',
    24. range: [10],
    25. valueRange: true,
    26. lineColor: 'red',
    27. lineWidth: 2,
    28. lineStyle: 'solid',
    29. alpha: 1,
    30. label: {
    31. text: 'Line Marker',
    32.  
    33. alpha: 1,
    34. angle: 0,
    35. backgroundColor: '#ffe6e6',
    36. borderColor: 'red',
    37. borderRadius: '3px',
    38. borderWidth: 1,
    39. fontColor: 'red',
    40. fontFamily: 'Courier',
    41. fontSize: 10,
    42. fontStyle: 'normal',
    43. fontWeight: 'normal',
    44. lineStyle: 'solid',
    45. padding: 5,
    46. textAlign: 'left',
    47. textAlpha: 1,
    48. width: '100%',
    49.  
    50. mediaRules: [{
    51. maxWidth: 400,
    52. backgroundColor: 'red',
    53. fontColor: '#ffe6e6',
    54. borderColor: '#ffe6e6',
    55. }]
    56. }
    57. },
    58. {
    59. type: 'area',
    60. range: [35, 90],
    61. valueRange: true,
    62. backgroundColor: 'red',
    63. label: {
    64. text: 'Area Marker',
    65.  
    66. alpha: 1,
    67. angle: 0,
    68. backgroundColor: '#ffe6e6',
    69. borderColor: 'red',
    70. borderRadius: '3px',
    71. borderWidth: 1,
    72. fontColor: 'red',
    73. fontFamily: 'Courier',
    74. fontSize: 10,
    75. fontStyle: 'normal',
    76. fontWeight: 'normal',
    77. lineStyle: 'solid',
    78. padding: 5,
    79. textAlign: 'left',
    80. textAlpha: 1,
    81. width: '100%',
    82.  
    83. mediaRules: [{
    84. maxWidth: 400,
    85. backgroundColor: 'red',
    86. fontColor: '#ffe6e6',
    87. borderColor: '#ffe6e6',
    88. }]
    89. }
    90. }
    91. ]
    92. },
    93. scaleY: {
    94. values: '50:350:50',
    95. guide: {
    96. lineStyle: 'dotted'
    97. },
    98. item: {
    99. fontSize: 10
    100. }
    101. },
    102. plot: {
    103. lineWidth: 2,
    104. lineColor: '#3399ff',
    105. marker: {
    106. size: 3,
    107. backgroundColor: '#ccccff #00ff00',
    108. borderWidth: 1,
    109. borderColor: '#3399ff'
    110. },
    111. tooltip: {
    112. visible: false
    113. }
    114. },
    115. crosshairX: {
    116. plotLabel: {
    117. text: '%v'
    118. },
    119. scaleLabel: {
    120. visible: false
    121. }
    122. },
    123. crosshairY: {
    124. type: 'multiple',
    125. scaleLabel: {
    126. visible: false
    127. }
    128. },
    129. series: [{
    130. values: [
    131. 138.2, 196.3, 153.6, 127.4, 114.1, 181.4, 131.1, 170.9, 154.4, 105.2,
    132. 136.3, 180.4, 150.5, 135.3, 130.5, 164.3, 110.5, 127.2, 183.9, 191.3,
    133. 184.8, 165.7, 102.4, 196.2, 179.1, 116.8, 175.2, 137.8, 100.9, 177.3,
    134. 122.5, 123.1, 131.7, 109.4, 167.2, 142.7, 140.7, 165.5, 148.6, 181.2,
    135. 108.7, 132.9, 161.9, 192.1, 134.5, 149.4, 183.9, 124.4, 114.4, 121.7,
    136. 249.6, 224.3, 199.3, 151.4, 112.4, 213.5, 265.3, 239.5, 294.6, 284.4,
    137. 279.2, 273.7, 233.7, 290.1, 228.2, 269.3, 208.4, 224.6, 235.1, 222.5,
    138. 225.7, 257.2, 238.1, 262.5, 229.6, 269.7, 283.9, 236.2, 260.8, 255.2,
    139. 258.1, 219.5, 292.4, 264.8, 251.7, 225.9, 206.5, 203.3, 258.2, 200.7,
    140. 237.2, 208.1, 262.7, 292.8, 249.2, 242.6, 284.4, 246.7, 275.9, 274.5,
    141. 234.2
    142. ]
    143. }]
    144. };
    145.  
    146. zingchart.render({
    147. id: 'myChart',
    148. data: myConfig,
    149. height: 400,
    150. width: '100%'
    151. });
    152. </script>
    153. </body>
    154.  
    155. </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. var myConfig = {
    2. type: 'line',
    3. scaleX: {
    4. item: {
    5. fontSize: 10
    6. },
    7. markers: [{
    8. type: 'line',
    9. range: [10],
    10. valueRange: true,
    11. lineColor: 'red',
    12. lineWidth: 2,
    13. lineStyle: 'solid',
    14. alpha: 1,
    15. label: {
    16. text: 'Line Marker',
    17.  
    18. alpha: 1,
    19. angle: 0,
    20. backgroundColor: '#ffe6e6',
    21. borderColor: 'red',
    22. borderRadius: '3px',
    23. borderWidth: 1,
    24. fontColor: 'red',
    25. fontFamily: 'Courier',
    26. fontSize: 10,
    27. fontStyle: 'normal',
    28. fontWeight: 'normal',
    29. lineStyle: 'solid',
    30. padding: 5,
    31. textAlign: 'left',
    32. textAlpha: 1,
    33. width: '100%',
    34.  
    35. mediaRules: [{
    36. maxWidth: 400,
    37. backgroundColor: 'red',
    38. fontColor: '#ffe6e6',
    39. borderColor: '#ffe6e6',
    40. }]
    41. }
    42. },
    43. {
    44. type: 'area',
    45. range: [35, 90],
    46. valueRange: true,
    47. backgroundColor: 'red',
    48. label: {
    49. text: 'Area Marker',
    50.  
    51. alpha: 1,
    52. angle: 0,
    53. backgroundColor: '#ffe6e6',
    54. borderColor: 'red',
    55. borderRadius: '3px',
    56. borderWidth: 1,
    57. fontColor: 'red',
    58. fontFamily: 'Courier',
    59. fontSize: 10,
    60. fontStyle: 'normal',
    61. fontWeight: 'normal',
    62. lineStyle: 'solid',
    63. padding: 5,
    64. textAlign: 'left',
    65. textAlpha: 1,
    66. width: '100%',
    67.  
    68. mediaRules: [{
    69. maxWidth: 400,
    70. backgroundColor: 'red',
    71. fontColor: '#ffe6e6',
    72. borderColor: '#ffe6e6',
    73. }]
    74. }
    75. }
    76. ]
    77. },
    78. scaleY: {
    79. values: '50:350:50',
    80. guide: {
    81. lineStyle: 'dotted'
    82. },
    83. item: {
    84. fontSize: 10
    85. }
    86. },
    87. plot: {
    88. lineWidth: 2,
    89. lineColor: '#3399ff',
    90. marker: {
    91. size: 3,
    92. backgroundColor: '#ccccff #00ff00',
    93. borderWidth: 1,
    94. borderColor: '#3399ff'
    95. },
    96. tooltip: {
    97. visible: false
    98. }
    99. },
    100. crosshairX: {
    101. plotLabel: {
    102. text: '%v'
    103. },
    104. scaleLabel: {
    105. visible: false
    106. }
    107. },
    108. crosshairY: {
    109. type: 'multiple',
    110. scaleLabel: {
    111. visible: false
    112. }
    113. },
    114. series: [{
    115. values: [
    116. 138.2, 196.3, 153.6, 127.4, 114.1, 181.4, 131.1, 170.9, 154.4, 105.2,
    117. 136.3, 180.4, 150.5, 135.3, 130.5, 164.3, 110.5, 127.2, 183.9, 191.3,
    118. 184.8, 165.7, 102.4, 196.2, 179.1, 116.8, 175.2, 137.8, 100.9, 177.3,
    119. 122.5, 123.1, 131.7, 109.4, 167.2, 142.7, 140.7, 165.5, 148.6, 181.2,
    120. 108.7, 132.9, 161.9, 192.1, 134.5, 149.4, 183.9, 124.4, 114.4, 121.7,
    121. 249.6, 224.3, 199.3, 151.4, 112.4, 213.5, 265.3, 239.5, 294.6, 284.4,
    122. 279.2, 273.7, 233.7, 290.1, 228.2, 269.3, 208.4, 224.6, 235.1, 222.5,
    123. 225.7, 257.2, 238.1, 262.5, 229.6, 269.7, 283.9, 236.2, 260.8, 255.2,
    124. 258.1, 219.5, 292.4, 264.8, 251.7, 225.9, 206.5, 203.3, 258.2, 200.7,
    125. 237.2, 208.1, 262.7, 292.8, 249.2, 242.6, 284.4, 246.7, 275.9, 274.5,
    126. 234.2
    127. ]
    128. }]
    129. };
    130.  
    131. zingchart.render({
    132. id: 'myChart',
    133. data: myConfig,
    134. height: 400,
    135. width: '100%'
    136. });