• 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: %plot-0-value",
    20. "default-value": "__",
    21. "text-align": "left",
    22. "x": "15%",
    23. "y": "10%",
    24. "font-family": "Georgia",
    25. "font-size": 12,
    26. "font-color": "#29A2CC"
    27. },
    28. {
    29. "text": "Red: %plot-1-value",
    30. "default-value": "__",
    31. "text-align": "left",
    32. "x": "30%",
    33. "y": "10%",
    34. "font-family": "Georgia",
    35. "font-size": 12,
    36. "font-color": "#D31E1E"
    37. },
    38. {
    39. "text": "Green: %plot-2-value",
    40. "default-value": "__",
    41. "text-align": "left",
    42. "x": "45%",
    43. "y": "10%",
    44. "font-family": "Georgia",
    45. "font-size": 12,
    46. "font-color": "#7CA82B"
    47. },
    48. {
    49. "text": "Orange: %plot-3-value",
    50. "default-value": "__",
    51. "text-align": "left",
    52. "x": "60%",
    53. "y": "10%",
    54. "font-family": "Georgia",
    55. "font-size": 12,
    56. "font-color": "#EF8535"
    57. },
    58. {
    59. "text": "Purple: %plot-4-value",
    60. "default-value": "__",
    61. "text-align": "left",
    62. "x": "75%",
    63. "y": "10%",
    64. "font-family": "Georgia",
    65. "font-size": 12,
    66. "font-color": "#A14BC9"
    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: 300,
    107. width: "100%"
    108. });
    109. </script>
    110. </body>
    111.  
    112. </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: %plot-0-value",
    5. "default-value": "__",
    6. "text-align": "left",
    7. "x": "15%",
    8. "y": "10%",
    9. "font-family": "Georgia",
    10. "font-size": 12,
    11. "font-color": "#29A2CC"
    12. },
    13. {
    14. "text": "Red: %plot-1-value",
    15. "default-value": "__",
    16. "text-align": "left",
    17. "x": "30%",
    18. "y": "10%",
    19. "font-family": "Georgia",
    20. "font-size": 12,
    21. "font-color": "#D31E1E"
    22. },
    23. {
    24. "text": "Green: %plot-2-value",
    25. "default-value": "__",
    26. "text-align": "left",
    27. "x": "45%",
    28. "y": "10%",
    29. "font-family": "Georgia",
    30. "font-size": 12,
    31. "font-color": "#7CA82B"
    32. },
    33. {
    34. "text": "Orange: %plot-3-value",
    35. "default-value": "__",
    36. "text-align": "left",
    37. "x": "60%",
    38. "y": "10%",
    39. "font-family": "Georgia",
    40. "font-size": 12,
    41. "font-color": "#EF8535"
    42. },
    43. {
    44. "text": "Purple: %plot-4-value",
    45. "default-value": "__",
    46. "text-align": "left",
    47. "x": "75%",
    48. "y": "10%",
    49. "font-family": "Georgia",
    50. "font-size": 12,
    51. "font-color": "#A14BC9"
    52. }
    53. ],
    54. "crosshair-x": {
    55. "plot-label": {
    56. "visible": false
    57. },
    58. "scale-label": {
    59. "visible": false
    60. }
    61. },
    62. "plot": {
    63. "tooltip": {
    64. "visible": false
    65. }
    66. },
    67. "plotarea": {
    68. "margin-top": "25%"
    69. },
    70. "series": [{
    71. "values": [3, 4, 11, 5, 19, 7]
    72. },
    73. {
    74. "values": [9, 19, 15, 25, 12, 14]
    75. },
    76. {
    77. "values": [15, 29, 19, 21, 25, 36]
    78. },
    79. {
    80. "values": [19, 15, 21, 29, 31, 20]
    81. },
    82. {
    83. "values": [33, 23, 39, 34, 5, 31]
    84. }
    85. ]
    86. };
    87.  
    88. zingchart.render({
    89. id: 'myChart',
    90. data: myConfig,
    91. height: 300,
    92. width: "100%"
    93. });