• 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. var myConfig = {
    17. "type": "line",
    18. "crosshair-x": {
    19. "plot-label": {
    20. "multiple": true,
    21. "font-family": "Georgia",
    22. "border-width": 2,
    23. "border-radius": "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. "guide-label": {
    36. "text": "%t are like pearls.",
    37. "font-color": "#009933",
    38. "border-color": "#9966ff",
    39. "line-style": "dotted"
    40. }
    41. },
    42. {
    43. "values": [11, 30, 21, 18, 59, 50, 28, 33, 23, 15, 18, 26, 34],
    44. "text": "Cherries",
    45. "guide-label": {
    46. "text": "%t often come in twos and threes.",
    47. "font-color": "#000099",
    48. "border-color": "#ff00ff",
    49. "line-style": "dashed"
    50. }
    51. },
    52. {
    53. "values": [30, 21, 18, 21, 33, 41, 29, 15, 11, 12, 26, 23, 26],
    54. "text": "Kiwis",
    55. "guide-label": {
    56. "text": "%t have lots of seeds that look like freckles.",
    57. "font-color": "#6666ff",
    58. "border-color": "#00ffff",
    59. "line-style": "solid"
    60. }
    61. },
    62. {
    63. "values": [34, 16, 26, 15, 19, 21, 20, 24, 35, 41, 42, 38, 39],
    64. "text": "Kumquats",
    65. "guide-label": {
    66. "text": "%t are like tiny, oval oranges.",
    67. "font-color": "#ff3300",
    68. "border-color": "#99cc00",
    69. "line-style": "dashdot"
    70. }
    71. }
    72. ]
    73. };
    74.  
    75. zingchart.render({
    76. id: 'myChart',
    77. data: myConfig,
    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. var myConfig = {
    2. "type": "line",
    3. "crosshair-x": {
    4. "plot-label": {
    5. "multiple": true,
    6. "font-family": "Georgia",
    7. "border-width": 2,
    8. "border-radius": "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. "guide-label": {
    21. "text": "%t are like pearls.",
    22. "font-color": "#009933",
    23. "border-color": "#9966ff",
    24. "line-style": "dotted"
    25. }
    26. },
    27. {
    28. "values": [11, 30, 21, 18, 59, 50, 28, 33, 23, 15, 18, 26, 34],
    29. "text": "Cherries",
    30. "guide-label": {
    31. "text": "%t often come in twos and threes.",
    32. "font-color": "#000099",
    33. "border-color": "#ff00ff",
    34. "line-style": "dashed"
    35. }
    36. },
    37. {
    38. "values": [30, 21, 18, 21, 33, 41, 29, 15, 11, 12, 26, 23, 26],
    39. "text": "Kiwis",
    40. "guide-label": {
    41. "text": "%t have lots of seeds that look like freckles.",
    42. "font-color": "#6666ff",
    43. "border-color": "#00ffff",
    44. "line-style": "solid"
    45. }
    46. },
    47. {
    48. "values": [34, 16, 26, 15, 19, 21, 20, 24, 35, 41, 42, 38, 39],
    49. "text": "Kumquats",
    50. "guide-label": {
    51. "text": "%t are like tiny, oval oranges.",
    52. "font-color": "#ff3300",
    53. "border-color": "#99cc00",
    54. "line-style": "dashdot"
    55. }
    56. }
    57. ]
    58. };
    59.  
    60. zingchart.render({
    61. id: 'myChart',
    62. data: myConfig,
    63. height: 400,
    64. width: "100%"
    65. });