• 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. "graphset": [{
    18. "type": "bar",
    19. "title": {
    20. "text": "labels array"
    21. },
    22. "subtitle": {
    23. "text": "Displays scale labels for first 5 indices, and then defaults to numeric indices."
    24. },
    25. "scale-x": {
    26. "labels": ["Alpha", "Beta", "Gamma", "Delta", "Epsilon"]
    27. },
    28. "series": [{
    29. "values": [20, 40, 25, 50, 15, 45, 33, 34]
    30. },
    31. {
    32. "values": [5, 30, 21, 18, 59, 50, 28, 33]
    33. }
    34. ]
    35. },
    36. {
    37. "type": "bar",
    38. "title": {
    39. "text": "values array"
    40. },
    41. "subtitle": {
    42. "text": "Displays scale labels for first 5 indices. Remaining 3 are not shown."
    43. },
    44. "scale-x": {
    45. "values": ["Alpha", "Beta", "Gamma", "Delta", "Epsilon"]
    46. },
    47. "series": [{
    48. "values": [20, 40, 25, 50, 15, 45, 33, 34]
    49. },
    50. {
    51. "values": [5, 30, 21, 18, 59, 50, 28, 33]
    52. }
    53. ]
    54. }
    55. ]
    56. };
    57.  
    58. zingchart.render({
    59. id: 'myChart',
    60. data: myConfig,
    61. height: 400,
    62. width: "100%"
    63. });
    64. </script>
    65. </body>
    66.  
    67. </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. "graphset": [{
    3. "type": "bar",
    4. "title": {
    5. "text": "labels array"
    6. },
    7. "subtitle": {
    8. "text": "Displays scale labels for first 5 indices, and then defaults to numeric indices."
    9. },
    10. "scale-x": {
    11. "labels": ["Alpha", "Beta", "Gamma", "Delta", "Epsilon"]
    12. },
    13. "series": [{
    14. "values": [20, 40, 25, 50, 15, 45, 33, 34]
    15. },
    16. {
    17. "values": [5, 30, 21, 18, 59, 50, 28, 33]
    18. }
    19. ]
    20. },
    21. {
    22. "type": "bar",
    23. "title": {
    24. "text": "values array"
    25. },
    26. "subtitle": {
    27. "text": "Displays scale labels for first 5 indices. Remaining 3 are not shown."
    28. },
    29. "scale-x": {
    30. "values": ["Alpha", "Beta", "Gamma", "Delta", "Epsilon"]
    31. },
    32. "series": [{
    33. "values": [20, 40, 25, 50, 15, 45, 33, 34]
    34. },
    35. {
    36. "values": [5, 30, 21, 18, 59, 50, 28, 33]
    37. }
    38. ]
    39. }
    40. ]
    41. };
    42.  
    43. zingchart.render({
    44. id: 'myChart',
    45. data: myConfig,
    46. height: 400,
    47. width: "100%"
    48. });