question: public void writeGraphic ( final CategoryHistogram modeData , final String filename , final String legMode ) { try { ChartUtilities . saveChartAsPNG ( new File ( filename ) , getGraphic ( modeData , legMode ) , 1024 , 768 ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } }
target:  Writes a graphic showing the number of departures, arrivals and vehicles en route of all legs/trips with the specified transportation mode to the specified file.