-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using any non-line chart in a Vue 3 component, billboard.js throws error seeking line to be imported #3944
Comments
Hi @RobSpectre, thanks for report. I'll go over it. |
I made a pure ESM import example. It seems work without issue. import bb, { funnel } from 'billboard.js' // as-is
import bb, { funnel } from 'billboard.js/dist-esm/billboard.js'; // to-be Sometimes bundler resolve wrongly(or based on your config) where to import esm. |
Thanks for the quick look @netil. I tried the
|
@RobSpectre bb.generate({
data: {
columns: [
['data1', 30],
['data2', 45],
['data3', 25],
['data4', 55],
],
type: funnel(), // <-- type need to be defined here
},
type: funnel(), // <-- type should be specified within 'data'
},
}; So, in your example threw error because when |
Ah biscuits - my bad @netil. Love the library - appreciate the assist. Apologies for wasting your time. |
Trying to use billboard.js in a Vue 3 component - it appears that the ESM imports might be bugged? Whenever I try to create a non-line chart, I get this error:
❌ [billboard.js] Please, make sure if line background:red;color:white;display:block;font-size:15px module has been imported and specified correctly.
This error thrown with funnel, area, and bar charts - it is not thrown when I create a line chart.
Chrome on Linux: 132.0.6834.159
billboard.js: 3.14.3
Here's my component:
The text was updated successfully, but these errors were encountered: