2012-08-25 3 views
-1

차트를 만드는 데 JFreechart를 사용하고 있습니다. 내가 원형 차트를 만들 때 원형 차트의 값이 정수 형식으로 표시됩니다. 그러나 백분율로 해당 값이 필요합니다.원형 차트 값을 설정하는 방법 %

My current Output :- 

Service manager (1) 
Service Executive (6) 
Service co-coordinator (3) 

My Expected output :- 


Service manager (10%) 
Service Executive (60%) 
Service co-coordinator (30%) 

샘플 코드 : - dataset.All 데이터

for(int i=0;i<dataset_bydeglist.size();i+=2){ 
         dataset.setValue(dataset_bydeglist.get(i).toString()+" ("+(Integer)dataset_bydeglist.get(i+1)+") ",(Integer)dataset_bydeglist.get(i+1)); 
        } 

추가 값은 내부 ArrayList에 있습니다.

도와주세요.

+0

코드를 게시 하시겠습니까? –

+0

내 질문에 어떤 문제가 있습니까? –

+0

질문이 명확하지 않습니다. 값 또는 출력에 관한 설정입니까? 나머지 코드는 질문과 관련이 있습니까? – Keppil

답변