Skip to content

Commit 5f7db7b

Browse files
revert the changes
1 parent a3ead23 commit 5f7db7b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+119
-100
lines changed

MAUI_Chart_JSON_Data/MAUI_Chart_JSON_Data/MainPage.xaml

Lines changed: 0 additions & 32 deletions
This file was deleted.

MAUI_Chart_JSON_Data/MAUI_Chart_JSON_Data/MainPage.xaml.cs

Lines changed: 0 additions & 19 deletions
This file was deleted.

MAUI_Chart_JSON_Data/MAUI_Chart_JSON_Data/Model/Medal.cs

Lines changed: 0 additions & 9 deletions
This file was deleted.

MAUI_Chart_JSON_Data/MAUI_Chart_JSON_Data/ViewModel/ViewModel.cs

Lines changed: 0 additions & 9 deletions
This file was deleted.
Binary file not shown.

MAUI_Chart_JSON_Data/MAUI_Chart_JSON_Data.sln renamed to Maui_ChartTooltip/Maui_ChartTooltip.sln

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
44
VisualStudioVersion = 17.13.35919.96 d17.13
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MAUI_Chart_JSON_Data", "MAUI_Chart_JSON_Data\MAUI_Chart_JSON_Data.csproj", "{D272ECFD-031E-40C8-A52A-23BDE7E04E79}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Maui_ChartTooltip", "Maui_ChartTooltip\Maui_ChartTooltip.csproj", "{D98110D2-6A26-4187-B870-7F2E0BDCF46C}"
77
EndProject
88
Global
99
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1010
Debug|Any CPU = Debug|Any CPU
1111
Release|Any CPU = Release|Any CPU
1212
EndGlobalSection
1313
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14-
{D272ECFD-031E-40C8-A52A-23BDE7E04E79}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15-
{D272ECFD-031E-40C8-A52A-23BDE7E04E79}.Debug|Any CPU.Build.0 = Debug|Any CPU
16-
{D272ECFD-031E-40C8-A52A-23BDE7E04E79}.Release|Any CPU.ActiveCfg = Release|Any CPU
17-
{D272ECFD-031E-40C8-A52A-23BDE7E04E79}.Release|Any CPU.Build.0 = Release|Any CPU
14+
{D98110D2-6A26-4187-B870-7F2E0BDCF46C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{D98110D2-6A26-4187-B870-7F2E0BDCF46C}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{D98110D2-6A26-4187-B870-7F2E0BDCF46C}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{D98110D2-6A26-4187-B870-7F2E0BDCF46C}.Release|Any CPU.Build.0 = Release|Any CPU
1818
EndGlobalSection
1919
GlobalSection(SolutionProperties) = preSolution
2020
HideSolutionNode = FALSE
2121
EndGlobalSection
2222
GlobalSection(ExtensibilityGlobals) = postSolution
23-
SolutionGuid = {1EEC63BF-CA47-4572-9F7D-7FC38AF8F18D}
23+
SolutionGuid = {E8A59F04-6EEF-42F7-AAC8-EA312C15238F}
2424
EndGlobalSection
2525
EndGlobal

MAUI_Chart_JSON_Data/MAUI_Chart_JSON_Data/App.xaml renamed to Maui_ChartTooltip/Maui_ChartTooltip/App.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version = "1.0" encoding = "UTF-8" ?>
22
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
33
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
4-
xmlns:local="clr-namespace:MAUI_Chart_JSON_Data"
5-
x:Class="MAUI_Chart_JSON_Data.App">
4+
xmlns:local="clr-namespace:Maui_ChartTooltip"
5+
x:Class="Maui_ChartTooltip.App">
66
<Application.Resources>
77
<ResourceDictionary>
88
<ResourceDictionary.MergedDictionaries>

MAUI_Chart_JSON_Data/MAUI_Chart_JSON_Data/App.xaml.cs renamed to Maui_ChartTooltip/Maui_ChartTooltip/App.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace MAUI_Chart_JSON_Data
1+
namespace Maui_ChartTooltip
22
{
33
public partial class App : Application
44
{

MAUI_Chart_JSON_Data/MAUI_Chart_JSON_Data/AppShell.xaml renamed to Maui_ChartTooltip/Maui_ChartTooltip/AppShell.xaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
22
<Shell
3-
x:Class="MAUI_Chart_JSON_Data.AppShell"
3+
x:Class="Maui_ChartTooltip.AppShell"
44
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
55
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
6-
xmlns:local="clr-namespace:MAUI_Chart_JSON_Data"
6+
xmlns:local="clr-namespace:Maui_ChartTooltip"
77
Shell.FlyoutBehavior="Flyout"
8-
Title="MAUI_Chart_JSON_Data">
8+
Title="Maui_ChartTooltip">
99

1010
<ShellContent
1111
Title="Home"

MAUI_Chart_JSON_Data/MAUI_Chart_JSON_Data/AppShell.xaml.cs renamed to Maui_ChartTooltip/Maui_ChartTooltip/AppShell.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace MAUI_Chart_JSON_Data
1+
namespace Maui_ChartTooltip
22
{
33
public partial class AppShell : Shell
44
{
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
4+
xmlns:chart="clr-namespace:Syncfusion.Maui.Charts;assembly=Syncfusion.Maui.Charts"
5+
xmlns:local="clr-namespace:Maui_ChartTooltip"
6+
x:Class="Maui_ChartTooltip.MainPage">
7+
8+
<Grid>
9+
<chart:SfCartesianChart>
10+
<chart:SfCartesianChart.BindingContext>
11+
<local:ViewModel/>
12+
</chart:SfCartesianChart.BindingContext>
13+
14+
<chart:SfCartesianChart.Title>
15+
<Label Text="Population Growth" HorizontalTextAlignment="Center"/>
16+
</chart:SfCartesianChart.Title>
17+
18+
<chart:SfCartesianChart.Resources>
19+
<ResourceDictionary>
20+
<DataTemplate x:Key="tooltipTemplate">
21+
<HorizontalStackLayout>
22+
<!--Template has BindingContext as its Segment named Item. From it, you can access the corresponding Model data-->
23+
<Label Text="{Binding Item.Country}" TextColor="White" FontSize="12"/>
24+
<Label Text=" : " TextColor="White" FontSize="12"/>
25+
<Label Text="{Binding Item.Population}" TextColor="White" FontSize="12"/>
26+
</HorizontalStackLayout>
27+
</DataTemplate>
28+
</ResourceDictionary>
29+
</chart:SfCartesianChart.Resources>
30+
31+
<chart:SfCartesianChart.XAxes>
32+
<chart:CategoryAxis/>
33+
</chart:SfCartesianChart.XAxes>
34+
35+
<chart:SfCartesianChart.YAxes>
36+
<chart:NumericalAxis/>
37+
</chart:SfCartesianChart.YAxes>
38+
39+
<chart:ColumnSeries ItemsSource="{Binding Data}"
40+
XBindingPath="Country" YBindingPath="Population"
41+
EnableTooltip="True"
42+
TooltipTemplate="{StaticResource tooltipTemplate}">
43+
</chart:ColumnSeries>
44+
</chart:SfCartesianChart>
45+
</Grid>
46+
47+
</ContentPage>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
namespace Maui_ChartTooltip
2+
{
3+
public partial class MainPage : ContentPage
4+
{
5+
public MainPage()
6+
{
7+
InitializeComponent();
8+
}
9+
}
10+
11+
}

MAUI_Chart_JSON_Data/MAUI_Chart_JSON_Data/MauiProgram.cs renamed to Maui_ChartTooltip/Maui_ChartTooltip/MauiProgram.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using Microsoft.Extensions.Logging;
22
using Syncfusion.Maui.Core.Hosting;
33

4-
namespace MAUI_Chart_JSON_Data
4+
namespace Maui_ChartTooltip
55
{
66
public static class MauiProgram
77
{

MAUI_Chart_JSON_Data/MAUI_Chart_JSON_Data/MAUI_Chart_JSON_Data.csproj renamed to Maui_ChartTooltip/Maui_ChartTooltip/Maui_ChartTooltip.csproj

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414
<!-- For example: <RuntimeIdentifiers>maccatalyst-x64;maccatalyst-arm64</RuntimeIdentifiers> -->
1515

1616
<OutputType>Exe</OutputType>
17-
<RootNamespace>MAUI_Chart_JSON_Data</RootNamespace>
17+
<RootNamespace>Maui_ChartTooltip</RootNamespace>
1818
<UseMaui>true</UseMaui>
1919
<SingleProject>true</SingleProject>
2020
<ImplicitUsings>enable</ImplicitUsings>
2121
<Nullable>enable</Nullable>
2222

2323
<!-- Display name -->
24-
<ApplicationTitle>MAUI_Chart_JSON_Data</ApplicationTitle>
24+
<ApplicationTitle>Maui_ChartTooltip</ApplicationTitle>
2525

2626
<!-- App Identifier -->
27-
<ApplicationId>com.companyname.maui_chart_json_data</ApplicationId>
27+
<ApplicationId>com.companyname.maui_charttooltip</ApplicationId>
2828

2929
<!-- Versions -->
3030
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
@@ -62,7 +62,6 @@
6262
<ItemGroup>
6363
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
6464
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.0" />
65-
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
6665
<PackageReference Include="Syncfusion.Maui.Charts" Version="*" />
6766
</ItemGroup>
6867

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+

2+
namespace Maui_ChartTooltip
3+
{
4+
public class Model
5+
{
6+
public string Country { get; set; }
7+
8+
public double Population { get; set; }
9+
}
10+
}

MAUI_Chart_JSON_Data/MAUI_Chart_JSON_Data/Platforms/Android/MainActivity.cs renamed to Maui_ChartTooltip/Maui_ChartTooltip/Platforms/Android/MainActivity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using Android.Content.PM;
33
using Android.OS;
44

5-
namespace MAUI_Chart_JSON_Data
5+
namespace Maui_ChartTooltip
66
{
77
[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, LaunchMode = LaunchMode.SingleTop, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
88
public class MainActivity : MauiAppCompatActivity

MAUI_Chart_JSON_Data/MAUI_Chart_JSON_Data/Platforms/Android/MainApplication.cs renamed to Maui_ChartTooltip/Maui_ChartTooltip/Platforms/Android/MainApplication.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using Android.App;
22
using Android.Runtime;
33

4-
namespace MAUI_Chart_JSON_Data
4+
namespace Maui_ChartTooltip
55
{
66
[Application]
77
public class MainApplication : MauiApplication

MAUI_Chart_JSON_Data/MAUI_Chart_JSON_Data/Platforms/MacCatalyst/AppDelegate.cs renamed to Maui_ChartTooltip/Maui_ChartTooltip/Platforms/MacCatalyst/AppDelegate.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Foundation;
22

3-
namespace MAUI_Chart_JSON_Data
3+
namespace Maui_ChartTooltip
44
{
55
[Register("AppDelegate")]
66
public class AppDelegate : MauiUIApplicationDelegate

MAUI_Chart_JSON_Data/MAUI_Chart_JSON_Data/Platforms/iOS/Program.cs renamed to Maui_ChartTooltip/Maui_ChartTooltip/Platforms/MacCatalyst/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using ObjCRuntime;
22
using UIKit;
33

4-
namespace MAUI_Chart_JSON_Data
4+
namespace Maui_ChartTooltip
55
{
66
public class Program
77
{

MAUI_Chart_JSON_Data/MAUI_Chart_JSON_Data/Platforms/Tizen/Main.cs renamed to Maui_ChartTooltip/Maui_ChartTooltip/Platforms/Tizen/Main.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using Microsoft.Maui;
33
using Microsoft.Maui.Hosting;
44

5-
namespace MAUI_Chart_JSON_Data
5+
namespace Maui_ChartTooltip
66
{
77
internal class Program : MauiApplication
88
{

MAUI_Chart_JSON_Data/MAUI_Chart_JSON_Data/Platforms/Tizen/tizen-manifest.xml renamed to Maui_ChartTooltip/Maui_ChartTooltip/Platforms/Tizen/tizen-manifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest package="maui-application-id-placeholder" version="0.0.0" api-version="9" xmlns="http://tizen.org/ns/packages">
33
<profile name="common" />
4-
<ui-application appid="maui-application-id-placeholder" exec="MAUI_Chart_JSON_Data.dll" multiple="false" nodisplay="false" taskmanage="true" type="dotnet" launch_mode="single">
4+
<ui-application appid="maui-application-id-placeholder" exec="Maui_ChartTooltip.dll" multiple="false" nodisplay="false" taskmanage="true" type="dotnet" launch_mode="single">
55
<label>maui-application-title-placeholder</label>
66
<icon>maui-appicon-placeholder</icon>
77
<metadata key="http://tizen.org/metadata/prefer_dotnet_aot" value="true" />
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<maui:MauiWinUIApplication
2-
x:Class="MAUI_Chart_JSON_Data.WinUI.App"
2+
x:Class="Maui_ChartTooltip.WinUI.App"
33
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
44
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
55
xmlns:maui="using:Microsoft.Maui"
6-
xmlns:local="using:MAUI_Chart_JSON_Data.WinUI">
6+
xmlns:local="using:Maui_ChartTooltip.WinUI">
77

88
</maui:MauiWinUIApplication>

MAUI_Chart_JSON_Data/MAUI_Chart_JSON_Data/Platforms/Windows/App.xaml.cs renamed to Maui_ChartTooltip/Maui_ChartTooltip/Platforms/Windows/App.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// To learn more about WinUI, the WinUI project structure,
44
// and more about our project templates, see: http://aka.ms/winui-project-info.
55

6-
namespace MAUI_Chart_JSON_Data.WinUI
6+
namespace Maui_ChartTooltip.WinUI
77
{
88
/// <summary>
99
/// Provides application-specific behavior to supplement the default Application class.

MAUI_Chart_JSON_Data/MAUI_Chart_JSON_Data/Platforms/Windows/Package.appxmanifest renamed to Maui_ChartTooltip/Maui_ChartTooltip/Platforms/Windows/Package.appxmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<Identity Name="maui-package-name-placeholder" Publisher="CN=User Name" Version="0.0.0.0" />
1010

11-
<mp:PhoneIdentity PhoneProductId="AF4B5876-6F34-4F73-B67E-7A191985BFA3" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
11+
<mp:PhoneIdentity PhoneProductId="D1A1D68B-7A10-4817-A255-EF23048541A5" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
1212

1313
<Properties>
1414
<DisplayName>$placeholder$</DisplayName>

MAUI_Chart_JSON_Data/MAUI_Chart_JSON_Data/Platforms/Windows/app.manifest renamed to Maui_ChartTooltip/Maui_ChartTooltip/Platforms/Windows/app.manifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
3-
<assemblyIdentity version="1.0.0.0" name="MAUI_Chart_JSON_Data.WinUI.app"/>
3+
<assemblyIdentity version="1.0.0.0" name="Maui_ChartTooltip.WinUI.app"/>
44

55
<application xmlns="urn:schemas-microsoft-com:asm.v3">
66
<windowsSettings>

MAUI_Chart_JSON_Data/MAUI_Chart_JSON_Data/Platforms/iOS/AppDelegate.cs renamed to Maui_ChartTooltip/Maui_ChartTooltip/Platforms/iOS/AppDelegate.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Foundation;
22

3-
namespace MAUI_Chart_JSON_Data
3+
namespace Maui_ChartTooltip
44
{
55
[Register("AppDelegate")]
66
public class AppDelegate : MauiUIApplicationDelegate

MAUI_Chart_JSON_Data/MAUI_Chart_JSON_Data/Platforms/MacCatalyst/Program.cs renamed to Maui_ChartTooltip/Maui_ChartTooltip/Platforms/iOS/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using ObjCRuntime;
22
using UIKit;
33

4-
namespace MAUI_Chart_JSON_Data
4+
namespace Maui_ChartTooltip
55
{
66
public class Program
77
{
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
using System.Collections.ObjectModel;
2+
3+
namespace Maui_ChartTooltip
4+
{
5+
public class ViewModel
6+
{
7+
public ObservableCollection<Model> Data { get; set; }
8+
9+
public ViewModel()
10+
{
11+
Data = new ObservableCollection<Model>()
12+
{
13+
new Model(){ Country = "India", Population = 234 },
14+
new Model(){ Country = "United States", Population = 156 },
15+
new Model(){ Country = "China", Population = 280 },
16+
new Model(){ Country = "Australia", Population = 134 },
17+
new Model(){ Country = "Kuwait", Population = 80 }
18+
};
19+
}
20+
}
21+
}

0 commit comments

Comments
 (0)