• 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. title: {
    36. text: 'Vectorplot Data'
    37. },
    38. "globals": {
    39. "fontFamily": "Lucida Sans Unicode"
    40. },
    41. "type": "vectorplot",
    42. "plotarea": {
    43. "margin": "dynamic"
    44. },
    45. "options": {
    46. "arrow": {
    47. "min-length": 6,
    48. "max-length": 12,
    49. "style": {
    50. "size": 3,
    51. "background-color": "#333"
    52. }
    53. },
    54. "data": [
    55. [5, 5, 190, 18],
    56. [5, 10, 185, 27],
    57. [5, 15, 180, 36],
    58. [5, 20, 175, 45],
    59. [5, 25, 170, 54],
    60. [5, 30, 165, 63],
    61. [5, 35, 160, 72],
    62. [5, 40, 155, 81],
    63. [5, 45, 150, 90],
    64. [5, 50, 145, 99],
    65. [5, 55, 140, 108],
    66. [5, 60, 135, 117],
    67. [5, 65, 130, 126],
    68. [5, 70, 125, 135],
    69. [5, 75, 120, 144],
    70. [5, 80, 115, 153],
    71. [5, 85, 110, 162],
    72. [5, 90, 105, 171],
    73. [5, 95, 100, 180]
    74. ]
    75. }
    76. };
    77.  
    78. zingchart.render({
    79. id: 'myChart',
    80. data: myConfig,
    81. height: '500',
    82. width: '500'
    83. });
    84. </script>
    85. </body>
    86.  
    87. </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. title: {
    3. text: 'Vectorplot Data'
    4. },
    5. "globals": {
    6. "fontFamily": "Lucida Sans Unicode"
    7. },
    8. "type": "vectorplot",
    9. "plotarea": {
    10. "margin": "dynamic"
    11. },
    12. "options": {
    13. "arrow": {
    14. "min-length": 6,
    15. "max-length": 12,
    16. "style": {
    17. "size": 3,
    18. "background-color": "#333"
    19. }
    20. },
    21. "data": [
    22. [5, 5, 190, 18],
    23. [5, 10, 185, 27],
    24. [5, 15, 180, 36],
    25. [5, 20, 175, 45],
    26. [5, 25, 170, 54],
    27. [5, 30, 165, 63],
    28. [5, 35, 160, 72],
    29. [5, 40, 155, 81],
    30. [5, 45, 150, 90],
    31. [5, 50, 145, 99],
    32. [5, 55, 140, 108],
    33. [5, 60, 135, 117],
    34. [5, 65, 130, 126],
    35. [5, 70, 125, 135],
    36. [5, 75, 120, 144],
    37. [5, 80, 115, 153],
    38. [5, 85, 110, 162],
    39. [5, 90, 105, 171],
    40. [5, 95, 100, 180]
    41. ]
    42. }
    43. };
    44.  
    45. zingchart.render({
    46. id: 'myChart',
    47. data: myConfig,
    48. height: '500',
    49. width: '500'
    50. });