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

Ordering of paints for overlapping lines #6

Closed
MichaelRFairhurst opened this issue Nov 29, 2017 · 4 comments
Closed

Ordering of paints for overlapping lines #6

MichaelRFairhurst opened this issue Nov 29, 2017 · 4 comments

Comments

@MichaelRFairhurst
Copy link

Hey Milan,

I noticed that if I make two lines in the line chart, it seems that the first line gets painted before the second line. Could this be reversed?

The reason here is that the first line's legend shows up first in the chart, so it should be the "prioritized" line most of the time. However, if the second line overlaps it, it will be drawn over the first line.

This makes it hard to clearly prioritize one line over another -- its either later in the legend, or its underneath the rest.

@mzimmerm
Copy link
Owner

Hi Michael,

Yes that makes sense, although I did not fully "realize" the ordering is like this but yeah, I think the lines are painted in the order of the "data rows", so the last line "wins/overlaps" those below. It can definitely be reversed, although I think we should provide an option. Default would be the first line in the series (corresponding to the left-most colored square) is painted last, is that what you meant? I think I can do this this weekend, maybe earlier.

Thanks, this is very useful,
Milan

@MichaelRFairhurst
Copy link
Author

Yep, I read your comment as exactly what I was trying to say!

No real rush, I'm also working on my app when I get time between other things :)

@mzimmerm
Copy link
Owner

mzimmerm commented Dec 4, 2017

@MichaelRFairhurst : Michael, I published a new version that addresses and should fix items 5, 6. Please take a look at https://pub.dartlang.org/packages/flutter_charts#pub-pkg-tab-changelog for details.

Let me know if there are some issues with the two.

I started working on item 3 (planning for now by a simple iterative X labels layout that will either/or tilt/skip labels.
Later,
Milan

@MichaelRFairhurst
Copy link
Author

Works great! Sorry for the delay in responding.

mzimmerm added a commit that referenced this issue Jan 15, 2023
            code #6. Playing with double-layout in yContainerFirst and
yContainer. Tests succeed.
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

No branches or pull requests

2 participants