• 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. "font-color": "#6600ff",
    21. "font-family": "Georgia",
    22. "font-size": 12,
    23. "background-color": "pink yellow",
    24. "border-width": 1,
    25. "border-color": "#6600ff",
    26. "line-style": "dashdot",
    27. "border-radius": "10px",
    28. "padding": "10%"
    29. }
    30. },
    31. "scale-x": {
    32. "labels": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
    33. },
    34. "plot": {
    35. "tooltip": {
    36. "visible": false
    37. }
    38. },
    39. "series": [{
    40. "values": [20, 40, 25, 50, 15, 45, 33, 34, 49, 53, 19, 35],
    41. "text": "Blueberries"
    42. },
    43. {
    44. "values": [11, 30, 21, 18, 59, 50, 28, 33, 23, 15, 18, 26],
    45. "text": "Cherries"
    46. },
    47. {
    48. "values": [30, 21, 18, 21, 33, 41, 29, 15, 11, 12, 26, 23],
    49. "text": "Kiwis"
    50. },
    51. {
    52. "values": [34, 16, 26, 15, 19, 21, 20, 24, 35, 41, 42, 38],
    53. "text": "Kumquats"
    54. }
    55. ]
    56. };
    57.  
    58. zingchart.render({
    59. id: 'myChart',
    60. data: myConfig,
    61. height: 400,
    62. width: "100%"
    63. });
    64. </script>
    65. </body>
    66.  
    67. </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. "font-color": "#6600ff",
    6. "font-family": "Georgia",
    7. "font-size": 12,
    8. "background-color": "pink yellow",
    9. "border-width": 1,
    10. "border-color": "#6600ff",
    11. "line-style": "dashdot",
    12. "border-radius": "10px",
    13. "padding": "10%"
    14. }
    15. },
    16. "scale-x": {
    17. "labels": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
    18. },
    19. "plot": {
    20. "tooltip": {
    21. "visible": false
    22. }
    23. },
    24. "series": [{
    25. "values": [20, 40, 25, 50, 15, 45, 33, 34, 49, 53, 19, 35],
    26. "text": "Blueberries"
    27. },
    28. {
    29. "values": [11, 30, 21, 18, 59, 50, 28, 33, 23, 15, 18, 26],
    30. "text": "Cherries"
    31. },
    32. {
    33. "values": [30, 21, 18, 21, 33, 41, 29, 15, 11, 12, 26, 23],
    34. "text": "Kiwis"
    35. },
    36. {
    37. "values": [34, 16, 26, 15, 19, 21, 20, 24, 35, 41, 42, 38],
    38. "text": "Kumquats"
    39. }
    40. ]
    41. };
    42.  
    43. zingchart.render({
    44. id: 'myChart',
    45. data: myConfig,
    46. height: 400,
    47. width: "100%"
    48. });