set1.setShadowWidth(0.7f); set1.setDecreasingColor(Color.RED); set1.setDecreasingPaintStyle(Paint.Style.FILL); set1.setIncreasingColor(Color.rgb(122, 242, 84)); set1.setIncreasingPaintStyle(Paint.Style.STROKE);
set1.setShadowWidth(0.7f); set1.setDecreasingColor(Color.RED); set1.setDecreasingPaintStyle(Paint.Style.FILL); set1.setIncreasingColor(Color.rgb(122, 242, 84)); set1.setIncreasingPaintStyle(Paint.Style.STROKE);
private CandleDataSet setBOLLCandle(ArrayList<CandleEntry> candleEntries) { CandleDataSet candleDataSet = new CandleDataSet(candleEntries, "KLine"); candleDataSet.setDrawHorizontalHighlightIndicator(false); candleDataSet.setHighlightEnabled(landscape); candleDataSet.setHighLightColor(ContextCompat.getColor(mContext, R.color.highLight_Color)); candleDataSet.setAxisDependency(YAxis.AxisDependency.LEFT); candleDataSet.setDecreasingColor(ContextCompat.getColor(mContext, R.color.down_color)); candleDataSet.setDecreasingPaintStyle(Paint.Style.FILL); candleDataSet.setIncreasingColor(ContextCompat.getColor(mContext, R.color.up_color)); candleDataSet.setIncreasingPaintStyle(Paint.Style.FILL); candleDataSet.setNeutralColor(ContextCompat.getColor(mContext, R.color.equal_color)); candleDataSet.setDrawValues(false); candleDataSet.setShowCandleBar(false); return candleDataSet; }
private CandleDataSet setACandle(ArrayList<CandleEntry> candleEntries) { CandleDataSet candleDataSet = new CandleDataSet(candleEntries, "KLine"); candleDataSet.setDrawHorizontalHighlightIndicator(landscape); candleDataSet.setHighlightEnabled(landscape); candleDataSet.setHighLightColor(ContextCompat.getColor(mContext, R.color.highLight_Color)); candleDataSet.setAxisDependency(YAxis.AxisDependency.LEFT); candleDataSet.setDecreasingColor(ContextCompat.getColor(mContext, R.color.down_color)); candleDataSet.setDecreasingPaintStyle(Paint.Style.FILL); candleDataSet.setIncreasingColor(ContextCompat.getColor(mContext, R.color.up_color)); candleDataSet.setIncreasingPaintStyle(Paint.Style.FILL); candleDataSet.setNeutralColor(ContextCompat.getColor(mContext, R.color.equal_color)); candleDataSet.setShadowColorSameAsCandle(true); candleDataSet.setValueTextSize(10); candleDataSet.setDrawValues(true); return candleDataSet; }