You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to create a chart for stocks price and volume. So I chooses combinedChartView. I would like to show date in xAxis. I tried it with charts-swift demo code.
What did you expect to happen?
My expectation is to show price value as LineChart and Volume value as Bar chart like below mentioned Image.
What happened instead?
But when i tried the demo chart using my values, I got bar chart alone instead of combine the line chart.
And also am passing only 5 values. But chart shows 7 values, Jun 9 and Jun 10 is also plotting with no bar(I don't pass Jun 9 and Jun 10).
for i in 0 ..< dateArr.count {
let date = dateFormatter.date(from: dateArr[i])
let yValue1: Double = Double(priceArr[i])
let yValue2: Double = Double(volumeArr[i])
let dataPoints = DataPointsValue(_xDate: i, _value1: yValue1, _value2: yValue2)
chartData.append(dataPoints)
}
What did you do?
I would like to create a chart for stocks price and volume. So I chooses combinedChartView. I would like to show date in xAxis. I tried it with charts-swift demo code.
What did you expect to happen?
My expectation is to show price value as LineChart and Volume value as Bar chart like below mentioned Image.
What happened instead?
But when i tried the demo chart using my values, I got bar chart alone instead of combine the line chart.
And also am passing only 5 values. But chart shows 7 values, Jun 9 and Jun 10 is also plotting with no bar(I don't pass Jun 9 and Jun 10).
Herewith I attached my demo project file:
CombinedChartViewController.swift.zip
Charts Environment
Charts version/Branch/Commit Number: 3.1.1
Xcode version: 9.2
Swift version: 3.2
Platform(s) running Charts: iOS
macOS version running Xcode: 10.13.1
Please help me to achieve this.
The text was updated successfully, but these errors were encountered: