• 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. globals: {
    19. tooltip: {
    20. border: '3px solid red',
    21. padding: 15,
    22.  
    23. bottomState: {
    24. backgroundColor: 'red',
    25. offsetX: 10,
    26. offsetY: 10,
    27. }
    28. },
    29. },
    30. title: {
    31. text: 'Area Chart',
    32. fontSize: 20,
    33. },
    34. legend: {},
    35. crosshairX: {},
    36. scaleX: {},
    37. scaleY: {
    38. guide: {
    39. visible: false
    40. }
    41. },
    42. plot: {
    43. valueBox: {}
    44. },
    45. series: [{
    46. values: [35, 42, 67, 89, 25, 34, 67, 85],
    47. backgroundColor: '#212121'
    48. },
    49. {
    50. values: [25, 59, 30, 16, 51, 99, 31, 39],
    51. backgroundColor: '#616161'
    52. }
    53. ]
    54. };
    55.  
    56. zingchart.render({
    57. id: 'myChart',
    58. data: chartConfig,
    59. height: 400,
    60. width: '100%'
    61. });
    62. </script>
    63. </body>
    64.  
    65. </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. globals: {
    4. tooltip: {
    5. border: '3px solid red',
    6. padding: 15,
    7.  
    8. bottomState: {
    9. backgroundColor: 'red',
    10. offsetX: 10,
    11. offsetY: 10,
    12. }
    13. },
    14. },
    15. title: {
    16. text: 'Area Chart',
    17. fontSize: 20,
    18. },
    19. legend: {},
    20. crosshairX: {},
    21. scaleX: {},
    22. scaleY: {
    23. guide: {
    24. visible: false
    25. }
    26. },
    27. plot: {
    28. valueBox: {}
    29. },
    30. series: [{
    31. values: [35, 42, 67, 89, 25, 34, 67, 85],
    32. backgroundColor: '#212121'
    33. },
    34. {
    35. values: [25, 59, 30, 16, 51, 99, 31, 39],
    36. backgroundColor: '#616161'
    37. }
    38. ]
    39. };
    40.  
    41. zingchart.render({
    42. id: 'myChart',
    43. data: chartConfig,
    44. height: 400,
    45. width: '100%'
    46. });