KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am trying to display a Line Graph with Time(HH:MM:SS) as X-axis and Number(as Y-Axis). The read data from "Time" column is of the format HH:MM:SS. The way i am populating dataset from which chart is construted is as follows for (Row row : sheet) { Double sar_Val = poiGetCellValue(sar); Double date_val = poiGetCellValue(date); if(sar_Val != null && date_val != null) { series1.add(date_val,sar_Val); } dataset.addSeries(series1); } //poiGetCellValue in the above code returns a double based on the data type Problem is that i have to convert the data under "Time" column which is in format HH:MM:SS to some double value and populate the series1 since add function take only double values. How to display the time in X-Axis once i have converted the value to double Or is there any other method to add to XYseries?
Tags (comma-separated)
Save Edits
Cancel