• 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. utc: true,
    19. timezone: -5,
    20. scaleX: {
    21. minValue: 1373045400000,
    22. step: 60000,
    23. transform: {
    24. type: 'date',
    25. all: '%D, %d %M %Y<br>%h:%i %A',
    26. itemsOverlap: true,
    27. },
    28. item: {
    29. fontSize: 10
    30. }
    31. },
    32. plot: {
    33. tooltip: {
    34. visible: false
    35. }
    36. },
    37. crosshairX: {
    38. plotLabel: {
    39. fontSize: 10,
    40. multiple: true
    41. },
    42. scaleLabel: {
    43. fontSize: 10
    44. }
    45. },
    46. scaleY: {
    47. item: {
    48. fontSize: 10
    49. },
    50. guide: {
    51. lineStyle: 'dotted'
    52. }
    53. },
    54. series: [{
    55. values: [10, 10.2, 35, 1, 5, 10.2, 35, 1, 5, 10.2, 35, 1, 5, 10, 10.2, 35, 1, 5, 10.2, 35, 1, 5, 10.2, 35, 1, 5, 10, 10.2, 35, 1, 5, 10.2, 35, 1, 5, 10.2, 35, 1, 5, 10, 10.2, 35, 1, 5, 10.2, 35, 1, 5, 10.2, 35, 1],
    56. lineColor: '#3F51B5',
    57. lineWidth: 1,
    58. marker: {
    59. backgroundColor: 'white',
    60. borderColor: '#3F51B5',
    61. borderWidth: 1,
    62. size: 3
    63. }
    64. },
    65. {
    66. values: [15, 15.2, 40, 6, 10, 15.2, 40, 6, 10, 15.2, 40, 6, 10, 15, 15.2, 40, 6, 10, 15.2, 40, 6, 10, 15.2, 40, 6, 10, 15, 15.2, 40, 6, 10, 15.2, 40, 6, 10, 15.2, 40, 6, 10, 15, 15.2, 40, 6, 10, 15.2, 40, 6, 10, 15.2, 40, 6],
    67. lineColor: '#7986CB',
    68. lineWidth: 1,
    69. marker: {
    70. backgroundColor: 'white',
    71. borderColor: '#7986CB',
    72. borderWidth: 1,
    73. size: 3
    74. }
    75. },
    76. {
    77. values: [20, 20.2, 45, 11, 15, 20.2, 45, 11, 15, 20.2, 45, 11, 15, 20, 20.2, 45, 11, 15, 20.2, 45, 11, 15, 20.2, 45, 11, 15, 20, 20.2, 45, 11, 15, 20.2, 45, 11, 15, 20.2, 45, 11, 15, 20, 20.2, 45, 11, 15, 20.2, 45, 11, 15, 20.2, 45, 11],
    78. lineColor: '#C5CAE9',
    79. lineWidth: 1,
    80. marker: {
    81. backgroundColor: 'white',
    82. borderColor: '#C5CAE9',
    83. borderWidth: 1,
    84. size: 3
    85. }
    86. },
    87. ]
    88. };
    89.  
    90. zingchart.render({
    91. id: 'myChart',
    92. data: myConfig,
    93. height: 400,
    94. width: '100%'
    95. });
    96. </script>
    97. </body>
    98.  
    99. </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. utc: true,
    4. timezone: -5,
    5. scaleX: {
    6. minValue: 1373045400000,
    7. step: 60000,
    8. transform: {
    9. type: 'date',
    10. all: '%D, %d %M %Y<br>%h:%i %A',
    11. itemsOverlap: true,
    12. },
    13. item: {
    14. fontSize: 10
    15. }
    16. },
    17. plot: {
    18. tooltip: {
    19. visible: false
    20. }
    21. },
    22. crosshairX: {
    23. plotLabel: {
    24. fontSize: 10,
    25. multiple: true
    26. },
    27. scaleLabel: {
    28. fontSize: 10
    29. }
    30. },
    31. scaleY: {
    32. item: {
    33. fontSize: 10
    34. },
    35. guide: {
    36. lineStyle: 'dotted'
    37. }
    38. },
    39. series: [{
    40. values: [10, 10.2, 35, 1, 5, 10.2, 35, 1, 5, 10.2, 35, 1, 5, 10, 10.2, 35, 1, 5, 10.2, 35, 1, 5, 10.2, 35, 1, 5, 10, 10.2, 35, 1, 5, 10.2, 35, 1, 5, 10.2, 35, 1, 5, 10, 10.2, 35, 1, 5, 10.2, 35, 1, 5, 10.2, 35, 1],
    41. lineColor: '#3F51B5',
    42. lineWidth: 1,
    43. marker: {
    44. backgroundColor: 'white',
    45. borderColor: '#3F51B5',
    46. borderWidth: 1,
    47. size: 3
    48. }
    49. },
    50. {
    51. values: [15, 15.2, 40, 6, 10, 15.2, 40, 6, 10, 15.2, 40, 6, 10, 15, 15.2, 40, 6, 10, 15.2, 40, 6, 10, 15.2, 40, 6, 10, 15, 15.2, 40, 6, 10, 15.2, 40, 6, 10, 15.2, 40, 6, 10, 15, 15.2, 40, 6, 10, 15.2, 40, 6, 10, 15.2, 40, 6],
    52. lineColor: '#7986CB',
    53. lineWidth: 1,
    54. marker: {
    55. backgroundColor: 'white',
    56. borderColor: '#7986CB',
    57. borderWidth: 1,
    58. size: 3
    59. }
    60. },
    61. {
    62. values: [20, 20.2, 45, 11, 15, 20.2, 45, 11, 15, 20.2, 45, 11, 15, 20, 20.2, 45, 11, 15, 20.2, 45, 11, 15, 20.2, 45, 11, 15, 20, 20.2, 45, 11, 15, 20.2, 45, 11, 15, 20.2, 45, 11, 15, 20, 20.2, 45, 11, 15, 20.2, 45, 11, 15, 20.2, 45, 11],
    63. lineColor: '#C5CAE9',
    64. lineWidth: 1,
    65. marker: {
    66. backgroundColor: 'white',
    67. borderColor: '#C5CAE9',
    68. borderWidth: 1,
    69. size: 3
    70. }
    71. },
    72. ]
    73. };
    74.  
    75. zingchart.render({
    76. id: 'myChart',
    77. data: myConfig,
    78. height: 400,
    79. width: '100%'
    80. });