add support to change the number of records fetched by ChartView