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