refactored line renderer + bar renderer
refactored barchart and linechart