From: Jacco van den Berg <39033624+LeeLenaleee@users.noreply.github.com> Date: Wed, 2 Jun 2021 19:48:42 +0000 (+0200) Subject: Barheight no longer undefined (#9208) X-Git-Tag: v3.4.0~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a7212dff50e28be3a70668ac817bc347e163725;p=thirdparty%2FChart.js.git Barheight no longer undefined (#9208) --- diff --git a/src/controllers/controller.bar.js b/src/controllers/controller.bar.js index bec996ac1..d7daa6e84 100644 --- a/src/controllers/controller.bar.js +++ b/src/controllers/controller.bar.js @@ -285,8 +285,8 @@ export default class BarController extends DatasetController { enableBorderRadius: !stack || isFloatBar(parsed._custom) || (me.index === stack._top || me.index === stack._bottom), x: horizontal ? vpixels.head : ipixels.center, y: horizontal ? ipixels.center : vpixels.head, - height: horizontal ? ipixels.size : undefined, - width: horizontal ? undefined : ipixels.size + height: horizontal ? ipixels.size : Math.abs(vpixels.size), + width: horizontal ? Math.abs(vpixels.size) : ipixels.size }; if (includeOptions) {