Billboard.js: legend.inset.anchor is not working

Created on 8 Feb 2021  路  2Comments  路  Source: naver/billboard.js

Description

  • version

    • billboard.js: 2.2.2 and 2.0.3(I tested this two versions)

When I assign top-right, bottom-right to legend.inset.anchor, the following error occurred.
TypeError: Cannot read property 'getXAxisTickTextY2Overflow' of undefined

Here is chart option and you can check for errors in developer tools. Is there an option I need to add to use the anchor option?

釀夅叧釀忈叧釀呩叺釂剦釁a喓 2021-02-08 釀嬦叐釀掅叜 6 27 49

bug

All 2 comments

It's because of missing false in getCurrentPaddingRight() in this line

It can be simply fixed by just adding false, but I would rather refactor getCurrentPaddingRight(withoutTickTextOverflow = false) to getCurrentPaddingRight(withXAxisTickTextOverflow = false) in size.ts so that xAxisTickTextOverflow will be 0 by default and will be only calculated if needed for autorotating x axis tick texts.

Where do you want to merge it @netil? Master with bb 2.2 or next with d3 v6?

@michkami, before the v3 release, every patch updates works need to be done on master.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AyshvaryaLaxmiK picture AyshvaryaLaxmiK  路  5Comments

imbyungjun picture imbyungjun  路  5Comments

doubletuna picture doubletuna  路  3Comments

eweap picture eweap  路  5Comments

elielr01 picture elielr01  路  3Comments