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

Conditional Paint buggy visual #1132

Closed
Diogoaf420 opened this issue Jul 24, 2023 · 1 comment
Closed

Conditional Paint buggy visual #1132

Diogoaf420 opened this issue Jul 24, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Diogoaf420
Copy link

Describe the bug
When using conditional Paint with a lineSeries the line is drawn over the point unlink happens with the points when not painted with the condition.

Steps to reproduce the behavior:

  1. Create a line series with a condition paint
  2. See line drawn over the chart point.

My line series:
var createdSerie = new LineSeries<GraphStop, StopGeometry>
{
Name = serviceDescriber,
Fill = null,
LineSmoothness = 0,
DataLabelsFormatter = (point) => point.Model.IsStartOfTrip() ? point.Model.Stop.TripDescriber : "",
DataLabelsPosition = DataLabelsPosition.Top,
DataLabelsPaint = new SolidColorPaint(paintingColor, 3),
Stroke = new SolidColorPaint(paintingColor, 1),
GeometryStroke = new SolidColorPaint(paintingColor, 1),
GeometryFill = new SolidColorPaint(SKColors.Black),
GeometrySize = 5,
Values = newServiceStops,
TooltipLabelFormatter = (chartPoint) => $"{"Service: " + serviceDescriber}" + Environment.NewLine +
$"{"TDN: " + chartPoint.Model.Stop.TripDescriber}" +
ConstructArrivalAndDepartureString(chartPoint.Model)
}.WithConditionalPaint(new SolidColorPaint(SKColors.Red, 3)).When((point) => point.Model.PaintNoStabling());

Expected behavior
Normal draw of chart point in top of the line.

Screenshots
Check that when the conditional paint is drawn with red the line overlaps the chart point. What not happens with the others.
image

Thank you!

@beto-rodriguez beto-rodriguez added the bug Something isn't working label Jul 28, 2023
@beto-rodriguez
Copy link
Owner

this is now fixed in the latest release, thanks for the report .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants