• 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. "crosshair-x": {
    19. "scale-label": {
    20. "text": "%l 2016"
    21. }
    22. },
    23. "scale-x": {
    24. "labels": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
    25. "item": {
    26. "max-chars": 3
    27. }
    28. },
    29. "plot": {
    30. "tooltip": {
    31. "visible": false
    32. }
    33. },
    34. "series": [{
    35. "values": [20, 40, 25, 50, 15, 45, 33, 34, 49, 53, 19, 35],
    36. "text": "Blueberries"
    37. },
    38. {
    39. "values": [11, 30, 21, 18, 59, 50, 28, 33, 23, 15, 18, 26],
    40. "text": "Cherries"
    41. },
    42. {
    43. "values": [30, 21, 18, 21, 33, 41, 29, 15, 11, 12, 26, 23],
    44. "text": "Kiwis"
    45. },
    46. {
    47. "values": [34, 16, 26, 15, 19, 21, 20, 24, 35, 41, 42, 38],
    48. "text": "Kumquats"
    49. }
    50. ]
    51. };
    52.  
    53. zingchart.render({
    54. id: 'myChart',
    55. data: myConfig,
    56. height: 400,
    57. width: "100%"
    58. });
    59. </script>
    60. </body>
    61.  
    62. </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. "crosshair-x": {
    4. "scale-label": {
    5. "text": "%l 2016"
    6. }
    7. },
    8. "scale-x": {
    9. "labels": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
    10. "item": {
    11. "max-chars": 3
    12. }
    13. },
    14. "plot": {
    15. "tooltip": {
    16. "visible": false
    17. }
    18. },
    19. "series": [{
    20. "values": [20, 40, 25, 50, 15, 45, 33, 34, 49, 53, 19, 35],
    21. "text": "Blueberries"
    22. },
    23. {
    24. "values": [11, 30, 21, 18, 59, 50, 28, 33, 23, 15, 18, 26],
    25. "text": "Cherries"
    26. },
    27. {
    28. "values": [30, 21, 18, 21, 33, 41, 29, 15, 11, 12, 26, 23],
    29. "text": "Kiwis"
    30. },
    31. {
    32. "values": [34, 16, 26, 15, 19, 21, 20, 24, 35, 41, 42, 38],
    33. "text": "Kumquats"
    34. }
    35. ]
    36. };
    37.  
    38. zingchart.render({
    39. id: 'myChart',
    40. data: myConfig,
    41. height: 400,
    42. width: "100%"
    43. });