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