• 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. let chartConfig = {
    17. type: 'line',
    18. zoom: {
    19. label: { //Zooming Labels
    20. alpha: 0.7,
    21. backgroundColor: 'white',
    22. borderWidth: 1,
    23. borderColor: '#3399ff',
    24. fontColor: '#3399ff',
    25. fontFamily: 'Georgia',
    26. fontSize: 10,
    27. fontStyle: 'normal', //'italic' or 'normal'
    28. fontWeight: 'normal', //'bold' or 'normal'
    29. padding: '5%',
    30. visible: true,
    31. },
    32. },
    33. scaleX: {
    34. zooming: true,
    35. item: {
    36. fontSize: 10
    37. }
    38. },
    39. scaleY: {
    40. zooming: true,
    41. values: '50:350:50',
    42. guide: {
    43. lineStyle: 'dotted'
    44. },
    45. item: {
    46. fontSize: 10
    47. }
    48. },
    49. plot: {
    50. lineWidth: 1,
    51. lineColor: '#3399ff',
    52. marker: {
    53. size: 3,
    54. backgroundColor: '#ccccff #00ff00',
    55. borderWidth: 1,
    56. borderColor: '#3399ff'
    57. },
    58. tooltip: {
    59. visible: false
    60. }
    61. },
    62. crosshairX: {
    63. plotLabel: {
    64. text: '%v'
    65. },
    66. scaleLabel: {
    67. visible: false
    68. }
    69. },
    70. crosshairY: {
    71. type: 'multiple',
    72. scaleLabel: {
    73. visible: false
    74. }
    75. },
    76. series: [{
    77. values: [
    78. 138.2, 196.3, 153.6, 127.4, 114.1, 181.4, 131.1, 170.9, 154.4, 105.2,
    79. 136.3, 180.4, 150.5, 135.3, 130.5, 164.3, 110.5, 127.2, 183.9, 191.3,
    80. 184.8, 165.7, 102.4, 196.2, 179.1, 116.8, 175.2, 137.8, 100.9, 177.3,
    81. 122.5, 123.1, 131.7, 109.4, 167.2, 142.7, 140.7, 165.5, 148.6, 181.2,
    82. 108.7, 132.9, 161.9, 192.1, 134.5, 149.4, 183.9, 124.4, 114.4, 121.7,
    83. 249.6, 224.3, 199.3, 151.4, 112.4, 213.5, 265.3, 239.5, 294.6, 284.4,
    84. 279.2, 273.7, 233.7, 290.1, 228.2, 269.3, 208.4, 224.6, 235.1, 222.5,
    85. 225.7, 257.2, 238.1, 262.5, 229.6, 269.7, 283.9, 236.2, 260.8, 255.2,
    86. 258.1, 219.5, 292.4, 264.8, 251.7, 225.9, 206.5, 203.3, 258.2, 200.7,
    87. 237.2, 208.1, 262.7, 292.8, 249.2, 242.6, 284.4, 246.7, 275.9, 274.5,
    88. 234.2
    89. ]
    90. }]
    91. };
    92.  
    93. zingchart.render({
    94. id: 'myChart',
    95. data: chartConfig,
    96. height: 400,
    97. width: '100%'
    98. });
    99. </script>
    100. </body>
    101.  
    102. </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. let chartConfig = {
    2. type: 'line',
    3. zoom: {
    4. label: { //Zooming Labels
    5. alpha: 0.7,
    6. backgroundColor: 'white',
    7. borderWidth: 1,
    8. borderColor: '#3399ff',
    9. fontColor: '#3399ff',
    10. fontFamily: 'Georgia',
    11. fontSize: 10,
    12. fontStyle: 'normal', //'italic' or 'normal'
    13. fontWeight: 'normal', //'bold' or 'normal'
    14. padding: '5%',
    15. visible: true,
    16. },
    17. },
    18. scaleX: {
    19. zooming: true,
    20. item: {
    21. fontSize: 10
    22. }
    23. },
    24. scaleY: {
    25. zooming: true,
    26. values: '50:350:50',
    27. guide: {
    28. lineStyle: 'dotted'
    29. },
    30. item: {
    31. fontSize: 10
    32. }
    33. },
    34. plot: {
    35. lineWidth: 1,
    36. lineColor: '#3399ff',
    37. marker: {
    38. size: 3,
    39. backgroundColor: '#ccccff #00ff00',
    40. borderWidth: 1,
    41. borderColor: '#3399ff'
    42. },
    43. tooltip: {
    44. visible: false
    45. }
    46. },
    47. crosshairX: {
    48. plotLabel: {
    49. text: '%v'
    50. },
    51. scaleLabel: {
    52. visible: false
    53. }
    54. },
    55. crosshairY: {
    56. type: 'multiple',
    57. scaleLabel: {
    58. visible: false
    59. }
    60. },
    61. series: [{
    62. values: [
    63. 138.2, 196.3, 153.6, 127.4, 114.1, 181.4, 131.1, 170.9, 154.4, 105.2,
    64. 136.3, 180.4, 150.5, 135.3, 130.5, 164.3, 110.5, 127.2, 183.9, 191.3,
    65. 184.8, 165.7, 102.4, 196.2, 179.1, 116.8, 175.2, 137.8, 100.9, 177.3,
    66. 122.5, 123.1, 131.7, 109.4, 167.2, 142.7, 140.7, 165.5, 148.6, 181.2,
    67. 108.7, 132.9, 161.9, 192.1, 134.5, 149.4, 183.9, 124.4, 114.4, 121.7,
    68. 249.6, 224.3, 199.3, 151.4, 112.4, 213.5, 265.3, 239.5, 294.6, 284.4,
    69. 279.2, 273.7, 233.7, 290.1, 228.2, 269.3, 208.4, 224.6, 235.1, 222.5,
    70. 225.7, 257.2, 238.1, 262.5, 229.6, 269.7, 283.9, 236.2, 260.8, 255.2,
    71. 258.1, 219.5, 292.4, 264.8, 251.7, 225.9, 206.5, 203.3, 258.2, 200.7,
    72. 237.2, 208.1, 262.7, 292.8, 249.2, 242.6, 284.4, 246.7, 275.9, 274.5,
    73. 234.2
    74. ]
    75. }]
    76. };
    77.  
    78. zingchart.render({
    79. id: 'myChart',
    80. data: chartConfig,
    81. height: 400,
    82. width: '100%'
    83. });