Only show dialog when intervals will actually be cleared
Confirm annotation is not null before adding to cache
Move line chart annotation options to separate dialog with more options