• 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. html,
    11. body,
    12. #myChart {
    13. height: 100%;
    14. width: 100%;
    15. }
    16. </style>
    17. </head>
    18.  
    19. <body>
    20. <div id='myChart'></div>
    21. <script>
    22. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    23. let chartConfig = {
    24. type: 'line',
    25. crosshairX: {
    26. plotLabel: {
    27. multiple: true,
    28. fontFamily: 'Georgia',
    29. borderWidth: 2,
    30. borderRadius: '5px',
    31. padding: '5%'
    32. }
    33. },
    34. plot: {
    35. guideLabel: {
    36. bottomState: {
    37. backgroundColor: 'red',
    38. offsetX: '10px',
    39. offsetY: '10px',
    40. },
    41. },
    42. tooltip: {
    43. visible: false
    44. }
    45. },
    46. series: [{
    47. values: [20, 40, 25, 50, 15, 45, 33, 34, 49, 53, 19, 35, 24],
    48. text: 'Blueberries'
    49. }, {
    50. values: [11, 30, 21, 18, 59, 50, 28, 33, 23, 15, 18, 26, 34],
    51. text: 'Cherries'
    52. }, {
    53. values: [30, 21, 18, 21, 33, 41, 29, 15, 11, 12, 26, 23, 26],
    54. text: 'Kiwis'
    55. }, {
    56. values: [34, 16, 26, 15, 19, 21, 20, 24, 35, 41, 42, 38, 39],
    57. text: 'Kumquats'
    58. }]
    59. };
    60.  
    61. zingchart.render({
    62. id: 'myChart',
    63. data: chartConfig,
    64. height: '100%',
    65. width: '100%'
    66. });
    67. </script>
    68. </body>
    69.  
    70. </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. html,
    2. body,
    3. #myChart {
    4. height: 100%;
    5. width: 100%;
    6. }
    1. let chartConfig = {
    2. type: 'line',
    3. crosshairX: {
    4. plotLabel: {
    5. multiple: true,
    6. fontFamily: 'Georgia',
    7. borderWidth: 2,
    8. borderRadius: '5px',
    9. padding: '5%'
    10. }
    11. },
    12. plot: {
    13. guideLabel: {
    14. bottomState: {
    15. backgroundColor: 'red',
    16. offsetX: '10px',
    17. offsetY: '10px',
    18. },
    19. },
    20. tooltip: {
    21. visible: false
    22. }
    23. },
    24. series: [{
    25. values: [20, 40, 25, 50, 15, 45, 33, 34, 49, 53, 19, 35, 24],
    26. text: 'Blueberries'
    27. }, {
    28. values: [11, 30, 21, 18, 59, 50, 28, 33, 23, 15, 18, 26, 34],
    29. text: 'Cherries'
    30. }, {
    31. values: [30, 21, 18, 21, 33, 41, 29, 15, 11, 12, 26, 23, 26],
    32. text: 'Kiwis'
    33. }, {
    34. values: [34, 16, 26, 15, 19, 21, 20, 24, 35, 41, 42, 38, 39],
    35. text: 'Kumquats'
    36. }]
    37. };
    38.  
    39. zingchart.render({
    40. id: 'myChart',
    41. data: chartConfig,
    42. height: '100%',
    43. width: '100%'
    44. });