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