• 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. bottomState: {
    38. backgroundColor: 'red',
    39. offsetX: 10,
    40. offsetY: 10,
    41. },
    42. }
    43. },
    44. plot: {
    45. tooltip: {
    46. visible: false
    47. }
    48. },
    49. scaleX: {
    50. labels: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug"]
    51. },
    52. series: [{
    53. values: [26, 35, 34, 10, 16, 38, 45, 35],
    54. text: 'Series 1'
    55. },
    56. {
    57. values: [50, 27, 42, 55, 35, 57, 60, 30],
    58. text: 'Series 2'
    59. }
    60. ]
    61. };
    62.  
    63. zingchart.render({
    64. id: 'myChart',
    65. data: myConfig,
    66. height: 400,
    67. width: "100%"
    68. });
    69. </script>
    70. </body>
    71.  
    72. </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. bottomState: {
    10. backgroundColor: 'red',
    11. offsetX: 10,
    12. offsetY: 10,
    13. },
    14. }
    15. },
    16. plot: {
    17. tooltip: {
    18. visible: false
    19. }
    20. },
    21. scaleX: {
    22. labels: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug"]
    23. },
    24. series: [{
    25. values: [26, 35, 34, 10, 16, 38, 45, 35],
    26. text: 'Series 1'
    27. },
    28. {
    29. values: [50, 27, 42, 55, 35, 57, 60, 30],
    30. text: 'Series 2'
    31. }
    32. ]
    33. };
    34.  
    35. zingchart.render({
    36. id: 'myChart',
    37. data: myConfig,
    38. height: 400,
    39. width: "100%"
    40. });