reorginizing line chart API