• 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. "scale-y-n": {
    19. "line-color": "red",
    20. "line-width": 3,
    21. "label": {
    22. "font-color": "red",
    23. "font-size": 20,
    24. },
    25. "item": {
    26. "font-color": "red",
    27. "font-size": 10,
    28. "font-weight": "bold"
    29. },
    30. "tick": {
    31. "line-color": "red",
    32. "line-width": 3
    33. }
    34. },
    35. "utc": true,
    36. "timezone": 0,
    37. "scale-x": {
    38. "min-value": "1420146000000",
    39. "step": "day",
    40. "transform": {
    41. "type": "date",
    42. "all": "%m/%d"
    43. },
    44. "label": {
    45. "text": "scale-x"
    46. },
    47. "item": {
    48. "font-size": 10
    49. }
    50. },
    51. "scale-y": {
    52. "values": "150:350:50",
    53. "format": "$%v",
    54. "label": {
    55. "text": "scale-y"
    56. }
    57. },
    58. "scale-y-2": {
    59. "values": "131:331:25",
    60. "format": "%v €",
    61. "label": {
    62. "text": "scale-y-2"
    63. }
    64. },
    65. "crosshair-x": {
    66. "plot-label": {
    67. "visible": false
    68. }
    69. },
    70. "crosshair-y": {
    71. "type": "multiple"
    72. },
    73. "plot": {
    74. "aspect": "spline",
    75. "line-width": 1,
    76. "marker": {
    77. "size": 2
    78. },
    79. "tooltip": {
    80. "visible": false
    81. }
    82. },
    83. "plotarea": {
    84. "margin-left": "dynamic",
    85. "margin-right": "dynamic"
    86. },
    87. "series": [{
    88. "scales": "scale-x,scale-y",
    89. "values": [238.26, 296.39, 253.63, 227.46, 214.01, 281.04, 231.51, 270.49, 254.74, 205.42, 236.23, 280.34, 250.45, 235.23, 230.65, 264.3, 210.05, 227.32, 283.99, 291.33, 284.8, 265.78, 202.49, 196.26, 279.41, 216.84, 275.29, 237.88, 200.59, 277.93, 290.15, 228.29, 269.3, 208.45, 224.36, 235.1, 222.5, 225.74, 257.26, 238.19, 208.15, 262.7, 292.88, 249.27, 242.68, 284.41, 246.79, 275.96, 274.52, 227.52, 209.81, ]
    90. },
    91. {
    92. "scales": "scale-x,scale-y",
    93. "values": [222.35, 223.41, 231.7, 209.4, 267.92, 242.07, 240.77, 265.25, 248.61, 281.92, 208.79, 232.97, 261.69, 292.01, 234.55, 249.94, 283.59, 224.4, 214.54, 221.97, 249.76, 224.3, 199.3, 251.41, 212.45, 213.52, 265.36, 239.35, 294.6, 284.4, 279.2, 273.17, 233.7, 262.85, 229.6, 269.17, 283.09, 236.26, 260.48, 255.21, 258.17, 219.51, 292.4, 264.82, 251.74, 225.19, 206.59, 203.23, 258.26, 200.72, 237.82]
    94. },
    95. {
    96. "scales": "scale-x,scale-y-2",
    97. "values": [246.56, 238.11, 199.58, 280.72, 214.71, 272.44, 233.76, 261.87, 265.12, 289.71, 233.56, 283.31, 204.81, 205.74, 263.88, 259.66, 209.87, 274.01, 223.61, 268.21, 235.23, 274.51, 205.89, 258.19, 237.23, 253.15, 259.47, 223.6, 225.23, 271.84, 283.98, 197.06, 255.95, 290.45, 215.97, 274.32, 292.5, 249.58, 281.24, 281.72, 224.02, 268.25, 297.91, 244.88, 226.25, 238.71, 250.47, 273.18, 275.2, 286.43, 242.59]
    98. },
    99. {
    100. "scales": "scale-x,scale-y-2",
    101. "values": [237.24, 197.01, 245.34, 233.14, 270.46, 203.05, 209.58, 251.05, 272.23, 211.03, 270.73, 201.62, 297.4, 297.93, 266.05, 257.44, 211.75, 246.13, 266.55, 208.06, 275.1, 223.6, 219.1, 227.86, 267.24, 291.26, 279.71, 214.1, 205.26, 229.05, 205.04, 254.82, 276.28, 271.44, 292.41, 242.85, 209.33, 202.97, 264.79, 203.56, 287.11, 225.44, 200.12, 294.24, 208.64, 250.79, 231.06, 276.93, 233.46, 263.43, 282.04]
    102. }
    103. ]
    104. };
    105.  
    106. zingchart.render({
    107. id: 'myChart',
    108. data: myConfig,
    109. height: 400,
    110. width: "100%"
    111. });
    112. </script>
    113. </body>
    114.  
    115. </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. "scale-y-n": {
    4. "line-color": "red",
    5. "line-width": 3,
    6. "label": {
    7. "font-color": "red",
    8. "font-size": 20,
    9. },
    10. "item": {
    11. "font-color": "red",
    12. "font-size": 10,
    13. "font-weight": "bold"
    14. },
    15. "tick": {
    16. "line-color": "red",
    17. "line-width": 3
    18. }
    19. },
    20. "utc": true,
    21. "timezone": 0,
    22. "scale-x": {
    23. "min-value": "1420146000000",
    24. "step": "day",
    25. "transform": {
    26. "type": "date",
    27. "all": "%m/%d"
    28. },
    29. "label": {
    30. "text": "scale-x"
    31. },
    32. "item": {
    33. "font-size": 10
    34. }
    35. },
    36. "scale-y": {
    37. "values": "150:350:50",
    38. "format": "$%v",
    39. "label": {
    40. "text": "scale-y"
    41. }
    42. },
    43. "scale-y-2": {
    44. "values": "131:331:25",
    45. "format": "%v €",
    46. "label": {
    47. "text": "scale-y-2"
    48. }
    49. },
    50. "crosshair-x": {
    51. "plot-label": {
    52. "visible": false
    53. }
    54. },
    55. "crosshair-y": {
    56. "type": "multiple"
    57. },
    58. "plot": {
    59. "aspect": "spline",
    60. "line-width": 1,
    61. "marker": {
    62. "size": 2
    63. },
    64. "tooltip": {
    65. "visible": false
    66. }
    67. },
    68. "plotarea": {
    69. "margin-left": "dynamic",
    70. "margin-right": "dynamic"
    71. },
    72. "series": [{
    73. "scales": "scale-x,scale-y",
    74. "values": [238.26, 296.39, 253.63, 227.46, 214.01, 281.04, 231.51, 270.49, 254.74, 205.42, 236.23, 280.34, 250.45, 235.23, 230.65, 264.3, 210.05, 227.32, 283.99, 291.33, 284.8, 265.78, 202.49, 196.26, 279.41, 216.84, 275.29, 237.88, 200.59, 277.93, 290.15, 228.29, 269.3, 208.45, 224.36, 235.1, 222.5, 225.74, 257.26, 238.19, 208.15, 262.7, 292.88, 249.27, 242.68, 284.41, 246.79, 275.96, 274.52, 227.52, 209.81, ]
    75. },
    76. {
    77. "scales": "scale-x,scale-y",
    78. "values": [222.35, 223.41, 231.7, 209.4, 267.92, 242.07, 240.77, 265.25, 248.61, 281.92, 208.79, 232.97, 261.69, 292.01, 234.55, 249.94, 283.59, 224.4, 214.54, 221.97, 249.76, 224.3, 199.3, 251.41, 212.45, 213.52, 265.36, 239.35, 294.6, 284.4, 279.2, 273.17, 233.7, 262.85, 229.6, 269.17, 283.09, 236.26, 260.48, 255.21, 258.17, 219.51, 292.4, 264.82, 251.74, 225.19, 206.59, 203.23, 258.26, 200.72, 237.82]
    79. },
    80. {
    81. "scales": "scale-x,scale-y-2",
    82. "values": [246.56, 238.11, 199.58, 280.72, 214.71, 272.44, 233.76, 261.87, 265.12, 289.71, 233.56, 283.31, 204.81, 205.74, 263.88, 259.66, 209.87, 274.01, 223.61, 268.21, 235.23, 274.51, 205.89, 258.19, 237.23, 253.15, 259.47, 223.6, 225.23, 271.84, 283.98, 197.06, 255.95, 290.45, 215.97, 274.32, 292.5, 249.58, 281.24, 281.72, 224.02, 268.25, 297.91, 244.88, 226.25, 238.71, 250.47, 273.18, 275.2, 286.43, 242.59]
    83. },
    84. {
    85. "scales": "scale-x,scale-y-2",
    86. "values": [237.24, 197.01, 245.34, 233.14, 270.46, 203.05, 209.58, 251.05, 272.23, 211.03, 270.73, 201.62, 297.4, 297.93, 266.05, 257.44, 211.75, 246.13, 266.55, 208.06, 275.1, 223.6, 219.1, 227.86, 267.24, 291.26, 279.71, 214.1, 205.26, 229.05, 205.04, 254.82, 276.28, 271.44, 292.41, 242.85, 209.33, 202.97, 264.79, 203.56, 287.11, 225.44, 200.12, 294.24, 208.64, 250.79, 231.06, 276.93, 233.46, 263.43, 282.04]
    87. }
    88. ]
    89. };
    90.  
    91. zingchart.render({
    92. id: 'myChart',
    93. data: myConfig,
    94. height: 400,
    95. width: "100%"
    96. });