fleshed out ChartQuery class