Configurable charts fixes

make them work with datatables ajax requests
fix crashing null error if an x-value was empty
https://github.com/dimagi/commcare-hq/pull/4660