We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Here is code :-
func setChart(_ lineChartView: LineChartView, dataPoints: [String], values: [Double]) { let graphDataList = GraphDataWeekly.getGraphDataList() if graphDataList?.count == 0 { return } var count = 0 var dataEntries: [ChartDataEntry] = [] var xAxisDataPoints = [Any]() for graphData in graphDataList! { let dataEntry = ChartDataEntry(x: Double(count), y: graphData.kwh! ) dataEntries.append(dataEntry) xAxisDataPoints.append(DataPointFormatter.javaUtilDateFromDateString(graphData.createdOn!)) count += 1 }
But y-axis data coming in console in double value,
Then finally, how to get y-axis values "int" to "Double" ?
The text was updated successfully, but these errors were encountered:
It's Double(Int), seems a CS lesson 101 to learn for you..
Sorry, something went wrong.
No branches or pull requests
Here is code :-
But y-axis data coming in console in double value,
Then finally, how to get y-axis values "int" to "Double" ?
The text was updated successfully, but these errors were encountered: