Search in sources :

Example 16 with CustomLineData

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

the class BarChart07View method chartDesireLines.

/**
 * 期望线/分界线
 */
private void chartDesireLines() {
    mCustomLineDataset.add(new CustomLineData("适中", 18.5d, Color.rgb(77, 184, 73), 3));
    mCustomLineDataset.add(new CustomLineData("超重", 24d, Color.rgb(252, 210, 9), 4));
    mCustomLineDataset.add(new CustomLineData("偏胖", 27.9d, Color.rgb(171, 42, 96), 5));
    mCustomLineDataset.add(new CustomLineData("肥胖", 30d, Color.RED, 6));
}
Also used : CustomLineData(org.xclcharts.chart.CustomLineData)

Aggregations

CustomLineData (org.xclcharts.chart.CustomLineData)16 DecimalFormat (java.text.DecimalFormat)2 IFormatterDoubleCallBack (org.xclcharts.common.IFormatterDoubleCallBack)2 ArrayList (java.util.ArrayList)1 IFormatterTextCallBack (org.xclcharts.common.IFormatterTextCallBack)1 AnchorDataPoint (org.xclcharts.renderer.info.AnchorDataPoint)1