line-chart/bar-chart icon switch and move inline style from html to css