Regarding relation of filters and visuals

There is one line graph and one bar chart. Year filter is applied to line graph… So when I selected year in filter… I need selected year data in line graph and Previous all years data in the bar graph.