2013-11-12 4 views
0

Android 용 TeeChart JAVA를 사용하여 윤곽을 만듭니다.TeeChart 등고선 색

Series series = Series.createNewSeries(mChart.getChart(), Contour.class, null); 
mContour = (Contour) series; 

mContour.setAutomaticLevels(true); 
mContour.setNumLevels(15); 

파란색에서 흰색으로의 색상 변환은 기본적으로 등고선을 그리기 위해 설정됩니다. 나는 그것을 빨간색에서 녹색으로 바꿔야합니다. 따라서 가장 큰 값은 빨간색이고 가장 작은 값은 녹색입니다. This is what happens by default

답변

1

당신은 예를 들어, ColorRange 설정을 변경해야합니다 :

tChart1.getAspect().setView3D(false); 

Contour series1 = new Contour(this.tChart1.getChart()); 

series1.fillSampleValues(); 

series1.setUseColorRange(true); 
series1.setUsePalette(false); 
series1.setStartColor(Color.GREEN); 
series1.setEndColor(Color.RED); 
series1.setMidColor(Color.TRANSPARENT); 

이 기본적으로 무슨이다