made some settings for line chart more generic
started work on pie chart