Search in sources :

Example 1 with ArcLineData

use of org.xclcharts.chart.ArcLineData in project XCL-Charts by xcltapestry.

the class PlotLegendRender method convertArrayArcLineKey.

private void convertArrayArcLineKey(List<ArcLineData> dataSet) {
    if (null == dataSet)
        return;
    String key = "";
    for (ArcLineData cData : dataSet) {
        key = cData.getKey();
        if (!isDrawKey(key))
            continue;
        if ("" == key)
            continue;
        mLstKey.add(key);
        mLstColor.add(cData.getBarColor());
        PlotDot pDot = new PlotDot();
        pDot.setDotStyle(XEnum.DotStyle.RECT);
        mLstDotStyle.add(pDot);
    }
}
Also used : PlotDot(org.xclcharts.renderer.line.PlotDot) ArcLineData(org.xclcharts.chart.ArcLineData)

Example 2 with ArcLineData

use of org.xclcharts.chart.ArcLineData in project XCL-Charts by xcltapestry.

the class ArcLineChart01View method chartDataSet.

private void chartDataSet() {
    // 设置图表数据源
    chartData.add(new ArcLineData("closed", "29% - closed", (0.29 * 100), Color.rgb(155, 187, 90)));
    chartData.add(new ArcLineData("inspect", "53% - inspect", (0.53 * 100), Color.rgb(191, 79, 75)));
    chartData.add(new ArcLineData("open", "76%", (0.76 * 100), Color.rgb(242, 167, 69)));
    chartData.add(new ArcLineData("workdone", "86%", (0.86 * 100), Color.rgb(60, 173, 213)));
    chartData.add(new ArcLineData("dispute", "36%", (0.36 * 100), Color.rgb(90, 79, 88)));
}
Also used : ArcLineData(org.xclcharts.chart.ArcLineData)

Aggregations

ArcLineData (org.xclcharts.chart.ArcLineData)2 PlotDot (org.xclcharts.renderer.line.PlotDot)1