You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed clip-paths generated by billboard.js use the current domain of the page.
This is not a problem when viewing the chart or using the native billboard.js export, but can cause problems with areas / regions if other ways to export the chart to an image are used (we use this):
Of course we can handle this case ourselves (which I plan to do), but at this point I wonder if using the full domain serves any purpose (maybe disambiguation, which is pointless if it gets removed), and if not whether it can be directly skipped in all cases.
The text was updated successfully, but these errors were encountered:
I noticed
clip-path
s generated by billboard.js use the current domain of the page.This is not a problem when viewing the chart or using the native billboard.js export, but can cause problems with areas / regions if other ways to export the chart to an image are used (we use this):
This is the code which creates
clip-path
attributes:https://github.com/naver/billboard.js/blob/master/src/ChartInternal/internals/clip.ts#L36
It references IE9 (way out of support) in which case the domain is skipped, and dates back to C3:
https://github.com/c3js/c3/blob/master/src/clip.ts#L5
The domain is explicitly stripped when using the native billboard.js export:
https://github.com/naver/billboard.js/blob/master/src/Chart/api/export.ts#L89
Of course we can handle this case ourselves (which I plan to do), but at this point I wonder if using the full domain serves any purpose (maybe disambiguation, which is pointless if it gets removed), and if not whether it can be directly skipped in all cases.
The text was updated successfully, but these errors were encountered: