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

Axis Renderers Cleanup #3164

Merged
merged 20 commits into from
Jan 4, 2019
Merged

Axis Renderers Cleanup #3164

merged 20 commits into from
Jan 4, 2019

Conversation

jjatie
Copy link
Collaborator

@jjatie jjatie commented Jan 9, 2018

Replaced custom algorithms with built-in ones
Made axis renderer implementations feel "Swift-ier"

@jjatie jjatie added this to the 4.0.0 milestone Jan 9, 2018
@jjatie jjatie changed the title Swift-ified and Unified Style Axis Renderers Cleanup Jan 9, 2018
@codecov-io
Copy link

codecov-io commented Jan 9, 2018

Codecov Report

Merging #3164 into 4.0.0 will increase coverage by 0.12%.
The diff coverage is 28.91%.

Impacted file tree graph

@@            Coverage Diff             @@
##            4.0.0    #3164      +/-   ##
==========================================
+ Coverage   31.36%   31.48%   +0.12%     
==========================================
  Files         112      112              
  Lines       10246    10051     -195     
==========================================
- Hits         3214     3165      -49     
+ Misses       7032     6886     -146
Impacted Files Coverage Δ
Source/Charts/Highlight/ChartHighlighter.swift 28.57% <ø> (ø) ⬆️
Source/Charts/Charts/BarLineChartViewBase.swift 66.01% <ø> (ø) ⬆️
...s/Data/Implementations/Standard/ChartDataSet.swift 25.92% <ø> (-2.65%) ⬇️
...ts/Renderers/YAxisRendererHorizontalBarChart.swift 0% <0%> (ø) ⬆️
...ts/Renderers/XAxisRendererHorizontalBarChart.swift 0% <0%> (ø) ⬆️
...arts/Data/Implementations/Standard/ChartData.swift 19.76% <0%> (+4.76%) ⬆️
...rce/Charts/Renderers/XAxisRendererRadarChart.swift 0% <0%> (ø) ⬆️
...rce/Charts/Renderers/YAxisRendererRadarChart.swift 0% <0%> (ø) ⬆️
Source/Charts/Renderers/YAxisRenderer.swift 59.07% <42.52%> (+0.19%) ⬆️
Source/Charts/Renderers/LineChartRenderer.swift 57.18% <50%> (ø) ⬆️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update be8b386...6d8471d. Read the comment docs.

@jjatie jjatie mentioned this pull request Jan 16, 2018
_entryCountStacks += 1
}
}
entries.forEach { _entryCountStacks += $0.yValues?.count ?? 1 }
Copy link
Member

@liuxuan30 liuxuan30 May 7, 2018

Choose a reason for hiding this comment

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

I saw you merged data set cleanup PR, but I still seeing many diffs about data set that has been merged? Could you help check what's wrong?

Copy link
Member

Choose a reason for hiding this comment

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

@liuxuan30
Copy link
Member

liuxuan30 commented May 17, 2018

@jjatie busy recently? I will look at other PRs that are not in any projects and try merge some before having your reply

@jjatie
Copy link
Collaborator Author

jjatie commented May 17, 2018

Yes, very busy lately. Will hopefully get to it this weekend

@liuxuan30
Copy link
Member

take your time, no hurry :)

@jjatie
Copy link
Collaborator Author

jjatie commented Sep 17, 2018

@liuxuan30 Please review!

@liuxuan30
Copy link
Member

liuxuan30 commented Sep 19, 2018

ooo. Finally free from work overhead? :)

I will try after cleaning the inbox

@jjatie
Copy link
Collaborator Author

jjatie commented Sep 19, 2018

@liuxuan30 Haha, not yet! Just needed a break. I'm still very short handed; it's hard to find iOS devs.

@liuxuan30
Copy link
Member

hahah. my neighbor team is totally gone so I took over their app. And they are using Charts.. so maybe I can allocate more daytime on this :)

@jjatie
Copy link
Collaborator Author

jjatie commented Dec 11, 2018

@liuxuan30 Can you take a look at this soon? (I'll fix the .swift-version after you review)

@liuxuan30
Copy link
Member

liuxuan30 commented Dec 17, 2018

hmm.. is this top priority? I was thinking looking at the line sharp edge and rounded bar this week
I'm busy with a POC last week, but this week should be easier for me.

If this PR is not very hard to review, I think we can finish this PR this week.

@liuxuan30
Copy link
Member

finished the 1st round review. Some questions may seem silly :( a bit rusty for swift

Added TODOs for areas where simple changes can help improve Swift consistency.
MutableCollection
RandomAccessCollection
RangeReplaceableCollection
Refactored use of `ChartData` to use new `Collection` conformances
to take advantage of collection conformance.
Replaced custom algorithms with built-in ones
Made axis renderer implementations feel "Swift-ier"
Also added remove subrange.
@liuxuan30
Copy link
Member

@jjatie please take a look above unresolved sessions. once it's done I think we are good to go

@liuxuan30 liuxuan30 merged commit 5689a1c into ChartsOrg:4.0.0 Jan 4, 2019
@liuxuan30
Copy link
Member

merged. let's go next one

@SergiuCoca
Copy link

Hi @liuxuan30 ,

I'm using the new released version (3.2.2) and it seems that #3798 issue isn't fixed. As I saw the changes were made in this PR. I looked into LineChartRender.swift and I don't have the changes even if I updated the library. Do you know why? Any solution for this?

Thank you!

@jjatie
Copy link
Collaborator Author

jjatie commented Feb 21, 2019

@SergiuCoca This was merged into the 4.0.0 branch

@jjatie jjatie deleted the 4.0/axis-renderer-cleanup branch February 21, 2019 01:01
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.

4 participants