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

Bug (?) in CandleStickChartRenderer when showing empty dataset among multiple datasets #320

Closed
krahabb opened this issue Aug 25, 2015 · 0 comments

Comments

@krahabb
Copy link

krahabb commented Aug 25, 2015

When adding multiple datasets to a candlestick chart if one of these is empty the renderer crashes looking for data into the empty dataset. I've patched my version with this check into 'CandleStickChartRenderer.swift' around line 48:

if (set.isVisible && (set.entryCount != 0))

substitutes
if (set.isVisible)

also (I haven't checked because I have labels disabled in my use case)

around line 200:

if (!dataSet.isDrawValuesEnabled || (dataSet.entryCount == 0))

substitutes
if (!dataSet.isDrawValuesEnabled)

I am using candlestick inside a combinedchart but I guess the bug appears by itself in the renderer even when the candlstickchart is used alone (not tested though)

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

No branches or pull requests

1 participant