• 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. var myConfig = {
    17. "type": "area",
    18. "title": {
    19. "text": "Legend Footer"
    20. },
    21. "legend": {
    22. "footer": {
    23. "text": "Footer",
    24. "background-color": "#ffe6e6",
    25. "border-left": "2px solid red",
    26. "border-right": "2px solid red",
    27. "border-top": "2px solid red",
    28. "border-bottom": "2px solid red"
    29. },
    30. "layout": "5x1",
    31. "x": "82%",
    32. "y": "25%",
    33. },
    34. "plot": {
    35. "aspect": "spline",
    36. "stacked": true,
    37. "marker": {
    38. "visible": false
    39. }
    40. },
    41. "plotarea": {
    42. "margin-right": "25%",
    43. },
    44. "scale-y": {
    45. "values": "0:1000:200",
    46. "guide": {
    47. "line-style": "dotted"
    48. }
    49. },
    50. "series": [{
    51. "values": [138.6, 196.3, 153.6, 127.4, 114.1, 181.4, 131.5, 170.9],
    52. "text": "Test 1"
    53. },
    54. {
    55. "values": [84.8, 65.8, 122.4, 96.6, 279.1, 56.4, 275.9, 237.8],
    56. "text": "Test 2"
    57. },
    58. {
    59. "values": [108.7, 132.9, 61.6, 192.1, 134.5, 349.4, 183.9, 224.4],
    60. "text": "Test 3"
    61. },
    62. {
    63. "values": [213.2, 65.6, 139.5, 194.6, 184.4, 79.2, 73.1, 33.7],
    64. "text": "Test 4"
    65. },
    66. {
    67. "values": [236.6, 260.8, 155.2, 58.7, 119.1, 192.4, 164.8, 51.4],
    68. "text": "Test 5"
    69. }
    70. ]
    71. };
    72.  
    73. zingchart.render({
    74. id: 'myChart',
    75. data: myConfig,
    76. height: 400,
    77. width: "100%"
    78. });
    79. </script>
    80. </body>
    81.  
    82. </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. var myConfig = {
    2. "type": "area",
    3. "title": {
    4. "text": "Legend Footer"
    5. },
    6. "legend": {
    7. "footer": {
    8. "text": "Footer",
    9. "background-color": "#ffe6e6",
    10. "border-left": "2px solid red",
    11. "border-right": "2px solid red",
    12. "border-top": "2px solid red",
    13. "border-bottom": "2px solid red"
    14. },
    15. "layout": "5x1",
    16. "x": "82%",
    17. "y": "25%",
    18. },
    19. "plot": {
    20. "aspect": "spline",
    21. "stacked": true,
    22. "marker": {
    23. "visible": false
    24. }
    25. },
    26. "plotarea": {
    27. "margin-right": "25%",
    28. },
    29. "scale-y": {
    30. "values": "0:1000:200",
    31. "guide": {
    32. "line-style": "dotted"
    33. }
    34. },
    35. "series": [{
    36. "values": [138.6, 196.3, 153.6, 127.4, 114.1, 181.4, 131.5, 170.9],
    37. "text": "Test 1"
    38. },
    39. {
    40. "values": [84.8, 65.8, 122.4, 96.6, 279.1, 56.4, 275.9, 237.8],
    41. "text": "Test 2"
    42. },
    43. {
    44. "values": [108.7, 132.9, 61.6, 192.1, 134.5, 349.4, 183.9, 224.4],
    45. "text": "Test 3"
    46. },
    47. {
    48. "values": [213.2, 65.6, 139.5, 194.6, 184.4, 79.2, 73.1, 33.7],
    49. "text": "Test 4"
    50. },
    51. {
    52. "values": [236.6, 260.8, 155.2, 58.7, 119.1, 192.4, 164.8, 51.4],
    53. "text": "Test 5"
    54. }
    55. ]
    56. };
    57.  
    58. zingchart.render({
    59. id: 'myChart',
    60. data: myConfig,
    61. height: 400,
    62. width: "100%"
    63. });