• 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: 'area',
    18. legend: {},
    19. series: [{
    20. values: [
    21. [1, 22],
    22. [1.5, 34],
    23. [2, 55],
    24. [2.5, 71],
    25. [3, 42],
    26. [3.5, 39],
    27. [4, 50],
    28. [4.5, 70]
    29. ],
    30. lineColor: '#E91E63',
    31. backgroundColor: '#7986CB',
    32. marker: {
    33. backgroundColor: '#FCE4EC',
    34. borderColor: '#E91E63',
    35. borderWidth: 1,
    36. size: 5,
    37. type: 'star9',
    38. },
    39.  
    40. legendItem: {
    41. fontColor: '#3F51B5',
    42. fontFamily: 'Georgia',
    43. fontSize: 12
    44. },
    45. legendMarker: {
    46. backgroundColor: '#FCE4EC',
    47. borderColor: '#E91E63',
    48. borderWidth: 1,
    49. size: 6,
    50. type: 'star9',
    51. bottomState: {
    52. backgroundColor: 'red',
    53. offsetX: 5,
    54. offsetY: 5
    55. }
    56. }
    57. },
    58. {
    59. values: [
    60. [5.5, 35],
    61. [6, 42],
    62. [6.5, 67],
    63. [7, 89],
    64. [7.5, 25],
    65. [8, 34],
    66. [8.5, 67],
    67. [9, 85]
    68. ],
    69. lineColor: '#9C27B0',
    70. backgroundColor: '#64B5F6',
    71. marker: {
    72. backgroundColor: '#F3E5F5',
    73. borderColor: '#9C27B0',
    74. borderWidth: 1,
    75. size: 4,
    76. type: 'gear9',
    77. },
    78.  
    79. legendItem: {
    80. fontColor: '#2196F3',
    81. fontFamily: 'Georgia',
    82. fontSize: 12
    83. },
    84. legendMarker: {
    85. backgroundColor: '#F3E5F5',
    86. borderColor: '#9C27B0',
    87. borderWidth: 1,
    88. size: 5,
    89. type: 'gear9',
    90. bottomState: {
    91. backgroundColor: 'purple',
    92. offsetX: 5,
    93. offsetY: 5
    94. }
    95. }
    96. }
    97. ]
    98. };
    99.  
    100. zingchart.render({
    101. id: 'myChart',
    102. data: chartConfig,
    103. height: 400,
    104. width: '100%'
    105. });
    106. </script>
    107. </body>
    108.  
    109. </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: 'area',
    3. legend: {},
    4. series: [{
    5. values: [
    6. [1, 22],
    7. [1.5, 34],
    8. [2, 55],
    9. [2.5, 71],
    10. [3, 42],
    11. [3.5, 39],
    12. [4, 50],
    13. [4.5, 70]
    14. ],
    15. lineColor: '#E91E63',
    16. backgroundColor: '#7986CB',
    17. marker: {
    18. backgroundColor: '#FCE4EC',
    19. borderColor: '#E91E63',
    20. borderWidth: 1,
    21. size: 5,
    22. type: 'star9',
    23. },
    24.  
    25. legendItem: {
    26. fontColor: '#3F51B5',
    27. fontFamily: 'Georgia',
    28. fontSize: 12
    29. },
    30. legendMarker: {
    31. backgroundColor: '#FCE4EC',
    32. borderColor: '#E91E63',
    33. borderWidth: 1,
    34. size: 6,
    35. type: 'star9',
    36. bottomState: {
    37. backgroundColor: 'red',
    38. offsetX: 5,
    39. offsetY: 5
    40. }
    41. }
    42. },
    43. {
    44. values: [
    45. [5.5, 35],
    46. [6, 42],
    47. [6.5, 67],
    48. [7, 89],
    49. [7.5, 25],
    50. [8, 34],
    51. [8.5, 67],
    52. [9, 85]
    53. ],
    54. lineColor: '#9C27B0',
    55. backgroundColor: '#64B5F6',
    56. marker: {
    57. backgroundColor: '#F3E5F5',
    58. borderColor: '#9C27B0',
    59. borderWidth: 1,
    60. size: 4,
    61. type: 'gear9',
    62. },
    63.  
    64. legendItem: {
    65. fontColor: '#2196F3',
    66. fontFamily: 'Georgia',
    67. fontSize: 12
    68. },
    69. legendMarker: {
    70. backgroundColor: '#F3E5F5',
    71. borderColor: '#9C27B0',
    72. borderWidth: 1,
    73. size: 5,
    74. type: 'gear9',
    75. bottomState: {
    76. backgroundColor: 'purple',
    77. offsetX: 5,
    78. offsetY: 5
    79. }
    80. }
    81. }
    82. ]
    83. };
    84.  
    85. zingchart.render({
    86. id: 'myChart',
    87. data: chartConfig,
    88. height: 400,
    89. width: '100%'
    90. });