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

[Question] Scatter Chart && Bubble Chart: How to show out whole radius instead of hiding half radius of first data entry? #1879

Closed
inix opened this issue Nov 24, 2016 · 5 comments · Fixed by #1891

Comments

@inix
Copy link

inix commented Nov 24, 2016

I want to show out whole radius of first data instead of hiding half radius, I have check xAxis.xOffset,
chartView.extraLeftOffset,but it do not work.

Can anyone help me?

Xcode: v8.1
iOS: v9.2.1
Charts: v3.0.1

Picture:
d579a288-dd29-4d9b-a653-c17d8300b33b

Thanks

@liuxuan30
Copy link
Member

try:#1891

@inix
Copy link
Author

inix commented Nov 29, 2016

@liuxuan30 Thanks,I will check it.

@inix
Copy link
Author

inix commented Nov 30, 2016

@liuxuan30 hi,I try your patch

xAxis.spaceMin = 0.5
xAxis.spaceMax = 0.5

in combined chart, CombinedChartView.swift

    open override func initialize()
    {
        super.initialize()
        
        self.highlighter = CombinedHighlighter(chart: self, barDataProvider: self)
        
        // Old default behaviour
        self.highlightFullBarEnabled = true
        
        _fillFormatter = DefaultFillFormatter()
        
        renderer = CombinedChartRenderer(chart: self, animator: _animator, viewPortHandler: _viewPortHandler)
		
		xAxis.spaceMin = 0.5
		xAxis.spaceMax = 0.5
    }

images:
OK:
img_0314

Not OK:
img_0315

Last item is OK,but the first item in graph still cut by half.
Can you help check it?
Thanks

@liuxuan30
Copy link
Member

you are posting combined chart while you are asking for scatter chart. It's totally different.
For combined chart, check #1717.

@inix
Copy link
Author

inix commented Dec 6, 2016

OK,I will check it. Thx

@inix inix closed this as completed Dec 6, 2016
liuxuan30 added a commit that referenced this issue Jun 5, 2017
Fix #1879. Similar cut in half issue in scatter chart like others
PeterSrost pushed a commit to sokol8/Charts that referenced this issue Oct 31, 2018
Fix ChartsOrg#1879. Similar cut in half issue in scatter chart like others
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 a pull request may close this issue.

2 participants