ported charting to new table structure