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