• 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. guide: {
    19. plotLabel: {
    20. visible: false
    21. },
    22. scaleLabel: {
    23. backgroundColor: "red",
    24. color: "white",
    25. text: "%i<br>%scale-label"
    26. }
    27. },
    28. scaleX: {
    29. labels: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
    30. },
    31. plot: {
    32. tooltip: {
    33. visible: false
    34. }
    35. },
    36. series: [{
    37. "values": [178, 237, 153, 197, 159, 183, 209, 240, 172, 196, 175, 142]
    38. },
    39. {
    40. "values": [88, 93, 80, 84, 105, 128, 71, 86, 107, 72, 100, 92]
    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. guide: {
    4. plotLabel: {
    5. visible: false
    6. },
    7. scaleLabel: {
    8. backgroundColor: "red",
    9. color: "white",
    10. text: "%i<br>%scale-label"
    11. }
    12. },
    13. scaleX: {
    14. labels: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
    15. },
    16. plot: {
    17. tooltip: {
    18. visible: false
    19. }
    20. },
    21. series: [{
    22. "values": [178, 237, 153, 197, 159, 183, 209, 240, 172, 196, 175, 142]
    23. },
    24. {
    25. "values": [88, 93, 80, 84, 105, 128, 71, 86, 107, 72, 100, 92]
    26. }
    27. ]
    28. };
    29.  
    30. zingchart.render({
    31. id: 'myChart',
    32. data: myConfig,
    33. height: 400,
    34. width: "100%"
    35. });