• 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. backgroundColor: '#f90',
    24. borderColor: '#f60',
    25. borderRadius: -5,
    26. borderWidth: 2,
    27. callout: true,
    28. calloutHeight: 30,
    29. calloutPosition: 'bottom',
    30. calloutWidth: 0,
    31. padding: 10,
    32. shadow: true,
    33. calloutTip: {
    34. type: 'circle',
    35. backgroundColor: '#fff',
    36. borderWidth: 2,
    37. borderColor: '#f60',
    38. size: 5,
    39. }
    40. },
    41. },
    42. title: {
    43. text: 'Area Chart',
    44. fontSize: 20,
    45. },
    46. legend: {},
    47. crosshairX: {},
    48. scaleX: {},
    49. scaleY: {
    50. guide: {
    51. visible: false
    52. }
    53. },
    54. plot: {
    55. valueBox: {}
    56. },
    57. series: [{
    58. values: [35, 42, 67, 89, 25, 34, 67, 85],
    59. backgroundColor: '#212121'
    60. },
    61. {
    62. values: [25, 59, 30, 16, 51, 99, 31, 39],
    63. backgroundColor: '#616161'
    64. }
    65. ]
    66. };
    67.  
    68. zingchart.render({
    69. id: 'myChart',
    70. data: chartConfig,
    71. height: 400,
    72. width: '100%'
    73. });
    74. </script>
    75. </body>
    76.  
    77. </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. backgroundColor: '#f90',
    9. borderColor: '#f60',
    10. borderRadius: -5,
    11. borderWidth: 2,
    12. callout: true,
    13. calloutHeight: 30,
    14. calloutPosition: 'bottom',
    15. calloutWidth: 0,
    16. padding: 10,
    17. shadow: true,
    18. calloutTip: {
    19. type: 'circle',
    20. backgroundColor: '#fff',
    21. borderWidth: 2,
    22. borderColor: '#f60',
    23. size: 5,
    24. }
    25. },
    26. },
    27. title: {
    28. text: 'Area Chart',
    29. fontSize: 20,
    30. },
    31. legend: {},
    32. crosshairX: {},
    33. scaleX: {},
    34. scaleY: {
    35. guide: {
    36. visible: false
    37. }
    38. },
    39. plot: {
    40. valueBox: {}
    41. },
    42. series: [{
    43. values: [35, 42, 67, 89, 25, 34, 67, 85],
    44. backgroundColor: '#212121'
    45. },
    46. {
    47. values: [25, 59, 30, 16, 51, 99, 31, 39],
    48. backgroundColor: '#616161'
    49. }
    50. ]
    51. };
    52.  
    53. zingchart.render({
    54. id: 'myChart',
    55. data: chartConfig,
    56. height: 400,
    57. width: '100%'
    58. });