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 am trying to create an area graph. I subclassed ChartFillFormatter...But getFillLinePosition method is not calling??
getFillLinePosition
public class BottomLineFillFormatter: NSObject, ChartFillFormatter { private let chartView: LineChartView! init(chartViewInit: LineChartView) { chartView = chartViewInit super.init() } public func getFillLinePosition(dataSet dataSet: ILineChartDataSet, dataProvider: LineChartDataProvider) -> CGFloat{ return CGFloat(chartView.leftAxis._axisMaximum) } }
My code to fill the line graph is as:
let set3: LineChartDataSet = LineChartDataSet(yVals: yVals3, label:nil) set3.axisDependency = .Left // Line will correlate with left axis values set3.setColor(UIColor.grayColor().colorWithAlphaComponent(1.0)) set3.lineWidth = 2.0 set3.fillColor = UIColor.grayColor() set3.drawCirclesEnabled = false set3.fillFormatter = BottomLineFillFormatter(chartViewInit: lineChart)
The text was updated successfully, but these errors were encountered:
I just need to set
set2.drawFilledEnabled = true
Sorry, something went wrong.
No branches or pull requests
i am trying to create an area graph. I subclassed ChartFillFormatter...But
getFillLinePosition
method is not calling??My code to fill the line graph is as:
The text was updated successfully, but these errors were encountered: