From 4495557d760c448dbfe43eaa3616d4eb3ae50c73 Mon Sep 17 00:00:00 2001 From: Becky Reamy Date: Wed, 29 May 2019 12:56:35 -0400 Subject: [PATCH] The gridlines in the summary view were not consistently showing up depending on the users screen size/resolution. This fixes the issue --- grails-app/services/ChartService.groovy | 3 +++ 1 file changed, 3 insertions(+) diff --git a/grails-app/services/ChartService.groovy b/grails-app/services/ChartService.groovy index 7c1bf733a..15e1cf883 100644 --- a/grails-app/services/ChartService.groovy +++ b/grails-app/services/ChartService.groovy @@ -388,8 +388,11 @@ class ChartService { if (plot instanceof CategoryPlot || plot instanceof XYPlot) { + float[] dashArray = [2.0F, 2.0F] as float[] plot?.domainGridlinePaint = Color.LIGHT_GRAY + plot?.domainGridlineStroke = new BasicStroke(1F, 0, 2, 0.0F, dashArray, 0.0F); plot?.rangeGridlinePaint = Color.LIGHT_GRAY + plot?.rangeGridlineStroke = new BasicStroke(1F, 0, 2, 0.0F, dashArray, 0.0F); plot?.renderer?.setSeriesPaint(0, subset1SeriesColor) plot?.renderer?.setSeriesPaint(1, subset2SeriesColor) plot?.renderer?.setSeriesOutlinePaint(0, subset1SeriesOutlineColor)