• 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>
    10. #myChart {
    11. width: 100%;
    12. height: 100%;
    13. }
    14.  
    15. #customTooltip {
    16. position: absolute;
    17. background-color: black;
    18. color: white;
    19. width: 100px;
    20. height: 100px;
    21. }
    22. </style>
    23. </head>
    24.  
    25. <body>
    26. <div id='myChart'></div>
    27. <script>
    28. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    29. var myConfig = {
    30. type: "line",
    31. guide: {
    32. plotLabel: {
    33. text: '%t - %kl Value: %v',
    34. borderWidth: 2,
    35. bold: true
    36. }
    37. },
    38. plot: {
    39. tooltip: {
    40. visible: false
    41. }
    42. },
    43. scaleX: {
    44. labels: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug"]
    45. },
    46. series: [{
    47. values: [26, 35, 34, 10, 16, 38, 45, 35],
    48. text: 'Series 1'
    49. },
    50. {
    51. values: [50, 27, 42, 55, 35, 57, 60, 30],
    52. text: 'Series 2'
    53. }
    54. ]
    55. };
    56.  
    57. zingchart.render({
    58. id: 'myChart',
    59. data: myConfig,
    60. height: 400,
    61. width: "100%"
    62. });
    63. </script>
    64. </body>
    65.  
    66. </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. #myChart {
    2. width: 100%;
    3. height: 100%;
    4. }
    5.  
    6. #customTooltip {
    7. position: absolute;
    8. background-color: black;
    9. color: white;
    10. width: 100px;
    11. height: 100px;
    12. }
    1. var myConfig = {
    2. type: "line",
    3. guide: {
    4. plotLabel: {
    5. text: '%t - %kl Value: %v',
    6. borderWidth: 2,
    7. bold: true
    8. }
    9. },
    10. plot: {
    11. tooltip: {
    12. visible: false
    13. }
    14. },
    15. scaleX: {
    16. labels: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug"]
    17. },
    18. series: [{
    19. values: [26, 35, 34, 10, 16, 38, 45, 35],
    20. text: 'Series 1'
    21. },
    22. {
    23. values: [50, 27, 42, 55, 35, 57, 60, 30],
    24. text: 'Series 2'
    25. }
    26. ]
    27. };
    28.  
    29. zingchart.render({
    30. id: 'myChart',
    31. data: myConfig,
    32. height: 400,
    33. width: "100%"
    34. });