Skip to content

Commit

Permalink
setting timezone for JFreeChart
Browse files Browse the repository at this point in the history
  • Loading branch information
epag committed Nov 21, 2024
1 parent e85bfa5 commit 7d2b893
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 7d2b893

Please sign in to comment.