• 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. "plot": {
    19. "aspect": "spline",
    20. "tooltip": {
    21. "text": "%t: %v Sales",
    22. "background-color": "pink",
    23. "border-width": 1,
    24. "border-color": "black",
    25. "line-style": "dashdot",
    26. "border-radius": "9px",
    27. "padding": "30%",
    28. "callout": true
    29. }
    30. },
    31. "scale-y": {
    32. "values": "23:43:10"
    33. },
    34. "series": [{
    35. "values": [30, 33, 41, 31, 35],
    36. "text": "Blue"
    37. },
    38. {
    39. "values": [34, 31, 27, 37, 31],
    40. "text": "Red"
    41. }
    42. ]
    43. };
    44.  
    45. zingchart.render({
    46. id: 'myChart',
    47. data: myConfig,
    48. height: 400,
    49. width: "100%"
    50. });
    51. </script>
    52. </body>
    53.  
    54. </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. "plot": {
    4. "aspect": "spline",
    5. "tooltip": {
    6. "text": "%t: %v Sales",
    7. "background-color": "pink",
    8. "border-width": 1,
    9. "border-color": "black",
    10. "line-style": "dashdot",
    11. "border-radius": "9px",
    12. "padding": "30%",
    13. "callout": true
    14. }
    15. },
    16. "scale-y": {
    17. "values": "23:43:10"
    18. },
    19. "series": [{
    20. "values": [30, 33, 41, 31, 35],
    21. "text": "Blue"
    22. },
    23. {
    24. "values": [34, 31, 27, 37, 31],
    25. "text": "Red"
    26. }
    27. ]
    28. };
    29.  
    30. zingchart.render({
    31. id: 'myChart',
    32. data: myConfig,
    33. height: 400,
    34. width: "100%"
    35. });