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

Subclassing of LegendRenderer didn't take any effect #3149

Merged
merged 1 commit into from
Jan 8, 2018

Conversation

l-lemesev
Copy link
Contributor

I was trying to subclass the LegendRenderer for a custom pie chart legend, but swapping the legendRenderer property didn't take any effect because the internal var was used instead of the open one.

@codecov-io
Copy link

codecov-io commented Jan 3, 2018

Codecov Report

Merging #3149 into master will increase coverage by 0.01%.
The diff coverage is 20%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3149      +/-   ##
==========================================
+ Coverage   23.07%   23.09%   +0.01%     
==========================================
  Files         115      115              
  Lines       15469    15469              
  Branches      271      271              
==========================================
+ Hits         3570     3573       +3     
+ Misses      11863    11860       -3     
  Partials       36       36
Impacted Files Coverage Δ
Source/Charts/Charts/PieRadarChartViewBase.swift 0% <0%> (ø) ⬆️
Source/Charts/Charts/RadarChartView.swift 0% <0%> (ø) ⬆️
Source/Charts/Charts/PieChartView.swift 0% <0%> (ø) ⬆️
Source/Charts/Charts/BarLineChartViewBase.swift 22.56% <100%> (ø) ⬆️
Source/Charts/Charts/ChartViewBase.swift 22.69% <0%> (+0.55%) ⬆️

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 0ced631...fd7f46f. Read the comment docs.

@liuxuan30
Copy link
Member

@jjatie I don't remember if this will be conflict with 4.0 refactoring? Or we can close this if it'x fixed in 4.0

@jjatie
Copy link
Collaborator

jjatie commented Jan 8, 2018

It won't be a conflict. It is fixed in 4.0 (by accident), but since this is a bug fix it should also go in master.

@liuxuan30
Copy link
Member

ok.

@liuxuan30 liuxuan30 merged commit b2a3719 into ChartsOrg:master Jan 8, 2018
philipengberg pushed a commit to tonsser/Charts that referenced this pull request Jan 19, 2018
FreddyZeng added a commit to FreddyZeng/Charts that referenced this pull request Jan 20, 2018
* 'master' of https://github.com/danielgindi/Charts: (34 commits)
  Fixed X-Axis Labels Not Showing (ChartsOrg#3154) (ChartsOrg#3174)
  fix programatical unhighlighting for BarCharView (ChartsOrg#3159)
  Give the users customizable axis label limits (Fixes ChartsOrg#2085) (ChartsOrg#2894)
  bump pod version
  chart views now use open legend renderer property instead of internal one (ChartsOrg#3149)
  Fix axis label disappear when zooming in deep enough (ChartsOrg#3132)
  added DataApproximator+N extension (ChartsOrg#2848)
  Minor cleanup to Highlighter types (ChartsOrg#3003)
  Refactored ChartUtils method into CGPoint extension (ChartsOrg#3087)
  Update ViewPortHandler.swift (ChartsOrg#3143)
  add option to build demo projects unit tests on iOS (ChartsOrg#3121)
  Replaced relevant `ChartUtils` methods with `Double` extensions (ChartsOrg#2994)
  Update 4.0.0 with master (ChartsOrg#3135)
  Removed redundant ivars in BarLineChartViewBase (ChartsOrg#3043)
  fix ChartsOrg#1830. credit from ChartsOrg#2049 (ChartsOrg#2874)
  Makes ChartsDemo compiling again (ChartsOrg#3117)
  Fixed using wrong axis (Issue ChartsOrg#2257)
  Removed methods and properties deprecated in 1.0 (ChartsOrg#2996)
  for ChartsOrg#3061 revert animationUpdate() and animationEnd() not trigger crash if subclass does nothing
  The backing var is not necessary. (ChartsOrg#3000)
  ...

# Conflicts:
#	Source/Charts/Data/Implementations/Standard/LineChartDataSet.swift
#	Source/Charts/Highlight/BarHighlighter.swift
#	Source/Charts/Renderers/BarChartRenderer.swift
kalmurzayev pushed a commit to kalmurzayev/Charts that referenced this pull request Feb 26, 2018
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