• 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>
    10. html,
    11. body {
    12. height: 100%;
    13. width: 100%;
    14. margin: 0;
    15. padding: 0;
    16. }
    17.  
    18. #myChart {
    19. height: 100%;
    20. width: 100%;
    21. min-height: 150px;
    22. }
    23.  
    24. .zc-ref {
    25. display: none;
    26. }
    27. </style>
    28. </head>
    29.  
    30. <body>
    31. <div id="myChart"><a class="zc-ref" href="https://www.zingchart.com">Powered by ZingChart</a></div>
    32. <script>
    33. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    34. var myConfig = {
    35. "type": "area",
    36. "scale-y": {
    37. "values": "0:10:2"
    38. },
    39. "plot": {
    40. "hover-state": {
    41. "line-color": "white",
    42. "alpha": 1,
    43. "background-color": "pink",
    44. "alpha-area": 0.5
    45. },
    46. "hover-marker": {
    47. "type": "star5",
    48. "size": 10,
    49. "background-color": "#FFCCFF #66CCFF"
    50. }
    51. },
    52. "series": [{
    53. "values": [3, 4, 7, 9, 7, 4, 3],
    54. "styles": [{
    55. alpha: 0.2,
    56. alphaArea: 1,
    57. backgroundColor: 'red'
    58. }]
    59. }]
    60. };
    61.  
    62. zingchart.render({
    63. id: 'myChart',
    64. data: myConfig,
    65. height: "100%",
    66. width: "100%"
    67. });
    68. </script>
    69. </body>
    70.  
    71. </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"><a class="zc-ref" href="https://www.zingchart.com">Powered by ZingChart</a></div>
    13. </body>
    14.  
    15. </html>
    1. html,
    2. body {
    3. height: 100%;
    4. width: 100%;
    5. margin: 0;
    6. padding: 0;
    7. }
    8.  
    9. #myChart {
    10. height: 100%;
    11. width: 100%;
    12. min-height: 150px;
    13. }
    14.  
    15. .zc-ref {
    16. display: none;
    17. }
    1. var myConfig = {
    2. "type": "area",
    3. "scale-y": {
    4. "values": "0:10:2"
    5. },
    6. "plot": {
    7. "hover-state": {
    8. "line-color": "white",
    9. "alpha": 1,
    10. "background-color": "pink",
    11. "alpha-area": 0.5
    12. },
    13. "hover-marker": {
    14. "type": "star5",
    15. "size": 10,
    16. "background-color": "#FFCCFF #66CCFF"
    17. }
    18. },
    19. "series": [{
    20. "values": [3, 4, 7, 9, 7, 4, 3],
    21. "styles": [{
    22. alpha: 0.2,
    23. alphaArea: 1,
    24. backgroundColor: 'red'
    25. }]
    26. }]
    27. };
    28.  
    29. zingchart.render({
    30. id: 'myChart',
    31. data: myConfig,
    32. height: "100%",
    33. width: "100%"
    34. });