-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Adding fallback and fixes for test app crashes for 12 schema data #33624
base: user/atisjai/stronglyTypePlotly
Are you sure you want to change the base?
Adding fallback and fixes for test app crashes for 12 schema data #33624
Conversation
…microsoft/fluentui into users/srmukher/FixCrashesPlotly
45d521e
to
bcb80ef
Compare
Pull request demo site: URL |
packages/charts/react-charting/src/components/DeclarativeChart/PlotlySchema.ts
Outdated
Show resolved
Hide resolved
packages/charts/react-charting/src/components/DeclarativeChart/DeclarativeChart.tsx
Outdated
Show resolved
Hide resolved
packages/charts/react-charting/src/components/DeclarativeChart/DeclarativeChart.tsx
Outdated
Show resolved
Hide resolved
packages/charts/react-charting/src/components/DeclarativeChart/DeclarativeChart.tsx
Outdated
Show resolved
Hide resolved
packages/charts/react-charting/src/components/DeclarativeChart/DeclarativeChart.tsx
Outdated
Show resolved
Hide resolved
packages/charts/react-charting/src/components/DeclarativeChart/DeclarativeChart.tsx
Outdated
Show resolved
Hide resolved
packages/charts/react-charting/src/components/DeclarativeChart/DeclarativeChart.tsx
Outdated
Show resolved
Hide resolved
…microsoft/fluentui into users/srmukher/FixCrashesPlotly
…microsoft/fluentui into users/srmukher/FixCrashesPlotly
/> | ||
); | ||
}; | ||
return checkAndRenderChart(renderLineChartJsx); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fallbackVSBC = true; | ||
return ( | ||
<VerticalStackedBarChart | ||
{...transformPlotlyJsonToVSBCProps(plotlySchema, colorMap, isDarkTheme, fallbackVSBC)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
onChange: onActiveLegendsChange, | ||
canSelectMultipleLegends: true, | ||
selectedLegends: activeLegends, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
legendProps={multiSelectLegendProps}
@@ -212,7 +214,7 @@ export const transformPlotlyJsonToVSBCProps = ( | |||
} | |||
const legend: string = getLegend(series, index1); | |||
const yVal: number = (series.y?.[index2] as number) ?? 0; | |||
if (series.type === 'bar' || series.type === 'scatter') { | |||
if (series.type === 'bar' || series.type === 'scatter' || fallbackVSBC) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From PR https://github.com/microsoft/fluentui/pull/33542/files?diff=split&w=0
Fixes for test app crashes for 12 schema data
Fixed schema data numbers 84, 85, 88, 91, 92, 93, 99, 100, 101, 102, 103, 107