• 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. guide: {
    19. "marker": {
    20. "type": "star5",
    21. "size": 5, //Make sure to specify size.
    22. "background-color": "yellow",
    23. "border-width": 1,
    24. "border-color": "gray",
    25.  
    26. bottomState: {
    27. backgroundColor: 'red',
    28. offsetX: 10,
    29. offsetY: 10,
    30. }
    31. }
    32. },
    33. "plot": {
    34. "tooltip": {
    35. "visible": false
    36. }
    37. },
    38. "series": [{
    39. "values": [20, 40, 25, 50, 15, 45, 33, 34, 49, 53, 19, 35, 24],
    40. "text": "Blueberries"
    41. },
    42. {
    43. "values": [11, 30, 21, 18, 59, 50, 28, 33, 23, 15, 18, 26, 34],
    44. "text": "Cherries"
    45. },
    46. {
    47. "values": [30, 21, 18, 21, 33, 41, 29, 15, 11, 12, 26, 23, 26],
    48. "text": "Kiwis"
    49. },
    50. {
    51. "values": [34, 16, 26, 15, 19, 21, 20, 24, 35, 41, 42, 38, 39],
    52. "text": "Kumquats"
    53. }
    54. ]
    55. };
    56. zingchart.render({
    57. id: 'myChart',
    58. data: myConfig,
    59. height: 400,
    60. width: '100%'
    61. });
    62. </script>
    63. </body>
    64.  
    65. </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. guide: {
    4. "marker": {
    5. "type": "star5",
    6. "size": 5, //Make sure to specify size.
    7. "background-color": "yellow",
    8. "border-width": 1,
    9. "border-color": "gray",
    10.  
    11. bottomState: {
    12. backgroundColor: 'red',
    13. offsetX: 10,
    14. offsetY: 10,
    15. }
    16. }
    17. },
    18. "plot": {
    19. "tooltip": {
    20. "visible": false
    21. }
    22. },
    23. "series": [{
    24. "values": [20, 40, 25, 50, 15, 45, 33, 34, 49, 53, 19, 35, 24],
    25. "text": "Blueberries"
    26. },
    27. {
    28. "values": [11, 30, 21, 18, 59, 50, 28, 33, 23, 15, 18, 26, 34],
    29. "text": "Cherries"
    30. },
    31. {
    32. "values": [30, 21, 18, 21, 33, 41, 29, 15, 11, 12, 26, 23, 26],
    33. "text": "Kiwis"
    34. },
    35. {
    36. "values": [34, 16, 26, 15, 19, 21, 20, 24, 35, 41, 42, 38, 39],
    37. "text": "Kumquats"
    38. }
    39. ]
    40. };
    41. zingchart.render({
    42. id: 'myChart',
    43. data: myConfig,
    44. height: 400,
    45. width: '100%'
    46. });