• 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. mediaRules: [{
    37. maxWidth: 400,
    38. backgroundColor: 'red',
    39. }],
    40. },
    41. tooltip: {
    42. visible: false
    43. }
    44. },
    45. series: [{
    46. values: [20, 40, 25, 50, 15, 45, 33, 34, 49, 53, 19, 35, 24],
    47. text: 'Blueberries'
    48. }, {
    49. values: [11, 30, 21, 18, 59, 50, 28, 33, 23, 15, 18, 26, 34],
    50. text: 'Cherries'
    51. }, {
    52. values: [30, 21, 18, 21, 33, 41, 29, 15, 11, 12, 26, 23, 26],
    53. text: 'Kiwis'
    54. }, {
    55. values: [34, 16, 26, 15, 19, 21, 20, 24, 35, 41, 42, 38, 39],
    56. text: 'Kumquats'
    57. }]
    58. };
    59.  
    60. zingchart.render({
    61. id: 'myChart',
    62. data: chartConfig,
    63. height: '100%',
    64. width: '100%'
    65. });
    66. </script>
    67. </body>
    68.  
    69. </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. mediaRules: [{
    15. maxWidth: 400,
    16. backgroundColor: 'red',
    17. }],
    18. },
    19. tooltip: {
    20. visible: false
    21. }
    22. },
    23. series: [{
    24. values: [20, 40, 25, 50, 15, 45, 33, 34, 49, 53, 19, 35, 24],
    25. text: 'Blueberries'
    26. }, {
    27. values: [11, 30, 21, 18, 59, 50, 28, 33, 23, 15, 18, 26, 34],
    28. text: 'Cherries'
    29. }, {
    30. values: [30, 21, 18, 21, 33, 41, 29, 15, 11, 12, 26, 23, 26],
    31. text: 'Kiwis'
    32. }, {
    33. values: [34, 16, 26, 15, 19, 21, 20, 24, 35, 41, 42, 38, 39],
    34. text: 'Kumquats'
    35. }]
    36. };
    37.  
    38. zingchart.render({
    39. id: 'myChart',
    40. data: chartConfig,
    41. height: '100%',
    42. width: '100%'
    43. });