Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/Ivy/Widgets/Charts/Shared/Scatter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ internal Scatter()
public ScatterLineType LineType { get; set; } = ScatterLineType.Joint;

public double? FillOpacity { get; set; } = null;

public int? YAxisIndex { get; set; } = null;
}

public static class ScatterExtensions
Expand Down Expand Up @@ -102,4 +104,9 @@ public static Scatter FillOpacity(this Scatter scatter, double fillOpacity)
{
return scatter with { FillOpacity = fillOpacity };
}

public static Scatter YAxisIndex(this Scatter scatter, int yAxisIndex)
{
return scatter with { YAxisIndex = yAxisIndex };
}
}
1 change: 1 addition & 0 deletions src/frontend/src/widgets/charts/ScatterChartWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ const generateScatterSeries = (
data: scatterData,
symbol: customPath || symbol,
symbolSize,
yAxisIndex: scatter.yAxisIndex ?? 0,
itemStyle: {
color: scatter.fill || undefined,
opacity: scatter.fillOpacity !== null ? scatter.fillOpacity : 0.8,
Expand Down
1 change: 1 addition & 0 deletions src/frontend/src/widgets/charts/chartTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ export interface ScatterProps {
strokeDashArray?: string | null;
strokeWidth?: number;
unit?: string | null;
yAxisIndex?: number | null;
}

export interface ScatterChartWidgetProps {
Expand Down
Loading