@@ -116,7 +116,7 @@ public partial class MainPage : ContentPage
116
116
117
117
if (pointsInfo .Count > 0 )
118
118
{
119
- var item = (Model )pointsInfo [0 ].DataItem ;
119
+ var item = (DataModel )pointsInfo [0 ].DataItem ;
120
120
121
121
// Convert chart point to screen point
122
122
float xPoint = firstChart .ValueToPoint (firstChart .XAxes [0 ], item .Date .ToOADate ());
@@ -135,7 +135,7 @@ public partial class MainPage : ContentPage
135
135
136
136
if (pointsInfo .Count > 0 )
137
137
{
138
- var item = (Model )pointsInfo [0 ].DataItem ;
138
+ var item = (DataModel )pointsInfo [0 ].DataItem ;
139
139
140
140
// Convert chart point to screen point
141
141
float xPoint = secondChart .ValueToPoint (secondChart .XAxes [0 ], item .Date .ToOADate ());
@@ -154,7 +154,7 @@ public partial class MainPage : ContentPage
154
154
155
155
if (pointsInfo .Count > 0 )
156
156
{
157
- var item = (Model )pointsInfo [0 ].DataItem ;
157
+ var item = (DataModel )pointsInfo [0 ].DataItem ;
158
158
159
159
// Convert chart point to screen point
160
160
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
175
175
** Output:**
176
176
177
177
![ 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