• 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: "bar",
    18. title: {
    19. text: "Revenue Comparison"
    20. },
    21. subtitle: {
    22. text: "Q1-Q4 2014"
    23. },
    24. "scale-x": {
    25. values: ["Q1", "Q2", "Q3", "Q4"]
    26. },
    27. "scale-y": {
    28. values: "0:100:10"
    29. },
    30. tooltip: {
    31. callout: true
    32. },
    33. series: [{
    34. "values": [35, 42, 67, 89],
    35. text: "Internet"
    36. },
    37. {
    38. "values": [28, 57, 43, 56],
    39. text: "Cable"
    40. }
    41. ]
    42. };
    43.  
    44. zingchart.render({
    45. id: 'myChart',
    46. data: myConfig,
    47. height: 400,
    48. width: 600
    49. });
    50. </script>
    51. </body>
    52.  
    53. </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: "bar",
    3. title: {
    4. text: "Revenue Comparison"
    5. },
    6. subtitle: {
    7. text: "Q1-Q4 2014"
    8. },
    9. "scale-x": {
    10. values: ["Q1", "Q2", "Q3", "Q4"]
    11. },
    12. "scale-y": {
    13. values: "0:100:10"
    14. },
    15. tooltip: {
    16. callout: true
    17. },
    18. series: [{
    19. "values": [35, 42, 67, 89],
    20. text: "Internet"
    21. },
    22. {
    23. "values": [28, 57, 43, 56],
    24. text: "Cable"
    25. }
    26. ]
    27. };
    28.  
    29. zingchart.render({
    30. id: 'myChart',
    31. data: myConfig,
    32. height: 400,
    33. width: 600
    34. });