diff --git a/hledger-web/Handler/RegisterR.hs b/hledger-web/Handler/RegisterR.hs index 4d875fc22..d214bca63 100644 --- a/hledger-web/Handler/RegisterR.hs +++ b/hledger-web/Handler/RegisterR.hs @@ -122,7 +122,7 @@ registerChartHtml percommoditytxnreports = ], /* [] */ ], - label: '#{c}', + label: '#{shownull c}', color: #{colorForCommodity c}, lines: { show: true, @@ -170,4 +170,4 @@ registerChartHtml percommoditytxnreports = colorForCommodity = fromMaybe 0 . flip lookup commoditiesIndex commoditiesIndex = zip (map fst percommoditytxnreports) [0..] :: [(Commodity,Int)] simpleMixedAmountQuantity = maybe 0 aquantity . headMay . amounts - + shownull c = if null c then " " else c