• 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": "scatter",
    18. "title": {
    19. "text": "%node-count"
    20. },
    21. "crosshair-x": {
    22. "plot-label": {
    23. "text": "Number of Nodes: %node-count",
    24. "multiple": true,
    25. },
    26. "scale-label": {
    27. "visible": false
    28. }
    29. },
    30. "crosshair-y": {
    31. "type": "multiple", //"single" (default) or "multiple"
    32. "scale-label": {
    33. "visible": false
    34. }
    35. },
    36. "plot": {
    37. "tooltip": {
    38. "visible": false
    39. },
    40. },
    41. "series": [{
    42. "values": [
    43. [0.1, 0.9],
    44. [0.3, 1.1],
    45. [0.5, 0.5],
    46. [0.7, 0.3],
    47. [0.8, 1.5],
    48. [0.9, 1.5],
    49. [1.1, 2.4],
    50. [1, 0.9],
    51. [1.3, 0.5],
    52. [1.8, 2.1],
    53. [1.9, 2.9],
    54. [2, 1.5],
    55. [2.1, 1.3],
    56. [2.3, 2.9],
    57. [2.5, 1.0],
    58. [2.9, 3.0],
    59. [3, 2.1],
    60. [3.1, 3.0],
    61. [3.2, 4.1],
    62. [3.3, 3.5],
    63. [3.5, 2.5],
    64. [4, 3.0],
    65. [4.1, 3.3],
    66. [4.5, 3.9],
    67. [4.9, 3.5]
    68. ]
    69. }]
    70. };
    71.  
    72. zingchart.render({
    73. id: 'myChart',
    74. data: myConfig,
    75. height: 300,
    76. width: "100%"
    77. });
    78. </script>
    79. </body>
    80.  
    81. </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": "scatter",
    3. "title": {
    4. "text": "%node-count"
    5. },
    6. "crosshair-x": {
    7. "plot-label": {
    8. "text": "Number of Nodes: %node-count",
    9. "multiple": true,
    10. },
    11. "scale-label": {
    12. "visible": false
    13. }
    14. },
    15. "crosshair-y": {
    16. "type": "multiple", //"single" (default) or "multiple"
    17. "scale-label": {
    18. "visible": false
    19. }
    20. },
    21. "plot": {
    22. "tooltip": {
    23. "visible": false
    24. },
    25. },
    26. "series": [{
    27. "values": [
    28. [0.1, 0.9],
    29. [0.3, 1.1],
    30. [0.5, 0.5],
    31. [0.7, 0.3],
    32. [0.8, 1.5],
    33. [0.9, 1.5],
    34. [1.1, 2.4],
    35. [1, 0.9],
    36. [1.3, 0.5],
    37. [1.8, 2.1],
    38. [1.9, 2.9],
    39. [2, 1.5],
    40. [2.1, 1.3],
    41. [2.3, 2.9],
    42. [2.5, 1.0],
    43. [2.9, 3.0],
    44. [3, 2.1],
    45. [3.1, 3.0],
    46. [3.2, 4.1],
    47. [3.3, 3.5],
    48. [3.5, 2.5],
    49. [4, 3.0],
    50. [4.1, 3.3],
    51. [4.5, 3.9],
    52. [4.9, 3.5]
    53. ]
    54. }]
    55. };
    56.  
    57. zingchart.render({
    58. id: 'myChart',
    59. data: myConfig,
    60. height: 300,
    61. width: "100%"
    62. });