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

Fix onepoint display #121

Merged
merged 2 commits into from
Aug 2, 2021

Conversation

powerpdw
Copy link

I've fixed diaplay bug on one-point display.

[Before]

before

###[After]
after

@beto-rodriguez
Copy link
Owner

Thanks again for this PR.

I am not able to reproduce this case.

I see the current version works properly when there is only one point in a line series, am I missing something?

@powerpdw
Copy link
Author

powerpdw commented Aug 2, 2021

I tested [Scatter]-[Basic] sample.
In ViewModel.cs, The code I tested is as follows.
If you test the code below you will find the problem.

using LiveChartsCore;
using LiveChartsCore.Defaults;
using LiveChartsCore.SkiaSharpView;
using System.Collections.Generic;
using System.Collections.ObjectModel;

namespace ViewModelsSamples.Scatter.Basic
{
    public class ViewModel
    {
        public IEnumerable<ISeries> Series { get; set; } = new ObservableCollection<ISeries>
        {
            new ScatterSeries<ObservablePoint>
            {
                Values = new ObservableCollection<ObservablePoint>
                {
                    new ObservablePoint(20, 20)                    
                }
            }
        };
    }
}

@beto-rodriguez beto-rodriguez merged commit 4dc2dfb into beto-rodriguez:master Aug 2, 2021
@powerpdw powerpdw deleted the FixOnePointDisplay branch September 27, 2023 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants