• 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: "column",
    18. plot: {
    19. barWidth: 15,
    20. valueBox: {
    21. placement: 'top',
    22. text: '%t: %v <br> %data-sub-text: %data-sub-rating',
    23. backgroundColor: '#000'
    24. }
    25. },
    26. series: [{
    27. values: [25, 42, 67, 89, 15, 34, 67, 85],
    28. text: 'Rating 1',
    29. 'data-sub-text': ['SubRating 1', 'SubRating 1', 'SubRating 1', 'SubRating 1', 'SubRating 1', 'SubRating 1', 'SubRating 1', 'SubRating 1'],
    30. 'data-sub-rating': [1, 2, 3, 4, 5, 6, 7, 8]
    31. }]
    32. };
    33.  
    34. zingchart.render({
    35. id: 'myChart',
    36. data: myConfig,
    37. height: 400,
    38. width: 600
    39. });
    40. </script>
    41. </body>
    42.  
    43. </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: "column",
    3. plot: {
    4. barWidth: 15,
    5. valueBox: {
    6. placement: 'top',
    7. text: '%t: %v <br> %data-sub-text: %data-sub-rating',
    8. backgroundColor: '#000'
    9. }
    10. },
    11. series: [{
    12. values: [25, 42, 67, 89, 15, 34, 67, 85],
    13. text: 'Rating 1',
    14. 'data-sub-text': ['SubRating 1', 'SubRating 1', 'SubRating 1', 'SubRating 1', 'SubRating 1', 'SubRating 1', 'SubRating 1', 'SubRating 1'],
    15. 'data-sub-rating': [1, 2, 3, 4, 5, 6, 7, 8]
    16. }]
    17. };
    18.  
    19. zingchart.render({
    20. id: 'myChart',
    21. data: myConfig,
    22. height: 400,
    23. width: 600
    24. });