Use CSS3 animations to dynamically render multiple data entries.
Add-ons

Plugin Description: A horizontally oriented bar chart dynamically rendered using CSS3. Custom-written with beautiful styling and highly customizable. Feel free to experiment!
Last Updated: 2020-04-19 21:36:29
Simply open it in a browser to see the results.
Following the principle that plugins should be ready to use, I always make them as easy to use as possible!
You can adjust the position of the bar chart text using the following styles.
1 2 3 4 5 6 7 8 9 10 | .skill2 li em:first-child { position: absolute; top: -15px; left: 0; }.skill2 li em:last-child { position: absolute; top: -15px; right: 0;} |
Step 1: Build dynamic HTML (you can add or remove HTML elements as needed).
1 2 3 4 5 | _html += '<li>';_html += '<em>'+listdata[i]['data1']+'</em>';_html += '<div ><span ></span></div>';_html += '<em>'+listdata[i]['data2']+'%</em>';_html += '</li>'; |
评论