Modularize bar
Fix tick format for timeseries