Skip to content

Commit 820caca

Browse files
committed
use helper
1 parent 0cc7bea commit 820caca

File tree

1 file changed

+2
-2
lines changed
  • chart/Graphics/Rendering/Chart/Plot

1 file changed

+2
-2
lines changed

chart/Graphics/Rendering/Chart/Plot/Bars.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,13 +253,13 @@ renderBars p vals vref0 r mapk = case _bars_settings_style p of
253253
forM_ (zip3 [0,1..] vs styles) $ \(i, (v, _), (fstyle,_)) ->
254254
unless (barsIsNull v) $
255255
withFillStyle fstyle $
256-
alignFillPath (rectPath $ r (offset i) bsize k vref0 v)
256+
alignFillPath (barPath (offset i) k vref0 v)
257257
>>= fillPath
258258
forM_ (zip3 [0,1..] vs styles) $ \(i, (v, _), (_,mlstyle)) ->
259259
unless (barsIsNull v) $
260260
whenJust mlstyle $ \lstyle ->
261261
withLineStyle lstyle $
262-
alignStrokePath (rectPath $ r (offset i) bsize k vref0 v)
262+
alignStrokePath (barPath (offset i) k vref0 v)
263263
>>= strokePath
264264
withFontStyle (_bars_settings_label_style p) $
265265
forM_ (zip [0,1..] vs) $ \(i, (v, txt)) ->

0 commit comments

Comments
 (0)