• 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. let chartConfig = {
    17. type: 'bar',
    18. plot: {
    19. valueBox: {
    20. text: 'Scale-X Label: %kl <br> Node Value: %v <br> Meta: %data-daily-name',
    21. textAlign: 'left',
    22. },
    23. tooltip: {
    24. text: 'Scale-X Value: %kv <br> Plot Text: %t <br> Node Value: %v',
    25. textAlign: 'left',
    26. padding: 10
    27. }
    28. },
    29. plotarea: {
    30. margin: 'dynamic'
    31. },
    32. scaleX: {
    33. labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'],
    34. },
    35. series: [{
    36. values: [30, 34, 14, 15, 31],
    37. text: 'Weekly Gains',
    38. dataDailyName: ['Nick', 'Chris', 'Jeanette', 'Christie', 'Dave']
    39. }]
    40. };
    41.  
    42. zingchart.render({
    43. id: 'myChart',
    44. data: chartConfig,
    45. height: 400,
    46. width: "100%"
    47. });
    48. </script>
    49. </body>
    50.  
    51. </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. let chartConfig = {
    2. type: 'bar',
    3. plot: {
    4. valueBox: {
    5. text: 'Scale-X Label: %kl <br> Node Value: %v <br> Meta: %data-daily-name',
    6. textAlign: 'left',
    7. },
    8. tooltip: {
    9. text: 'Scale-X Value: %kv <br> Plot Text: %t <br> Node Value: %v',
    10. textAlign: 'left',
    11. padding: 10
    12. }
    13. },
    14. plotarea: {
    15. margin: 'dynamic'
    16. },
    17. scaleX: {
    18. labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'],
    19. },
    20. series: [{
    21. values: [30, 34, 14, 15, 31],
    22. text: 'Weekly Gains',
    23. dataDailyName: ['Nick', 'Chris', 'Jeanette', 'Christie', 'Dave']
    24. }]
    25. };
    26.  
    27. zingchart.render({
    28. id: 'myChart',
    29. data: chartConfig,
    30. height: 400,
    31. width: "100%"
    32. });