Skip to content
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

feat(declarative-chart): Create Scatter plot #33843

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
add check for markersize as number
  • Loading branch information
Anush2303 committed Feb 25, 2025
commit 3bd48056486ac21919c1e7ae3eb821ed8c7adc31
Original file line number Diff line number Diff line change
@@ -511,7 +511,11 @@ export const transformPlotlyJsonToScatterChartProps = (
data: xValues.map((x, i: number) => ({
x: isString ? (isXDate ? new Date(x as string) : isXNumber ? parseFloat(x as string) : x) : x,
y: series.y[i],
...(Array.isArray(series.marker?.size) ? { markerSize: series.marker.size[i] } : {}),
...(Array.isArray(series.marker?.size)
? { markerSize: series.marker.size[i] }
: typeof series.marker?.size === 'number'
? { markerSize: series.marker.size }
: {}),
})),
color: lineColor,
} as ILineChartPoints;