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