• 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. series: [{
    19. values: [20, 40, 25, 50, 15, 45, 33, 34],
    20. backgroundColor: '#FFC107',
    21. lineColor: '#FFC107',
    22. marker: {
    23. backgroundColor: '#FFF8E1',
    24. borderColor: '#FFC107',
    25. borderWidth: 2,
    26. type: 'square',
    27. size: 3
    28. },
    29. tooltip: {
    30. backgroundColor: '#FFF8E1',
    31. borderColor: '#FFC107',
    32. borderRadius: 3,
    33. fontColor: '#FFC107',
    34. fontFamily: 'Georgia'
    35. },
    36. },
    37. {
    38. values: [5, 30, 21, 18, 59, 50, 28, 33],
    39. backgroundColor: '#8BC34A',
    40. lineColor: '#8BC34A',
    41. marker: {
    42. backgroundColor: '#F1F8E9',
    43. borderColor: '#8BC34A',
    44. borderWidth: 2,
    45. type: 'diamond',
    46. size: 3
    47. },
    48. tooltip: {
    49. backgroundColor: '#F1F8E9',
    50. borderColor: '#8BC34A',
    51. borderRadius: 3,
    52. fontColor: '#8BC34A',
    53. fontFamily: 'Georgia'
    54. }
    55. },
    56. {
    57. values: [30, 5, 18, 21, 33, 41, 29, 15],
    58. backgroundColor: '#00BCD4',
    59. lineColor: '#00BCD4',
    60. marker: {
    61. backgroundColor: '#E0F7FA',
    62. borderColor: '#00BCD4',
    63. borderWidth: 2,
    64. type: 'rpoly5',
    65. size: 4
    66. },
    67. tooltip: {
    68. backgroundColor: '#E0F7FA',
    69. borderColor: '#00BCD4',
    70. borderRadius: 3,
    71. fontColor: '#00BCD4',
    72. fontFamily: 'Georgia'
    73. }
    74. }
    75. ],
    76. plot: {
    77. aspect: 'spline'
    78. }
    79. };
    80.  
    81. zingchart.render({
    82. id: 'myChart',
    83. data: chartConfig,
    84. height: 400,
    85. width: '100%'
    86. });
    87. </script>
    88. </body>
    89.  
    90. </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. series: [{
    4. values: [20, 40, 25, 50, 15, 45, 33, 34],
    5. backgroundColor: '#FFC107',
    6. lineColor: '#FFC107',
    7. marker: {
    8. backgroundColor: '#FFF8E1',
    9. borderColor: '#FFC107',
    10. borderWidth: 2,
    11. type: 'square',
    12. size: 3
    13. },
    14. tooltip: {
    15. backgroundColor: '#FFF8E1',
    16. borderColor: '#FFC107',
    17. borderRadius: 3,
    18. fontColor: '#FFC107',
    19. fontFamily: 'Georgia'
    20. },
    21. },
    22. {
    23. values: [5, 30, 21, 18, 59, 50, 28, 33],
    24. backgroundColor: '#8BC34A',
    25. lineColor: '#8BC34A',
    26. marker: {
    27. backgroundColor: '#F1F8E9',
    28. borderColor: '#8BC34A',
    29. borderWidth: 2,
    30. type: 'diamond',
    31. size: 3
    32. },
    33. tooltip: {
    34. backgroundColor: '#F1F8E9',
    35. borderColor: '#8BC34A',
    36. borderRadius: 3,
    37. fontColor: '#8BC34A',
    38. fontFamily: 'Georgia'
    39. }
    40. },
    41. {
    42. values: [30, 5, 18, 21, 33, 41, 29, 15],
    43. backgroundColor: '#00BCD4',
    44. lineColor: '#00BCD4',
    45. marker: {
    46. backgroundColor: '#E0F7FA',
    47. borderColor: '#00BCD4',
    48. borderWidth: 2,
    49. type: 'rpoly5',
    50. size: 4
    51. },
    52. tooltip: {
    53. backgroundColor: '#E0F7FA',
    54. borderColor: '#00BCD4',
    55. borderRadius: 3,
    56. fontColor: '#00BCD4',
    57. fontFamily: 'Georgia'
    58. }
    59. }
    60. ],
    61. plot: {
    62. aspect: 'spline'
    63. }
    64. };
    65.  
    66. zingchart.render({
    67. id: 'myChart',
    68. data: chartConfig,
    69. height: 400,
    70. width: '100%'
    71. });