Skip to content

Commit 7d1db28

Browse files
CopilotRedjaw
authored andcommitted
Fix Highcharts column chart not rendering second series when first series is all zeros (#964)
* Initial plan * Fix column chart not displaying second series when first series has all-zero values Co-authored-by: Redjaw <4438516+Redjaw@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Redjaw <4438516+Redjaw@users.noreply.github.com>
1 parent a6ffee6 commit 7d1db28

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • knowagecockpitengine/src/main/resources/chart/templates/highcharts

knowagecockpitengine/src/main/resources/chart/templates/highcharts/column_chart.vm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1550,8 +1550,8 @@
15501550
#set($serieColumnsMapped = $dataColumnsMapper.get($relatedSerieColName.toLowerCase())) ## "Vendite_AVG" -> "column_5" ## "Ricavi_sum" -> "column_6"
15511551

15521552
#foreach($row in $rows)
1553-
#if( $row.get($serieColumnsMapped))
1554-
#set ($serieValue = $row.get($serieColumnsMapped))
1553+
#set ($serieValue = $row.get($serieColumnsMapped))
1554+
#if("$!serieValue" != "")
15551555
#set ($serieCategoryName = $row.get($categorieColumnsMapped))
15561556

15571557
#set( $serieCategoryName = $escapeTool.javascript($serieCategoryName))

0 commit comments

Comments
 (0)