maching pie graph with bar graph