• 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. topState: {
    41. backgroundColor: 'red',
    42. offsetX: 10,
    43. offsetY: 10,
    44. }
    45. },
    46. series: [{
    47. values: []
    48. }]
    49. };
    50.  
    51. zingchart.render({
    52. id: 'myChart',
    53. data: chartConfig,
    54. height: '100%',
    55. width: '100%'
    56. });
    57.  
    58. setTimeout(function() {
    59. zingchart.exec('myChart', 'setseriesvalues', {
    60. values: [
    61. [35, 65, 23, 76, 45, 23, 94, 92, 23]
    62. ]
    63. });
    64. }, 10000);
    65. </script>
    66. </body>
    67.  
    68. </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. topState: {
    12. backgroundColor: 'red',
    13. offsetX: 10,
    14. offsetY: 10,
    15. }
    16. },
    17. series: [{
    18. values: []
    19. }]
    20. };
    21.  
    22. zingchart.render({
    23. id: 'myChart',
    24. data: chartConfig,
    25. height: '100%',
    26. width: '100%'
    27. });
    28.  
    29. setTimeout(function() {
    30. zingchart.exec('myChart', 'setseriesvalues', {
    31. values: [
    32. [35, 65, 23, 76, 45, 23, 94, 92, 23]
    33. ]
    34. });
    35. }, 10000);