create and replace chart fragments according to the chart object