You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Using the code in the example, the chart will not be generated after running the program, and the chart will be generated normally after manually dragging the window, but the zoom is not normal, and the maximum and minimum cannot be displayed normally.
To Reproduce
Steps to reproduce the behavior:
Ues Visual Studio 2022 create a WPF project.
Install dependencies packages
Copy example PieChart code.
usingLiveChartsCore;usingLiveChartsCore.SkiaSharpView;usingCommunityToolkit.Mvvm.ComponentModel;usingSystem.Collections.Generic;usingLiveChartsCore.SkiaSharpView.Painting;usingSkiaSharp;usingLiveChartsCore.SkiaSharpView.VisualElements;namespaceViewModel;publicpartialclassViewModel:ObservableObject{publicViewModel(){// you could convert any IEnumerable to a pie series collectionvardata=newdouble[]{2,4,1,4,3};// Series = data.AsLiveChartsPieSeries(); this could be enough in some cases // but you can customize the series properties using the following overload: Series=data.AsLiveChartsPieSeries((value,series)=>{// here you can configure the series assigned to each value.series.Name=$"Series for value {value}";series.DataLabelsPaint=newSolidColorPaint(newSKColor(30,30,30));series.DataLabelsPosition=LiveChartsCore.Measure.PolarLabelsPosition.Outer;series.DataLabelsFormatter= p =>$"{p.PrimaryValue} / {p.StackedValue!.Total} ({p.StackedValue.Share:P2})";});// this is an equivalent and more verbose syntax. // Series = new ISeries[]// {// new PieSeries<double> { Values = new double[] { 2 }, Name = "Slice 1" },// new PieSeries<double> { Values = new double[] { 4 }, Name = "Slice 2" },// new PieSeries<double> { Values = new double[] { 1 }, Name = "Slice 3" },// new PieSeries<double> { Values = new double[] { 4 }, Name = "Slice 4" },// new PieSeries<double> { Values = new double[] { 3 }, Name = "Slice 5" }// };}publicIEnumerable<ISeries>Series{get;set;}publicLabelVisualTitle{get;set;}=newLabelVisual{Text="My chart title",TextSize=25,Padding=newLiveChartsCore.Drawing.Padding(15),Paint=newSolidColorPaint(SKColors.DarkSlateGray)};}
Screenshots
Unable to display normally when starting the program
The graph is displayed after moving the window, but it is incomplete
Maximized cannot be fully filled
Desktop (please complete the following information):
OS: Windows10
WPF
Browser: chrome
Version 2.0.0-beta.710
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
Using the code in the example, the chart will not be generated after running the program, and the chart will be generated normally after manually dragging the window, but the zoom is not normal, and the maximum and minimum cannot be displayed normally.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
charts display normal.
Screenshots
Unable to display normally when starting the program
The graph is displayed after moving the window, but it is incomplete
Maximized cannot be fully filled
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: