• 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></style>
    10. </head>
    11.  
    12. <body>
    13. <div id='myChart'></div>
    14. <script>
    15. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    16. let chartConfig = {
    17. type: 'line',
    18. crosshairX: {
    19. plotLabel: {
    20. multiple: true,
    21. fontFamily: 'Georgia',
    22. borderWidth: 2,
    23. borderRadius: '5px',
    24. padding: '5%'
    25. }
    26. },
    27. plot: {
    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. guideLabel: {
    36. text: '%t are like pearls.',
    37. fontColor: '#009933',
    38. borderColor: '#9966ff',
    39. lineStyle: 'dotted'
    40. }
    41. },
    42. {
    43. values: [11, 30, 21, 18, 59, 50, 28, 33, 23, 15, 18, 26, 34],
    44. text: 'Cherries',
    45. guideLabel: {
    46. text: '%t often come in twos and threes.',
    47. fontColor: '#000099',
    48. borderColor: '#ff00ff',
    49. lineStyle: 'dashed'
    50. }
    51. },
    52. {
    53. values: [30, 21, 18, 21, 33, 41, 29, 15, 11, 12, 26, 23, 26],
    54. text: 'Kiwis',
    55. guideLabel: {
    56. text: '%t have lots of seeds that look like freckles.',
    57. fontColor: '#6666ff',
    58. borderColor: '#00ffff',
    59. lineStyle: 'solid'
    60. }
    61. },
    62. {
    63. values: [34, 16, 26, 15, 19, 21, 20, 24, 35, 41, 42, 38, 39],
    64. text: 'Kumquats',
    65. guideLabel: {
    66. text: '%t are like tiny, oval oranges.',
    67. fontColor: '#ff3300',
    68. borderColor: '#99cc00',
    69. lineStyle: 'dashdot'
    70. }
    71. }
    72. ]
    73. };
    74.  
    75. zingchart.render({
    76. id: 'myChart',
    77. data: chartConfig,
    78. height: 400,
    79. width: '100%'
    80. });
    81. </script>
    82. </body>
    83.  
    84. </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.  
    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. tooltip: {
    14. visible: false
    15. }
    16. },
    17. series: [{
    18. values: [20, 40, 25, 50, 15, 45, 33, 34, 49, 53, 19, 35, 24],
    19. text: 'Blueberries',
    20. guideLabel: {
    21. text: '%t are like pearls.',
    22. fontColor: '#009933',
    23. borderColor: '#9966ff',
    24. lineStyle: 'dotted'
    25. }
    26. },
    27. {
    28. values: [11, 30, 21, 18, 59, 50, 28, 33, 23, 15, 18, 26, 34],
    29. text: 'Cherries',
    30. guideLabel: {
    31. text: '%t often come in twos and threes.',
    32. fontColor: '#000099',
    33. borderColor: '#ff00ff',
    34. lineStyle: 'dashed'
    35. }
    36. },
    37. {
    38. values: [30, 21, 18, 21, 33, 41, 29, 15, 11, 12, 26, 23, 26],
    39. text: 'Kiwis',
    40. guideLabel: {
    41. text: '%t have lots of seeds that look like freckles.',
    42. fontColor: '#6666ff',
    43. borderColor: '#00ffff',
    44. lineStyle: 'solid'
    45. }
    46. },
    47. {
    48. values: [34, 16, 26, 15, 19, 21, 20, 24, 35, 41, 42, 38, 39],
    49. text: 'Kumquats',
    50. guideLabel: {
    51. text: '%t are like tiny, oval oranges.',
    52. fontColor: '#ff3300',
    53. borderColor: '#99cc00',
    54. lineStyle: 'dashdot'
    55. }
    56. }
    57. ]
    58. };
    59.  
    60. zingchart.render({
    61. id: 'myChart',
    62. data: chartConfig,
    63. height: 400,
    64. width: '100%'
    65. });