Skip to content

Chart not loading #1958

@ChrisAGit

Description

@ChrisAGit

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions