• Edit
  • Download
    1. <!DOCTYPE html>
    2. <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. <script nonce="undefined">
    9. zingchart.MODULESDIR = "https://cdn.zingchart.com/modules/";
    10. ZC.LICENSE = ["b55b025e438fa8a98e32482b5f768ff5"];
    11. </script>
    12. <style></style>
    13. </head>
    14.  
    15. <body>
    16. <div id='myChart'></div>
    17. <script>
    18. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    19. var myConfig = {
    20. type: 'line',
    21. scaleX: {
    22. zooming: true,
    23. item: {
    24. fontSize: 10
    25. }
    26. },
    27. scrollX: {
    28.  
    29. },
    30. scrollY: {
    31.  
    32. },
    33. scaleY: {
    34. zooming: true,
    35. values: '0:350:50',
    36. guide: {
    37. lineStyle: 'dotted'
    38. },
    39. item: {
    40. fontSize: 10
    41. }
    42. },
    43. plot: {
    44. lineWidth: 1,
    45. lineColor: '#666699',
    46. marker: {
    47. size: 3,
    48. backgroundColor: '#64b4ce #e0e0eb',
    49. borderWidth: 1,
    50. borderColor: '#666699'
    51. }
    52. },
    53. crosshairX: {},
    54. series: [{
    55. values: [
    56. 138.2, 196.3, 153.6, 127.4, 114.1, 181.4, 131.1, 170.9, 154.4, 105.2,
    57. 136.3, 180.4, 150.5, 135.3, 130.5, 164.3, 110.5, 127.2, 183.9, 191.3,
    58. 184.8, 165.7, 102.4, 196.2, 179.1, 116.8, 175.2, 137.8, 100.9, 177.3,
    59. 122.5, 123.1, 131.7, 109.4, 167.2, 142.7, 140.7, 165.5, 148.6, 181.2,
    60. 108.7, 132.9, 161.9, 192.1, 134.5, 149.4, 183.9, 124.4, 114.4, 121.7,
    61. 249.6, 224.3, 199.3, 151.4, 112.4, 213.5, 265.3, 239.5, 294.6, 284.4,
    62. 279.2, 273.7, 233.7, 290.1, 228.2, 269.3, 208.4, 224.6, 235.1, 222.5,
    63. 225.7, 257.2, 238.1, 262.5, 229.6, 269.7, 283.9, 236.2, 260.8, 255.2,
    64. 258.1, 219.5, 292.4, 264.8, 251.7, 225.9, 206.5, 203.3, 258.2, 200.7,
    65. 237.2, 208.1, 262.7, 292.8, 249.2, 242.6, 284.4, 246.7, 275.9, 274.5,
    66. 234.2
    67. ]
    68. }]
    69. };
    70.  
    71. zingchart.TOUCHZOOM = 'pinch';
    72.  
    73. zingchart.render({
    74. id: 'myChart',
    75. data: myConfig,
    76. height: 400,
    77. width: '100%'
    78. });
    79. </script>
    80. </body>
    81.  
    82. </html>
    1. <!DOCTYPE html>
    2. <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. <script>
    9. zingchart.MODULESDIR = "https://cdn.zingchart.com/modules/";
    10. ZC.LICENSE = ["b55b025e438fa8a98e32482b5f768ff5"];
    11. </script>
    12. </head>
    13.  
    14. <body>
    15. <div id='myChart'></div>
    16. </body>
    17.  
    18. </html>
    1.  
    1. var myConfig = {
    2. type: 'line',
    3. scaleX: {
    4. zooming: true,
    5. item: {
    6. fontSize: 10
    7. }
    8. },
    9. scrollX: {
    10.  
    11. },
    12. scrollY: {
    13.  
    14. },
    15. scaleY: {
    16. zooming: true,
    17. values: '0:350:50',
    18. guide: {
    19. lineStyle: 'dotted'
    20. },
    21. item: {
    22. fontSize: 10
    23. }
    24. },
    25. plot: {
    26. lineWidth: 1,
    27. lineColor: '#666699',
    28. marker: {
    29. size: 3,
    30. backgroundColor: '#64b4ce #e0e0eb',
    31. borderWidth: 1,
    32. borderColor: '#666699'
    33. }
    34. },
    35. crosshairX: {},
    36. series: [{
    37. values: [
    38. 138.2, 196.3, 153.6, 127.4, 114.1, 181.4, 131.1, 170.9, 154.4, 105.2,
    39. 136.3, 180.4, 150.5, 135.3, 130.5, 164.3, 110.5, 127.2, 183.9, 191.3,
    40. 184.8, 165.7, 102.4, 196.2, 179.1, 116.8, 175.2, 137.8, 100.9, 177.3,
    41. 122.5, 123.1, 131.7, 109.4, 167.2, 142.7, 140.7, 165.5, 148.6, 181.2,
    42. 108.7, 132.9, 161.9, 192.1, 134.5, 149.4, 183.9, 124.4, 114.4, 121.7,
    43. 249.6, 224.3, 199.3, 151.4, 112.4, 213.5, 265.3, 239.5, 294.6, 284.4,
    44. 279.2, 273.7, 233.7, 290.1, 228.2, 269.3, 208.4, 224.6, 235.1, 222.5,
    45. 225.7, 257.2, 238.1, 262.5, 229.6, 269.7, 283.9, 236.2, 260.8, 255.2,
    46. 258.1, 219.5, 292.4, 264.8, 251.7, 225.9, 206.5, 203.3, 258.2, 200.7,
    47. 237.2, 208.1, 262.7, 292.8, 249.2, 242.6, 284.4, 246.7, 275.9, 274.5,
    48. 234.2
    49. ]
    50. }]
    51. };
    52.  
    53. zingchart.TOUCHZOOM = 'pinch';
    54.  
    55. zingchart.render({
    56. id: 'myChart',
    57. data: myConfig,
    58. height: 400,
    59. width: '100%'
    60. });