Dear Dave and all,
This is the code i have used for creating chart by using dataset.
private CategoryDataset createDataset() {
// row keys...
final String series1 = "First";
final String series2 = "Second";
final String series3 = "Third";
// column keys...
final String category1 = "Category 1";
final String category2 = "Category 2";
final String category3 = "Category 3";
final String category4 = "Category 4";
final String category5 = "Category 5";
// create the dataset...
final DefaultCategoryDataset dataset = new DefaultCategoryDataset();
dataset.addValue(1.0, series1, category1);
dataset.addValue(4.0, series1, category2);
dataset.addValue(3.0, series1, category3);
dataset.addValue(5.0, series1, category4);
dataset.addValue(5.0, series1, category5);
dataset.addValue(5.0, series2, category1);
dataset.addValue(7.0, series2, category2);
dataset.addValue(6.0, series2, category3);
dataset.addValue(8.0, series2, category4);
dataset.addValue(4.0, series2, category5);
dataset.addValue(4.0, series3, category1);
dataset.addValue(3.0, series3, category2);
dataset.addValue(2.0, series3, category3);
dataset.addValue(3.0, series3, category4);
dataset.addValue(6.0, series3, category5);
return dataset;
}
I want to change the row keys size, font type appearing in the chart below mentioning which line for first,second,third with their corresponding colors.They are not visible correctly.How can i change the row keys which i bolded above.
hint: they are appearing in the box indicating the color which line for first,second,third.
Awaiting for ur reply
Regards,
Vairamuthu M
[/code]
How to change the row keys size,font type in the line chart?
-
- Posts: 9
- Joined: Tue Jul 11, 2006 8:10 am
- Location: Delhi
- Contact: