-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Extra space to the right of chart #2333
Comments
I think it can be done by using below properties. self.xAxis.spaceMin = 5
self.xAxis.spaceMax = 5 Tried in open class LineChartView: BarLineChartViewBase, LineChartDataProvider
{
internal override func initialize()
{
super.initialize()
renderer = LineChartRenderer(dataProvider: self, animator: _animator, viewPortHandler: _viewPortHandler)
self.xAxis.spaceMin = 5
self.xAxis.spaceMax = 5
}
|
Is there a way to set that without editing the charts codebase? IE editing the LineChartViw class works with self but trying
in the view controller has no affect. I would prefer not to have to keep track of edits to the charts codebase that I have to reimplement when there is an update to the codebase. |
well, |
I see. I usually have all the variables set in a function that is called from inside "viewDidLoad" IE:
It appears that this will not work like "labelPosition" and other variables and it must be set inside the "viewDidLoad()" Why is that? IE:
But this does not work for the combined chart?
|
FYI the spaceMax does not work on the iOS demo either for the combined chart. adding Is there another separate variable that controls this for combined charts? |
Got it thank you. |
I would like to add extra space to the right of the chart, not the margin but in the chart itself.
Here are two screen shots of a program that has a setting for this.
The first is what I get by default in Charts and second is what I would like to get. Only extra space on the right side of the chart.
The text was updated successfully, but these errors were encountered: