webcontainer-core
webcontainer-core copied to clipboard
Chart not loading
Describe the bug
Composition api is still using older addSeries definition
Link to the blitz that caused the error
https://stackblitz.com/edit/vitejs-vite-gc8d7qce?file=package.json,vite.config.js,src%2FApp.vue,src%2Fcomponents%2Fcomposition-api%2FLWChart.vue,src%2Fcomponents%2Foptions-api%2FLWChart.vue
Steps to reproduce
Just run it, the chart doesn't load
Expected behavior
Fix is to copy these 2 functions from the options api: getChartSeriesDefinition addSeriesAndData
and also copy over the imports
Then it runs fine.
Parity with Local
- [x] I have run the project in my local machine and I could not reproduce the issue.
Screenshots
No response
Platform
Browser name = Chrome
Full version = 139.0.0.0
Major version = 139
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36
performance.memory = {
"totalJSHeapSize": 210312216,
"usedJSHeapSize": 202329692,
"jsHeapSizeLimit": 4294705152
}
Hash = 96435430
Additional context
No response
ugh wrong context