Android 앱에서 차트 엔진을 사용하여 선형 차트를 그리려는 시도 중입니다. 그래프는 몇 초마다 자동 새로 고침됩니다. 문제는 다음과 같습니다. 플롯 할 데이터가 없으면 축이 보이지 않습니다. 플롯 할 것이 없다고해도 축을 나타나게하려면 어떻게해야합니까? 친절히 도와주세요.android achartengine : 플롯 데이터가 없어도 축을 표시합니다.
private XYMultipleSeriesDataset graphDataset = null;
private XYMultipleSeriesRenderer graphRenderer = null;
private GraphicalView graphView;
.....
.....
this.graphDataset = new XYMultipleSeriesDataset();
this.graphRenderer = new XYMultipleSeriesRenderer();
this.graphRenderer.setXLabels(0);
...
/// other initialization code, like labels & fonts
...
// then i add the data to the series
XYSeries series = new XYSeries("Simple graph");
for (int i=0; i<valueArray.size();i++) {
series.add(valueArray.get(i), yValue.get(i));
}
this.graphDataset.addSeries(series);
....
// then I do renderer initialization
XYSeriesRenderer xyRenderer = this.setChartLineProperties(index);
...
// then finally initializing the graphview
this.graphView = ChartFactory.getLineChartView(this, this.graphDataset,
this.graphRenderer);
현재 진행중인 작업을 보여줄 수 있습니까? – keshav