• 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. mediaRules: [{
    26. maxWidth: 400,
    27. backgroundColor: 'red',
    28. }],
    29. },
    30. },
    31. "plot": {
    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. },
    40. {
    41. "values": [11, 30, 21, 18, 59, 50, 28, 33, 23, 15, 18, 26, 34],
    42. "text": "Cherries"
    43. },
    44. {
    45. "values": [30, 21, 18, 21, 33, 41, 29, 15, 11, 12, 26, 23, 26],
    46. "text": "Kiwis"
    47. },
    48. {
    49. "values": [34, 16, 26, 15, 19, 21, 20, 24, 35, 41, 42, 38, 39],
    50. "text": "Kumquats"
    51. }
    52. ]
    53. };
    54. zingchart.render({
    55. id: 'myChart',
    56. data: myConfig,
    57. height: 400,
    58. width: '100%'
    59. });
    60. </script>
    61. </body>
    62.  
    63. </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. mediaRules: [{
    11. maxWidth: 400,
    12. backgroundColor: 'red',
    13. }],
    14. },
    15. },
    16. "plot": {
    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. },
    25. {
    26. "values": [11, 30, 21, 18, 59, 50, 28, 33, 23, 15, 18, 26, 34],
    27. "text": "Cherries"
    28. },
    29. {
    30. "values": [30, 21, 18, 21, 33, 41, 29, 15, 11, 12, 26, 23, 26],
    31. "text": "Kiwis"
    32. },
    33. {
    34. "values": [34, 16, 26, 15, 19, 21, 20, 24, 35, 41, 42, 38, 39],
    35. "text": "Kumquats"
    36. }
    37. ]
    38. };
    39. zingchart.render({
    40. id: 'myChart',
    41. data: myConfig,
    42. height: 400,
    43. width: '100%'
    44. });