Po parogodzinnej walce zrobiłem wykres słupkowy w którym wyświetlane są wartości i po najechaniu myszą obracają się i powiększają.
Część 'słupkowa' będzie w pętli, wartości będą pobierane z bazy.
Czy nie przekombinowałem i czy nie można było tego osiągnąć prościej?
<!DOCTYPE html> <html lang="pl"> <head> <meta charset="UTF-8"> <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,200,300,600&subset=latin,latin-ext' rel='stylesheet' type='text/css'> <style> *, *:before, *:after { padding: 0px; margin: 0px; color: #FFF; font-family: 'Source Sans Pro'; font-weight: 300; font-style: normal; transition-timing-function:ease-in; -webkit-transition-timing-function:ease-in; -o-transition-timing-function:ease-in; transform-origin:50% 50%; -webkit-transform-origin:50% 50%; -o-transform-origin:50% 50%; } .slupek { background: #34495e; width: 14px; margin: 1px; float: left; overflow:hidden; transition-duration: 0.5s; -webkit-transition-duration: 0.5s; -o-transition-duration: 0.5s; } .slupek:hover { width:30px; } .dane { background: transparent; font-size:10px; transform:translateX(-50%) rotate(-90deg); -webkit-transform:translateX(-50%) rotate(-90deg) ; -o-transform:translateX(-50%) rotate(-90deg) ; transition-duration: 0.1s; -webkit-transition-duration: 0.1s; -o-transition-duration: 0.1s; } .dane:hover { font-size:20px; transform:translateX(-50%) rotate(0deg) ; -webkit-transform:translateX(-50%) rotate(0deg) ; -o-transform:translateX(-50%) rotate(0deg) ; } .va { padding-top:50%; text-align: right; background:transparent; transition-duration: 0.1s; -webkit-transition-duration: 0.1s; -o-transition-duration: 0.1s; } .va:hover{ padding-top:0px; text-align: center; margin-left:14px; font-weight: 600; } </style> </head> <body> <div style="margin:20px; height:420px; width:400px; border:solid 1px #34495e;;"> <div class="slupek" style="height:200px; transform:translateY(200px);"> <div class="dane" style="height:200px; width:200px; "> </div> </div> <div class="slupek" style="height:300px; transform:translateY(100px);"> <div class="dane" style="height:300px; width:300px; "> </div> </div> <div class="slupek" style="height:400px; transform:translateY(0px);"> <div class="dane" style="height:400px; width:400px; "> </div> </div> </div> </body> </html>