I am able to add the generator to the renderer.
I am very grateful to you to provide you help.
Search found 5 matches
- Tue Jul 18, 2017 1:57 pm
- Forum: JFreeChart
- Topic: problem in setting different labels on each bar
- Replies: 7
- Views: 7755
- Tue Jul 18, 2017 1:33 pm
- Forum: JFreeChart
- Topic: problem in setting different labels on each bar
- Replies: 7
- Views: 7755
Re: problem in setting different labels on each bar
Thanks alot for the great help.
I stored the extra column in an ArrayList<Double>. I need help in adding label generator to the renderer. (I have BarRenderer.)
I stored the extra column in an ArrayList<Double>. I need help in adding label generator to the renderer. (I have BarRenderer.)
- Tue Jul 18, 2017 8:33 am
- Forum: JFreeChart
- Topic: problem in setting different labels on each bar
- Replies: 7
- Views: 7755
Re: problem in setting different labels on each bar
As of now, I am not reading that column from the excel because I do not know how and where I will set that column value in my data set. As dataset addValue() function only adds 1 Value to specific series. To elaborate, I have added a sample Excel file with bar chart at below URL: http://i67.tinypic....
- Sun Jul 16, 2017 2:19 pm
- Forum: JFreeChart
- Topic: problem in setting different labels on each bar
- Replies: 7
- Views: 7755
Re: problem in setting different labels on each bar
Hi Buddy, Thanks for your reply. I have added my code here. Your pointer might have save me. InputStream chart_file_input = new FileInputStream("barChart1.xls"); HSSFWorkbook my_workbook = new HSSFWorkbook(chart_file_input); HSSFSheet my_sheet = my_workbook.getSheetAt(0); DefaultCategoryDataset my_b...
- Sun Jul 16, 2017 12:28 am
- Forum: JFreeChart
- Topic: problem in setting different labels on each bar
- Replies: 7
- Views: 7755
problem in setting different labels on each bar
I am new in java and Jfree chart API. I have a problem labeling in bar chart to each bar. My aim is: I am reading an excel where I have 3 columns. Column 1: x axis Column 2: Y axis Column 3: on top of each corresponding bar. I am able to draw a bar chart but I am not able to display the label. I mig...