Skip to content

Commit e26e607

Browse files
Update README.md
1 parent de25e9a commit e26e607

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public partial class MainPage : ContentPage
116116

117117
if (pointsInfo.Count > 0)
118118
{
119-
var item = (Model)pointsInfo[0].DataItem;
119+
var item = (DataModel)pointsInfo[0].DataItem;
120120

121121
// Convert chart point to screen point
122122
float xPoint = firstChart.ValueToPoint(firstChart.XAxes[0], item.Date.ToOADate());
@@ -135,7 +135,7 @@ public partial class MainPage : ContentPage
135135

136136
if (pointsInfo.Count > 0)
137137
{
138-
var item = (Model)pointsInfo[0].DataItem;
138+
var item = (DataModel)pointsInfo[0].DataItem;
139139

140140
// Convert chart point to screen point
141141
float xPoint = secondChart.ValueToPoint(secondChart.XAxes[0], item.Date.ToOADate());
@@ -154,7 +154,7 @@ public partial class MainPage : ContentPage
154154

155155
if (pointsInfo.Count > 0)
156156
{
157-
var item = (Model)pointsInfo[0].DataItem;
157+
var item = (DataModel)pointsInfo[0].DataItem;
158158

159159
// Convert chart point to screen point
160160
float xPoint = thirdChart.ValueToPoint(thirdChart.XAxes[0], item.Date.ToOADate());
@@ -175,5 +175,3 @@ The following demo illustrates multiple charts in .NET MAUI with synchronized tr
175175
**Output:**
176176

177177
![ trackball synchronization](https://support.syncfusion.com/kb/agent/attachment/article/18647/inline?token=eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjM0MzQyIiwib3JnaWQiOiIzIiwiaXNzIjoic3VwcG9ydC5zeW5jZnVzaW9uLmNvbSJ9.SlnHed6aMQ8riGFUC2tKxYKLejojSUzYboX56xNEgxA)
178-
179-
You can find the complete sample from this GitHub Repo [link](https://github.com/SyncfusionExamples/How-to-synchronize-trackball-in-.NET-MAUI-SfCartesianChart).

0 commit comments

Comments
 (0)