• 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. #myChart {
    13. height: 100%;
    14. width: 100%;
    15. }
    16. </style>
    17. </head>
    18.  
    19. <body>
    20. <div id='myChart'></div>
    21. <script>
    22. ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
    23. let chartConfig = {
    24. type: 'pareto',
    25. options: {
    26. scaleY2: {
    27. guide: {
    28. lineColor: 'red',
    29. items: [{
    30. backgroundColor: 'red'
    31. },
    32. {
    33. backgroundColor: '#ff1a1a'
    34. },
    35. {
    36. backgroundColor: '#ff3333'
    37. },
    38. {
    39. backgroundColor: '#ff4d4d'
    40. },
    41. {
    42. backgroundColor: '#ff6666'
    43. },
    44. {
    45. backgroundColor: '#ff8080'
    46. },
    47. {
    48. backgroundColor: '#ff9999'
    49. },
    50. {
    51. backgroundColor: '#ffb3b3'
    52. },
    53. {
    54. backgroundColor: '#ffcccc'
    55. },
    56. {
    57. backgroundColor: '#ffe6e6'
    58. }
    59. ]
    60. },
    61. }
    62. },
    63. plotarea: {
    64. marginRight: '10%'
    65. },
    66. series: [{
    67. values: [
    68. 4642,
    69. 4345,
    70. 2350,
    71. 1251
    72. ]
    73. }]
    74. };
    75.  
    76. zingchart.render({
    77. id: 'myChart',
    78. data: chartConfig,
    79. height: '100%',
    80. width: '100%'
    81. });
    82. </script>
    83. </body>
    84.  
    85. </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. #myChart {
    4. height: 100%;
    5. width: 100%;
    6. }
    1. let chartConfig = {
    2. type: 'pareto',
    3. options: {
    4. scaleY2: {
    5. guide: {
    6. lineColor: 'red',
    7. items: [{
    8. backgroundColor: 'red'
    9. },
    10. {
    11. backgroundColor: '#ff1a1a'
    12. },
    13. {
    14. backgroundColor: '#ff3333'
    15. },
    16. {
    17. backgroundColor: '#ff4d4d'
    18. },
    19. {
    20. backgroundColor: '#ff6666'
    21. },
    22. {
    23. backgroundColor: '#ff8080'
    24. },
    25. {
    26. backgroundColor: '#ff9999'
    27. },
    28. {
    29. backgroundColor: '#ffb3b3'
    30. },
    31. {
    32. backgroundColor: '#ffcccc'
    33. },
    34. {
    35. backgroundColor: '#ffe6e6'
    36. }
    37. ]
    38. },
    39. }
    40. },
    41. plotarea: {
    42. marginRight: '10%'
    43. },
    44. series: [{
    45. values: [
    46. 4642,
    47. 4345,
    48. 2350,
    49. 1251
    50. ]
    51. }]
    52. };
    53.  
    54. zingchart.render({
    55. id: 'myChart',
    56. data: chartConfig,
    57. height: '100%',
    58. width: '100%'
    59. });