Configurable charts fixes

make them work with datatables ajax requests
fix crashing null error if an x-value was empty