• 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": "line",
    18. "labels": [{
    19. "text": "Blue:<br>%plot-0-value",
    20. "default-value": "__",
    21. "x": "15%",
    22. "y": "7%",
    23. "background-color": "blue #29A2CC",
    24. "font-family": "Georgia",
    25. "font-color": "white",
    26. "font-size": 14,
    27. "height": "15%",
    28. "width": "10%",
    29. "border-radius": "5px"
    30. },
    31. {
    32. "text": "Red:<br>%plot-1-value",
    33. "default-value": "__",
    34. "x": "30%",
    35. "y": "7%",
    36. "background-color": "red #D31E1E",
    37. "font-family": "Georgia",
    38. "font-color": "white",
    39. "font-size": 14,
    40. "height": "15%",
    41. "width": "10%",
    42. "border-radius": "5px"
    43. },
    44. {
    45. "text": "Green:<br>%plot-2-value",
    46. "default-value": "__",
    47. "x": "45%",
    48. "y": "7%",
    49. "background-color": "green #7CA82B",
    50. "font-family": "Georgia",
    51. "font-color": "white",
    52. "font-size": 14,
    53. "height": "15%",
    54. "width": "10%",
    55. "border-radius": "5px"
    56. },
    57. {
    58. "text": "Orange:<br>%plot-3-value",
    59. "default-value": "__",
    60. "x": "60%",
    61. "y": "7%",
    62. "background-color": "orange #EF8535",
    63. "font-family": "Georgia",
    64. "font-color": "white",
    65. "font-size": 14,
    66. "height": "15%",
    67. "width": "10%",
    68. "border-radius": "5px"
    69. },
    70. {
    71. "text": "Purple:<br>%plot-4-value",
    72. "default-value": "__",
    73. "x": "75%",
    74. "y": "7%",
    75. "background-color": "purple #A14BC9",
    76. "font-family": "Georgia",
    77. "font-color": "white",
    78. "font-size": 14,
    79. "height": "15%",
    80. "width": "10%",
    81. "border-radius": "5px"
    82. }
    83. ],
    84. "crosshair-x": {
    85. "plot-label": {
    86. "visible": false
    87. },
    88. "scale-label": {
    89. "visible": false
    90. }
    91. },
    92. "plot": {
    93. "tooltip": {
    94. "visible": false
    95. }
    96. },
    97. "plotarea": {
    98. "margin-top": "25%"
    99. },
    100. "series": [{
    101. "values": [3, 4, 11, 5, 19, 7]
    102. },
    103. {
    104. "values": [9, 19, 15, 25, 12, 14]
    105. },
    106. {
    107. "values": [15, 29, 19, 21, 25, 36]
    108. },
    109. {
    110. "values": [19, 15, 21, 29, 31, 20]
    111. },
    112. {
    113. "values": [33, 23, 39, 34, 5, 31]
    114. }
    115. ]
    116. };
    117.  
    118. zingchart.render({
    119. id: 'myChart',
    120. data: myConfig,
    121. height: 400,
    122. width: "100%"
    123. });
    124. </script>
    125. </body>
    126.  
    127. </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": "line",
    3. "labels": [{
    4. "text": "Blue:<br>%plot-0-value",
    5. "default-value": "__",
    6. "x": "15%",
    7. "y": "7%",
    8. "background-color": "blue #29A2CC",
    9. "font-family": "Georgia",
    10. "font-color": "white",
    11. "font-size": 14,
    12. "height": "15%",
    13. "width": "10%",
    14. "border-radius": "5px"
    15. },
    16. {
    17. "text": "Red:<br>%plot-1-value",
    18. "default-value": "__",
    19. "x": "30%",
    20. "y": "7%",
    21. "background-color": "red #D31E1E",
    22. "font-family": "Georgia",
    23. "font-color": "white",
    24. "font-size": 14,
    25. "height": "15%",
    26. "width": "10%",
    27. "border-radius": "5px"
    28. },
    29. {
    30. "text": "Green:<br>%plot-2-value",
    31. "default-value": "__",
    32. "x": "45%",
    33. "y": "7%",
    34. "background-color": "green #7CA82B",
    35. "font-family": "Georgia",
    36. "font-color": "white",
    37. "font-size": 14,
    38. "height": "15%",
    39. "width": "10%",
    40. "border-radius": "5px"
    41. },
    42. {
    43. "text": "Orange:<br>%plot-3-value",
    44. "default-value": "__",
    45. "x": "60%",
    46. "y": "7%",
    47. "background-color": "orange #EF8535",
    48. "font-family": "Georgia",
    49. "font-color": "white",
    50. "font-size": 14,
    51. "height": "15%",
    52. "width": "10%",
    53. "border-radius": "5px"
    54. },
    55. {
    56. "text": "Purple:<br>%plot-4-value",
    57. "default-value": "__",
    58. "x": "75%",
    59. "y": "7%",
    60. "background-color": "purple #A14BC9",
    61. "font-family": "Georgia",
    62. "font-color": "white",
    63. "font-size": 14,
    64. "height": "15%",
    65. "width": "10%",
    66. "border-radius": "5px"
    67. }
    68. ],
    69. "crosshair-x": {
    70. "plot-label": {
    71. "visible": false
    72. },
    73. "scale-label": {
    74. "visible": false
    75. }
    76. },
    77. "plot": {
    78. "tooltip": {
    79. "visible": false
    80. }
    81. },
    82. "plotarea": {
    83. "margin-top": "25%"
    84. },
    85. "series": [{
    86. "values": [3, 4, 11, 5, 19, 7]
    87. },
    88. {
    89. "values": [9, 19, 15, 25, 12, 14]
    90. },
    91. {
    92. "values": [15, 29, 19, 21, 25, 36]
    93. },
    94. {
    95. "values": [19, 15, 21, 29, 31, 20]
    96. },
    97. {
    98. "values": [33, 23, 39, 34, 5, 31]
    99. }
    100. ]
    101. };
    102.  
    103. zingchart.render({
    104. id: 'myChart',
    105. data: myConfig,
    106. height: 400,
    107. width: "100%"
    108. });