• 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": "Berry Picking Contest"
    20. },
    21. "plotarea": {
    22. "margin-top": "25%"
    23. },
    24. "labels": [{
    25. "text": "Blackberries: %plot-0-value",
    26. "default-value": "___", //optional
    27. "text-align": "left", //helps with jumping text
    28. "background-color": "#666699",
    29. "font-color": "white",
    30. "padding": "5%",
    31. "border-radius": "5px",
    32. "height": "30px",
    33. "width": "100px",
    34. "x": "20%",
    35. "y": "12%"
    36. },
    37. {
    38. "text": "Blueberries: %plot-1-value",
    39. "default-value": "___",
    40. "text-align": "left",
    41. "background-color": "#66ccff",
    42. "font-color": "white",
    43. "padding": "5%",
    44. "border-radius": "5px",
    45. "height": "30px",
    46. "width": "100px",
    47. "x": "40%",
    48. "y": "12%"
    49. },
    50. {
    51. "text": "Cloudberries: %plot-2-value",
    52. "default-value": "___",
    53. "text-align": "left",
    54. "background-color": "#ff9999",
    55. "font-color": "white",
    56. "padding": "5%",
    57. "border-radius": "5px",
    58. "height": "30px",
    59. "width": "100px",
    60. "x": "60%",
    61. "y": "12%"
    62. }
    63. ],
    64. "crosshair-x": {
    65. "plot-label": {
    66. "visible": false
    67. }
    68. },
    69. "plot": {
    70. "aspect": "spline",
    71. "marker": {
    72. "visible": false
    73. },
    74. "tooltip": {
    75. "visible": false
    76. }
    77. },
    78. "scale-x": {
    79. "labels": ["Alice", "Brett", "Chris", "Donna", "Emily", "Frank"]
    80. },
    81. "scale-y": {
    82. "values": "0:150:50"
    83. },
    84. "series": [{
    85. "values": [64, 50, 34, 30, 90, 99],
    86. "text": "Blackberries",
    87. "line-color": "#666699",
    88. "background-color": "#666699"
    89. },
    90. {
    91. "values": [70, 77, 134, 114, 130, 65],
    92. "text": "Blueberries",
    93. "line-color": "#66ccff",
    94. "background-color": "#66ccff",
    95. },
    96. {
    97. "values": [30, 34, 15, 16, 59, 64],
    98. "line-color": "#ff9999",
    99. "background-color": "#ff9999",
    100. }
    101. ]
    102. };
    103.  
    104. zingchart.render({
    105. id: 'myChart',
    106. data: myConfig,
    107. height: 400,
    108. width: 600
    109. });
    110. </script>
    111. </body>
    112.  
    113. </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": "Berry Picking Contest"
    5. },
    6. "plotarea": {
    7. "margin-top": "25%"
    8. },
    9. "labels": [{
    10. "text": "Blackberries: %plot-0-value",
    11. "default-value": "___", //optional
    12. "text-align": "left", //helps with jumping text
    13. "background-color": "#666699",
    14. "font-color": "white",
    15. "padding": "5%",
    16. "border-radius": "5px",
    17. "height": "30px",
    18. "width": "100px",
    19. "x": "20%",
    20. "y": "12%"
    21. },
    22. {
    23. "text": "Blueberries: %plot-1-value",
    24. "default-value": "___",
    25. "text-align": "left",
    26. "background-color": "#66ccff",
    27. "font-color": "white",
    28. "padding": "5%",
    29. "border-radius": "5px",
    30. "height": "30px",
    31. "width": "100px",
    32. "x": "40%",
    33. "y": "12%"
    34. },
    35. {
    36. "text": "Cloudberries: %plot-2-value",
    37. "default-value": "___",
    38. "text-align": "left",
    39. "background-color": "#ff9999",
    40. "font-color": "white",
    41. "padding": "5%",
    42. "border-radius": "5px",
    43. "height": "30px",
    44. "width": "100px",
    45. "x": "60%",
    46. "y": "12%"
    47. }
    48. ],
    49. "crosshair-x": {
    50. "plot-label": {
    51. "visible": false
    52. }
    53. },
    54. "plot": {
    55. "aspect": "spline",
    56. "marker": {
    57. "visible": false
    58. },
    59. "tooltip": {
    60. "visible": false
    61. }
    62. },
    63. "scale-x": {
    64. "labels": ["Alice", "Brett", "Chris", "Donna", "Emily", "Frank"]
    65. },
    66. "scale-y": {
    67. "values": "0:150:50"
    68. },
    69. "series": [{
    70. "values": [64, 50, 34, 30, 90, 99],
    71. "text": "Blackberries",
    72. "line-color": "#666699",
    73. "background-color": "#666699"
    74. },
    75. {
    76. "values": [70, 77, 134, 114, 130, 65],
    77. "text": "Blueberries",
    78. "line-color": "#66ccff",
    79. "background-color": "#66ccff",
    80. },
    81. {
    82. "values": [30, 34, 15, 16, 59, 64],
    83. "line-color": "#ff9999",
    84. "background-color": "#ff9999",
    85. }
    86. ]
    87. };
    88.  
    89. zingchart.render({
    90. id: 'myChart',
    91. data: myConfig,
    92. height: 400,
    93. width: 600
    94. });