Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ThemeHelper.,SampleService.IsDevice #173

Open
lifeIsGood-love opened this issue Aug 23, 2024 · 1 comment
Open

ThemeHelper.,SampleService.IsDevice #173

lifeIsGood-love opened this issue Aug 23, 2024 · 1 comment
Labels
charts Chart component

Comments

@lifeIsGood-love
Copy link

Theme = ThemeHelper.GetCurrentTheme(NavigationManager.Uri);
if (SampleService.IsDevice)
{
Rotation = -45;
Label = LabelIntersectAction.None;
Width = "100%";
}
FontFamily = ThemeHelper.GetFontFamily(NavigationManager.Uri);

@kmuthukumarmkm kmuthukumarmkm added the charts Chart component label Aug 28, 2024
@G-Durga
Copy link

G-Durga commented Feb 12, 2025

Based on your input, it appears that the code you provided is from the Syncfusion Blazor Sample Browser.

The ThemeHelper method in your code is an internal function designed to retrieve the theme from the navigation URL. If you'd like to modify the theme, we suggest directly setting the desired theme using the Theme property in the chart.

Similarly, the SampleService.IsDevice method is an internal service used to detect if the sample is running on a mobile device. Instead of using this, we recommend adjusting the chart properties, such as axis label rotation, label intersection, and chart width, directly to suit the requirements of your application.

To help us assist you more effectively and provide a quicker resolution, could you please share the following details?
• A detailed description of your exact requirements.
• Whether you're looking to change the chart theme or other chart properties.
• Any specific issues you're currently facing with the code.

Providing this information will help us understand the situation better and offer you the most appropriate solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
charts Chart component
Projects
None yet
Development

No branches or pull requests

3 participants