We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I created a subclass to draw the entry color:
class ColoredLegendEntry: LegendEntry { open var entryColor: NSUIColor? public init(label: String?, entryColor: NSUIColor?,... //...
Override the renderLegend function:
class ColoredChartLegendRender: LegendRenderer { open override func renderLegend(context: CGContext) { //... var entryColor = labelTextColor if let coloredEntry = e as? ColoredLegendEntry { entryColor = coloredEntry .entryColor ?? labelTextColor } //...
I created a class to use this new renderer:
open class ColoredPieChartView: PieChartView { //... }
What am I doing wrong?
The text was updated successfully, but these errors were encountered:
I don't have any issue with:
import Foundation class ColoredChartLegendRender: LegendRenderer { } class MyPieChartView: PieChartView { internal override func initialize() { super.initialize() _legendRenderer = ColoredChartLegendRender(viewPortHandler: _viewPortHandler, legend: _legend) } }
Read your error message and maybe restart your xcode or try to rebuild
Sorry, something went wrong.
No branches or pull requests
I created a subclass to draw the entry color:
Override the renderLegend function:
I created a class to use this new renderer:
What am I doing wrong?
The text was updated successfully, but these errors were encountered: