This question is locked. New answers and comments are not allowed.
I am trying to add annotation to a chart with horizontal DateTimeCategoricalAxis by using this code, but it keeps crashing
1.CartesianCustomAnnotation annotation = new CartesianCustomAnnotation(chartView.getVerticalAxis(), chartView.getHorizontalAxis(), penaltyValue, penaltyMonth, "P");2.chartView.getAnnotations().add(annotation);I have tried making PenaltyValue a string, a Calendar, and a Date. It always crashes and logcat reports this error
java.lang.IllegalArgumentException: the value: Mon Feb 01 12:48:15 EST 2016 proved to be incompatible with its corresponding axis
How do I fix it.