adding functionality to show c3 plots