• 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. topState: {
    28. backgroundColor: 'blue',
    29. offsetX: 10,
    30. offsetY: 10,
    31. },
    32. }
    33. },
    34. scaleX: {
    35. labels: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
    36. },
    37. plot: {
    38. tooltip: {
    39. visible: false
    40. }
    41. },
    42. series: [{
    43. "values": [178, 237, 153, 197, 159, 183, 209, 240, 172, 196, 175, 142]
    44. },
    45. {
    46. "values": [88, 93, 80, 84, 105, 128, 71, 86, 107, 72, 100, 92]
    47. }
    48. ]
    49. };
    50.  
    51. zingchart.render({
    52. id: 'myChart',
    53. data: myConfig,
    54. height: 400,
    55. width: "100%"
    56. });
    57. </script>
    58. </body>
    59.  
    60. </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. topState: {
    13. backgroundColor: 'blue',
    14. offsetX: 10,
    15. offsetY: 10,
    16. },
    17. }
    18. },
    19. scaleX: {
    20. labels: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
    21. },
    22. plot: {
    23. tooltip: {
    24. visible: false
    25. }
    26. },
    27. series: [{
    28. "values": [178, 237, 153, 197, 159, 183, 209, 240, 172, 196, 175, 142]
    29. },
    30. {
    31. "values": [88, 93, 80, 84, 105, 128, 71, 86, 107, 72, 100, 92]
    32. }
    33. ]
    34. };
    35.  
    36. zingchart.render({
    37. id: 'myChart',
    38. data: myConfig,
    39. height: 400,
    40. width: "100%"
    41. });