public void addDataToDataSerieInTimeChart ( String chartID , String dataSerieID , double x , double y ) throws ShanksException { if ( this . containsDataSerieInTimeChart ( chartID , dataSerieID ) ) { this . timeChartData . get ( chartID ) . get ( dataSerieID ) . add ( x , y , true ) ; } else { try { this . addDataSerieToTimeChart ( chartID , dataSerieID ) ; this . timeChartData . get ( chartID ) . get ( dataSerieID ) . add ( x , y , true ) ; } catch ( DuplicatedDataSerieIDException e ) { e . printStackTrace ( ) ; } } }
Add a datum in the chart