avoid plot init twice 
avoid plot init twice 

When setting both dataset and options, the onOptionsChanged will act after the onDatasetChanged, and the plot will init twice, and this will cause the callback method will be called twice.
develersrl/angular-flot,develersrl/angular-flot,Oblongmana/angular-flot,adrien-f/angular-flot,adrien-f/angular-flot,Oblongmana/angular-flot,Botffy/angular-flot,Botffy/angular-flot