• 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. callout: true,
    37. calloutHeight: 15,
    38. calloutPosition: 'bottom',
    39. calloutWidth: 0,
    40. calloutTip: {
    41. type: 'circle',
    42. backgroundColor: '#fff',
    43. borderWidth: 2,
    44. borderColor: '#f60',
    45. offsetX: -50,
    46. offsetY: -60,
    47. size: 5,
    48. },
    49. },
    50. tooltip: {
    51. visible: false
    52. }
    53. },
    54. series: [{
    55. values: [20, 40, 25, 50, 15, 45, 33, 34, 49, 53, 19, 35, 24],
    56. text: 'Blueberries'
    57. }, {
    58. values: [11, 30, 21, 18, 59, 50, 28, 33, 23, 15, 18, 26, 34],
    59. text: 'Cherries'
    60. }, {
    61. values: [30, 21, 18, 21, 33, 41, 29, 15, 11, 12, 26, 23, 26],
    62. text: 'Kiwis'
    63. }, {
    64. values: [34, 16, 26, 15, 19, 21, 20, 24, 35, 41, 42, 38, 39],
    65. text: 'Kumquats'
    66. }]
    67. };
    68.  
    69. zingchart.render({
    70. id: 'myChart',
    71. data: chartConfig,
    72. height: '100%',
    73. width: '100%'
    74. });
    75. </script>
    76. </body>
    77.  
    78. </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. callout: true,
    15. calloutHeight: 15,
    16. calloutPosition: 'bottom',
    17. calloutWidth: 0,
    18. calloutTip: {
    19. type: 'circle',
    20. backgroundColor: '#fff',
    21. borderWidth: 2,
    22. borderColor: '#f60',
    23. offsetX: -50,
    24. offsetY: -60,
    25. size: 5,
    26. },
    27. },
    28. tooltip: {
    29. visible: false
    30. }
    31. },
    32. series: [{
    33. values: [20, 40, 25, 50, 15, 45, 33, 34, 49, 53, 19, 35, 24],
    34. text: 'Blueberries'
    35. }, {
    36. values: [11, 30, 21, 18, 59, 50, 28, 33, 23, 15, 18, 26, 34],
    37. text: 'Cherries'
    38. }, {
    39. values: [30, 21, 18, 21, 33, 41, 29, 15, 11, 12, 26, 23, 26],
    40. text: 'Kiwis'
    41. }, {
    42. values: [34, 16, 26, 15, 19, 21, 20, 24, 35, 41, 42, 38, 39],
    43. text: 'Kumquats'
    44. }]
    45. };
    46.  
    47. zingchart.render({
    48. id: 'myChart',
    49. data: chartConfig,
    50. height: '100%',
    51. width: '100%'
    52. });