creating infrastructure for charts