• 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": "area",
    18. "plot": {
    19. "styles": [{ //Node Index 0
    20. "line-color": "pink",
    21. "line-style": "dashdot",
    22. "background-color": "pink"
    23. },
    24. { //Node Index 1
    25. "line-color": "red",
    26. "line-style": "dotted",
    27. "background-color": "red"
    28. },
    29. { //Node Index 2
    30. "line-color": "orange",
    31. "line-style": "dashed",
    32. "background-color": "orange"
    33. },
    34. { //Node Index 3
    35. "line-color": "green",
    36. "line-style": "dashdot",
    37. "background-color": "green"
    38. },
    39. { //Node Index 4
    40. "line-color": "blue",
    41. "line-style": "dotted",
    42. "background-color": "blue"
    43. },
    44. { //Node Index 5
    45. "line-color": "purple",
    46. "line-style": "dashed",
    47. "background-color": "purple"
    48. }
    49. ],
    50. "marker": {
    51. "styles": [{ //Node Index 0
    52. "background-color": "pink",
    53. "border-color": "pink"
    54. },
    55. { //Node Index 1
    56. "background-color": "red",
    57. "border-color": "red"
    58. },
    59. { //Node Index 2
    60. "background-color": "orange",
    61. "border-color": "orange"
    62. },
    63. { //Node Index 3
    64. "background-color": "green",
    65. "border-color": "green"
    66. },
    67. { //Node Index 4
    68. "background-color": "blue",
    69. "border-color": "blue"
    70. },
    71. { //Node Index 5
    72. "background-color": "purple",
    73. "border-color": "purple"
    74. }
    75. ]
    76. }
    77. },
    78. "series": [{
    79. "values": [3, 4, 11, 5, 19, 7]
    80. }]
    81. };
    82.  
    83. zingchart.render({
    84. id: 'myChart',
    85. data: myConfig,
    86. height: 400,
    87. width: "100%"
    88. });
    89. </script>
    90. </body>
    91.  
    92. </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": "area",
    3. "plot": {
    4. "styles": [{ //Node Index 0
    5. "line-color": "pink",
    6. "line-style": "dashdot",
    7. "background-color": "pink"
    8. },
    9. { //Node Index 1
    10. "line-color": "red",
    11. "line-style": "dotted",
    12. "background-color": "red"
    13. },
    14. { //Node Index 2
    15. "line-color": "orange",
    16. "line-style": "dashed",
    17. "background-color": "orange"
    18. },
    19. { //Node Index 3
    20. "line-color": "green",
    21. "line-style": "dashdot",
    22. "background-color": "green"
    23. },
    24. { //Node Index 4
    25. "line-color": "blue",
    26. "line-style": "dotted",
    27. "background-color": "blue"
    28. },
    29. { //Node Index 5
    30. "line-color": "purple",
    31. "line-style": "dashed",
    32. "background-color": "purple"
    33. }
    34. ],
    35. "marker": {
    36. "styles": [{ //Node Index 0
    37. "background-color": "pink",
    38. "border-color": "pink"
    39. },
    40. { //Node Index 1
    41. "background-color": "red",
    42. "border-color": "red"
    43. },
    44. { //Node Index 2
    45. "background-color": "orange",
    46. "border-color": "orange"
    47. },
    48. { //Node Index 3
    49. "background-color": "green",
    50. "border-color": "green"
    51. },
    52. { //Node Index 4
    53. "background-color": "blue",
    54. "border-color": "blue"
    55. },
    56. { //Node Index 5
    57. "background-color": "purple",
    58. "border-color": "purple"
    59. }
    60. ]
    61. }
    62. },
    63. "series": [{
    64. "values": [3, 4, 11, 5, 19, 7]
    65. }]
    66. };
    67.  
    68. zingchart.render({
    69. id: 'myChart',
    70. data: myConfig,
    71. height: 400,
    72. width: "100%"
    73. });