create dinamic diagramm with css