changeDirection method
Changes the axis that the UI displays the graphs
Implementation
void changeDirection(){
axis = !axis;
notifyListeners();
}
Changes the axis that the UI displays the graphs
void changeDirection(){
axis = !axis;
notifyListeners();
}