static void constructErrorGraph ( Map . Entry < String , LrProjectScenarioResults > scenarioResults , JSONObject scenarioGraphData ) { Map < Integer , TimeRangeResult > errPerSecResults = scenarioResults . getValue ( ) . getErrPerSecResults ( ) ; JSONObject errPerSecResultsResultsGraphSet = extractTimeRangeResult ( errPerSecResults ) ; if ( ! errPerSecResultsResultsGraphSet . getJSONArray ( LABELS ) . isEmpty ( ) ) { errPerSecResultsResultsGraphSet . put ( TITLE , "Total errors per second" ) ; errPerSecResultsResultsGraphSet . put ( X_AXIS_TITLE , "Build number" ) ; errPerSecResultsResultsGraphSet . put ( Y_AXIS_TITLE , "Errors" ) ; errPerSecResultsResultsGraphSet . put ( DESCRIPTION , "" ) ; scenarioGraphData . put ( "errorPerSecResults" , errPerSecResultsResultsGraphSet ) ; } }
Construct error graph .