Font

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Mahesh

Font

Post by Mahesh » Wed Mar 05, 2003 5:13 pm

I have unicode data, how can I change default font for Series/Legend.
[True Type fonts support unicode data]

Also there seems to be issue with UrlGenerator callback method
"generateURL(CategoryDataset data, int series, int category)"

String s = data.getRowKey(series) (why is s ?????)


Thanks for help in advance, otherwise great product

Mahesh

Mahesh

Re: Font Unicode issue

Post by Mahesh » Wed Mar 05, 2003 9:57 pm

Font Unicode issue

Mahesh

Re: Font

Post by Mahesh » Wed Mar 05, 2003 11:08 pm

looks like it definately is issue with JFreeChart Library somewhere

I used this method to create CategoryDataset

public static CategoryDataset createCategoryDataset( String[] seriesNames, String[] categories,
Number[][] data) {
DefaultCategoryDataset result = new DefaultCategoryDataset();
for (int r = 0; r < data.length; r++) {
String rowKey = seriesNames[r];
for (int c = 0; c < data[r].length; c++) {
String columnKey = categories[c];
result.addValue(data[r][c], rowKey, columnKey);
}
}
return result;
}

when you call
String s = data.getRowKey(series)

data is CategoryDataset return String is "??????"

Does Someone know about this..

Thanks

Locked