Chartist-js: Pie chart: Custom padding -> Error: Cannot create property 'right' on number '5'

Created on 21 Nov 2016  路  5Comments  路  Source: gionkunz/chartist-js

After last updates (from 0.9.8 to 0.10.1) I get such bug:

  1. Draw Pie chart
  2. In options set detail chart padding
    for example
    chartPadding: {
    right: 32,
    left: 230,
    top: 19,
    bottom: 20
    },
  3. Error: Cannot create property 'right' on number '5'

I guess this error happens due to wront behavior of Chartist.extend({}, defaultOptions, options).
So default padding value '5' extending with my object.

In version 0.9.8 it worked fine. I could to set object with detail sides padding and everything was OK.

Most helpful comment

Yeah having same issue

All 5 comments

Is there any update on this issue? Still happening on v0.10.1.

Yeah having same issue

Still same issue

same here

@gionkunz could this please be fixed? I am ending up with a lot of white space above and below the chart because i cannot set the padding differently. Thanks a lot!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

imkevinabraham picture imkevinabraham  路  3Comments

Globegitter picture Globegitter  路  4Comments

ShlomoRosenheimer picture ShlomoRosenheimer  路  3Comments

unhinged picture unhinged  路  3Comments

FabienPapet picture FabienPapet  路  4Comments