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

CandleChart In CombinedChartView not work #3567

Closed
yanglfree opened this issue Jul 18, 2018 · 7 comments
Closed

CandleChart In CombinedChartView not work #3567

yanglfree opened this issue Jul 18, 2018 · 7 comments

Comments

@yanglfree
Copy link

In Objective-C Demo, CandleChart can not work

@liuxuan30
Copy link
Member

I tried on my side, it's working.
image

@sum123
Copy link

sum123 commented Aug 21, 2018

I test my side In Objective-C Demo and swift Demo, CandleChart can not work
I just do this :

func setChartData() {
    let data = CombinedChartData()

// data.lineData = generateLineData()
// data.barData = generateBarData()
// data.bubbleData = generateBubbleData()
// data.scatterData = generateScatterData()
data.candleData = generateCandleData()

    chartView.xAxis.axisMaximum = data.xMax + 0.25
    chartView.data = data
}

why?
@liuxuan30

@sum123
Copy link

sum123 commented Aug 21, 2018

I found the problem. Fixed this place.

@objc open func drawDataSet(context: CGContext, dataSet: ICandleChartDataSet)
{
guard let dataProvider = dataProvider else {
return;
}

    if !(dataProvider is CombinedChartView || dataProvider is CandleStickChartView) {
        return;
    }
  ...
}

@sharks-cha
Copy link

I found the problem. Fixed this place.

@objc open func drawDataSet(context: CGContext, dataSet: ICandleChartDataSet)
{
guard let dataProvider = dataProvider else {
return;
}

    if !(dataProvider is CombinedChartView || dataProvider is CandleStickChartView) {
        return;
    }
  ...
}

Hello, I change according to your prompt, but error, can you provide the original code, thank you very much

@sum123
Copy link

sum123 commented Sep 25, 2018 via email

@JiaLcrown
Copy link

I also met the problem in last release version. When I copied the combinedChart code in iOS swift demo to a new project, all the charts displayed well except the candleChart. I found that the CocoaPods install version is different from the demo one.

@lucasmpaim
Copy link

lucasmpaim commented Nov 12, 2018

+1 I have same error using the last release, rollback to 3.0.3 fix the issue

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

6 participants