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
When core is built via vite, it is creating es and cjs versions. It should have been building es and umd.
I will submit a PR to fix this. Otherwise, this documented approach to loading Carbon Charts will not work...
<!DOCTYPE html><html><head><linkrel="stylesheet" href="@carbon/styles/css/styles.css" />
<linkrel="stylesheet" href="https://unpkg.com/@carbon/charts/styles.css" />
</head><body><divid="my-bar-chart"></div><scriptsrc="https://unpkg.com/@carbon/charts/dist/umd/bundle.umd.js"></script><script>// grab chart holder DOM elementconstchartHolder=document.getElementById('my-bar-chart')conststackedBarData=[// refer to tabular data format tutorial]conststackedBarOptions={// refer to chart specific options}// initialize the chartnewCarbonCharts.StackedBarChart(chartHolder,{data: stackedBarData,options: stackedBarOptions,})</script></body></html>
Version
@carbon/charts@1.11.17
What priority level would this be in your opinion?
P0
The text was updated successfully, but these errors were encountered:
Name
Nate Stuyvesant
Are you an IBM employee?
What happened?
When core is built via vite, it is creating es and cjs versions. It should have been building es and umd.
I will submit a PR to fix this. Otherwise, this documented approach to loading Carbon Charts will not work...
Version
@carbon/charts@1.11.17
What priority level would this be in your opinion?
P0
The text was updated successfully, but these errors were encountered: