Skip to content

Commit 5dbe2d3

Browse files
committed
Update scatter sample
Now uses LineOptions
1 parent 0397bab commit 5dbe2d3

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

samples/Shared/ChartJs.Blazor.Sample.Shared/Components/ScatterChartComponent.razor

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@using ChartJs.Blazor.ChartJS.Common.Properties
22
@using ChartJs.Blazor.Charts
33
@using ChartJs.Blazor.ChartJS.ScatterChart
4+
@using ChartJs.Blazor.ChartJS.LineChart
45
@using ChartJs.Blazor.Util
56

67
<h1>Scatter Chart</h1>
@@ -21,22 +22,12 @@
2122
{
2223
_config = new ScatterConfig
2324
{
24-
Options = new ScatterOptions
25+
Options = new LineOptions
2526
{
2627
Title = new OptionsTitle
2728
{
2829
Text = "My Random points",
2930
Display = true
30-
},
31-
Scales = new ScatterScales
32-
{
33-
XAxes = new List<ScatterAxis>
34-
{
35-
new ScatterAxis
36-
{
37-
Type = "linear"
38-
}
39-
}
4031
}
4132
}
4233
};

0 commit comments

Comments
 (0)