Set a callback for maximum data
external set onmax(void Function(/*Chart this*/ List<DataItem> d) fn);