Skip to content

Commit 7713177

Browse files
committed
SimpleDemo: fix a runtime exception
* "BarSeries requires a CategoryAxis on the Y Axis"
1 parent 9cfa2cc commit 7713177

File tree

1 file changed

+5
-3
lines changed
  • Source/Examples/Xamarin.Forms/SimpleDemo/SimpleDemo

1 file changed

+5
-3
lines changed

Source/Examples/Xamarin.Forms/SimpleDemo/SimpleDemo/App.xaml.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,18 @@ public App()
2424
{
2525
Model = new PlotModel
2626
{
27-
Title = "OxyPlot in Xamarin Forms.",
27+
Title = "OxyPlot in Xamarin.Forms",
2828
Axes =
2929
{
30-
new CategoryAxis {Position = AxisPosition.Bottom},
31-
new LinearAxis {Position = AxisPosition.Left, MinimumPadding = 0}
30+
new CategoryAxis {Position = AxisPosition.Bottom, Key = "Y" },
31+
new LinearAxis {Position = AxisPosition.Left, Key = "X", MinimumPadding = 0}
3232
},
3333
Series =
3434
{
3535
new BarSeries
3636
{
37+
XAxisKey = "X",
38+
YAxisKey = "Y",
3739
Items =
3840
{
3941
new BarItem {Value = 3},

0 commit comments

Comments
 (0)