• 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>
    10. html,
    11. body,
    12. #myChart {
    13. height: 100%;
    14. width: 100%;
    15. }
    16. </style>
    17. </head>
    18.  
    19. <body>
    20. <div id='myChart'></div>
    21. <script>
    22. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    23. var myConfig = {
    24. "type": "bubble",
    25. "title": {
    26. "text": "Guides"
    27. },
    28. "scale-x": {
    29. "guide": {
    30. "line-color": "red",
    31. "line-width": 2,
    32. "line-style": "solid"
    33. }
    34. },
    35. "scale-y": {
    36. "guide": {
    37. "line-color": "red",
    38. "line-width": 2,
    39. "line-style": "solid"
    40. }
    41. },
    42. "series": [{
    43. "values": [
    44. [1, 9, 59],
    45. [3.3, 21, 30],
    46. [4.3, 30, 5],
    47. [5.9, 40, 35],
    48. [6.1, 59, 21],
    49. [7.8, 75, 85],
    50. [9.1, 81, 65],
    51. [10, 99, 12]
    52. ]
    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. html,
    2. body,
    3. #myChart {
    4. height: 100%;
    5. width: 100%;
    6. }
    1. var myConfig = {
    2. "type": "bubble",
    3. "title": {
    4. "text": "Guides"
    5. },
    6. "scale-x": {
    7. "guide": {
    8. "line-color": "red",
    9. "line-width": 2,
    10. "line-style": "solid"
    11. }
    12. },
    13. "scale-y": {
    14. "guide": {
    15. "line-color": "red",
    16. "line-width": 2,
    17. "line-style": "solid"
    18. }
    19. },
    20. "series": [{
    21. "values": [
    22. [1, 9, 59],
    23. [3.3, 21, 30],
    24. [4.3, 30, 5],
    25. [5.9, 40, 35],
    26. [6.1, 59, 21],
    27. [7.8, 75, 85],
    28. [9.1, 81, 65],
    29. [10, 99, 12]
    30. ]
    31. }]
    32. };
    33.  
    34. zingchart.render({
    35. id: 'myChart',
    36. data: myConfig,
    37. height: 400,
    38. width: "100%"
    39. });