Skip to content

Commit

Permalink
Merge pull request #366 from NOAA-OWP/timezone
Browse files Browse the repository at this point in the history
setting timezone for JFreeChart
  • Loading branch information
epag authored Nov 21, 2024
2 parents e85bfa5 + 7d2b893 commit b9908c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wres-vis/src/wres/vis/charts/ChartFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,8 @@ public JFreeChart getDurationDiagramChart( List<DurationDiagramStatisticOuter> s
format.setTimeZone( timeZone );
dateAxis.setDateFormatOverride( format );

dateAxis.setTimeZone(timeZone);

XYPlot plot = chart.getXYPlot();

chart.setAntiAlias( true );
Expand Down Expand Up @@ -998,6 +1000,8 @@ else if ( chartType == ChartType.POOLING_WINDOW )
SimpleDateFormat format = new SimpleDateFormat( "yyyy-MM-dd+HH" );
format.setTimeZone( timeZone );
dateAxis.setDateFormatOverride( format );

dateAxis.setTimeZone(timeZone);
}
else
{
Expand Down

0 comments on commit b9908c7

Please sign in to comment.