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

changed to display leftAxis line even if it fills between two line gr… #4199

Closed
wants to merge 1 commit into from

Conversation

hachinobu
Copy link

…aphs.

Issue Link 🔗

#4037

Goals ⚽

The leftAxis line is displayed even if you fill between two line graphs.

Before After
Simulator_Screen_Shot_-iPhone_11_Pro_Max-_2019-10-29_at_13_49_23 Simulator_Screen_Shot_-iPhone_11_Pro_Max-_2019-10-29_at_13_51_44

Implementation Details 🚧

Changed timing to call renderer.drawData (context: context)

@liuxuan30
Copy link
Member

liuxuan30 commented Jan 19, 2020

Hi there,

Sorry for the delay. But I'm feeling, you are filling all the contentRect, instead of the area between your lines, which seems not making sense.

@@ -181,7 +181,7 @@ open class BarLineChartViewBase: ChartViewBase, BarLineScatterCandleBubbleChartD

// execute all drawing commands
drawGridBackground(context: context)

renderer.drawData(context: context)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you pull this up before clip, you would get multiple UT failures.
You have to restrict the filling area between the lines, not the whole chart.

@hachinobu hachinobu closed this Jan 19, 2020
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.

2 participants