• 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>
    10. html,
    11. body {
    12. height: 100%;
    13. width: 100%;
    14. margin: 0;
    15. padding: 0;
    16. }
    17.  
    18. #myChart {
    19. height: 100%;
    20. width: 100%;
    21. min-height: 150px;
    22. }
    23. </style>
    24. </head>
    25.  
    26. <body>
    27. <div id="myChart"></div>
    28. <script>
    29. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    30. let chartConfig = {
    31. type: 'bar',
    32. noData: {
    33. text: 'Currently there is no data in the chart',
    34. alpha: 0.6,
    35. backgroundColor: '#20b2db',
    36. bold: true,
    37. fontSize: 18,
    38. textAlpha: 0.9,
    39.  
    40. mediaRules: [{
    41. maxWidth: 400,
    42. backgroundColor: 'red'
    43. }]
    44. },
    45. series: [{
    46. values: []
    47. }]
    48. };
    49.  
    50. zingchart.render({
    51. id: 'myChart',
    52. data: chartConfig,
    53. height: '100%',
    54. width: '100%'
    55. });
    56.  
    57. setTimeout(function() {
    58. zingchart.exec('myChart', 'setseriesvalues', {
    59. values: [
    60. [35, 65, 23, 76, 45, 23, 94, 92, 23]
    61. ]
    62. });
    63. }, 10000);
    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. html,
    2. body {
    3. height: 100%;
    4. width: 100%;
    5. margin: 0;
    6. padding: 0;
    7. }
    8.  
    9. #myChart {
    10. height: 100%;
    11. width: 100%;
    12. min-height: 150px;
    13. }
    1. let chartConfig = {
    2. type: 'bar',
    3. noData: {
    4. text: 'Currently there is no data in the chart',
    5. alpha: 0.6,
    6. backgroundColor: '#20b2db',
    7. bold: true,
    8. fontSize: 18,
    9. textAlpha: 0.9,
    10.  
    11. mediaRules: [{
    12. maxWidth: 400,
    13. backgroundColor: 'red'
    14. }]
    15. },
    16. series: [{
    17. values: []
    18. }]
    19. };
    20.  
    21. zingchart.render({
    22. id: 'myChart',
    23. data: chartConfig,
    24. height: '100%',
    25. width: '100%'
    26. });
    27.  
    28. setTimeout(function() {
    29. zingchart.exec('myChart', 'setseriesvalues', {
    30. values: [
    31. [35, 65, 23, 76, 45, 23, 94, 92, 23]
    32. ]
    33. });
    34. }, 10000);