• 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. "title": {
    19. "text": "%plot-count"
    20. },
    21. "crosshair-x": {
    22. "plot-label": {
    23. "multiple": true
    24. },
    25. "scale-label": {
    26. "visible": false
    27. }
    28. },
    29. "plot": {
    30. "tooltip": {
    31. "visible": false
    32. }
    33. },
    34. "scale-x": {
    35. "values": "1:5:1"
    36. },
    37. "series": [{
    38. "values": [64, 50, 34, 30, 90],
    39. "guide-label": {
    40. "text": "Number of Plots: %plot-count",
    41. "callout": false
    42. }
    43. },
    44. {
    45. "values": [70, 77, 84, 34, 30],
    46. "guide-label": {
    47. "visible": false
    48. }
    49. },
    50. {
    51. "values": [30, 34, 15, 16, 59],
    52. "guide-label": {
    53. "visible": false
    54. }
    55. }
    56. ]
    57. };
    58.  
    59. zingchart.render({
    60. id: 'myChart',
    61. data: myConfig,
    62. height: 300,
    63. width: "100%"
    64. });
    65. </script>
    66. </body>
    67.  
    68. </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. "title": {
    4. "text": "%plot-count"
    5. },
    6. "crosshair-x": {
    7. "plot-label": {
    8. "multiple": true
    9. },
    10. "scale-label": {
    11. "visible": false
    12. }
    13. },
    14. "plot": {
    15. "tooltip": {
    16. "visible": false
    17. }
    18. },
    19. "scale-x": {
    20. "values": "1:5:1"
    21. },
    22. "series": [{
    23. "values": [64, 50, 34, 30, 90],
    24. "guide-label": {
    25. "text": "Number of Plots: %plot-count",
    26. "callout": false
    27. }
    28. },
    29. {
    30. "values": [70, 77, 84, 34, 30],
    31. "guide-label": {
    32. "visible": false
    33. }
    34. },
    35. {
    36. "values": [30, 34, 15, 16, 59],
    37. "guide-label": {
    38. "visible": false
    39. }
    40. }
    41. ]
    42. };
    43.  
    44. zingchart.render({
    45. id: 'myChart',
    46. data: myConfig,
    47. height: 300,
    48. width: "100%"
    49. });