• 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. }
    52. },
    53. {
    54. values: [
    55. [5.5, 35],
    56. [6, 42],
    57. [6.5, 67],
    58. [7, 89],
    59. [7.5, 25],
    60. [8, 34],
    61. [8.5, 67],
    62. [9, 85]
    63. ],
    64. lineColor: '#9C27B0',
    65. backgroundColor: '#64B5F6',
    66. marker: {
    67. backgroundColor: '#F3E5F5',
    68. borderColor: '#9C27B0',
    69. borderWidth: 1,
    70. size: 4,
    71. type: 'gear9',
    72. },
    73.  
    74. legendItem: {
    75. fontColor: '#2196F3',
    76. fontFamily: 'Georgia',
    77. fontSize: 12
    78. },
    79. legendMarker: {
    80. backgroundColor: '#F3E5F5',
    81. borderColor: '#9C27B0',
    82. borderWidth: 1,
    83. size: 5,
    84. type: 'gear9',
    85. }
    86. }
    87. ]
    88. };
    89.  
    90. zingchart.render({
    91. id: 'myChart',
    92. data: chartConfig,
    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. 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. }
    37. },
    38. {
    39. values: [
    40. [5.5, 35],
    41. [6, 42],
    42. [6.5, 67],
    43. [7, 89],
    44. [7.5, 25],
    45. [8, 34],
    46. [8.5, 67],
    47. [9, 85]
    48. ],
    49. lineColor: '#9C27B0',
    50. backgroundColor: '#64B5F6',
    51. marker: {
    52. backgroundColor: '#F3E5F5',
    53. borderColor: '#9C27B0',
    54. borderWidth: 1,
    55. size: 4,
    56. type: 'gear9',
    57. },
    58.  
    59. legendItem: {
    60. fontColor: '#2196F3',
    61. fontFamily: 'Georgia',
    62. fontSize: 12
    63. },
    64. legendMarker: {
    65. backgroundColor: '#F3E5F5',
    66. borderColor: '#9C27B0',
    67. borderWidth: 1,
    68. size: 5,
    69. type: 'gear9',
    70. }
    71. }
    72. ]
    73. };
    74.  
    75. zingchart.render({
    76. id: 'myChart',
    77. data: chartConfig,
    78. height: 400,
    79. width: '100%'
    80. });