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