0

大家好,我在设置图表颜色时遇到问题...我将如何设置颜色..请帮助我,谢谢..

XYMultipleSeriesDataset dataset = new XYMultipleSeriesDataset();
    dataset.addSeries(series);

    XYSeriesRenderer renderer = new XYSeriesRenderer();
    rendrer.setColor(Color, WHITE);//There is an error here

    XYMultipleSeriesRenderer mRenderer = new XYMultipleSeriesRenderer();
    mRenderer.addSeriesRenderer(renderer);


    Intent intent = ChartFactory.getLineChartIntent(context, dataset, 
                                                          mRenderer, "Line Graph Title");
    return intent;
4

1 回答 1

0

尝试如下给出 rgb 值

renderer.setColor(Color.rgb(248, 248, 255));
于 2013-09-26T19:32:09.643 回答