Using superscript char in LineChart label

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Filoche
Posts: 26
Joined: Sat Jul 28, 2007 7:23 pm

Using superscript char in LineChart label

Post by Filoche » Wed Jan 09, 2008 5:28 pm

Hi all.

I'm trying to place a char as superscript in a label (LineChart). Is is possible?

Tx for any suggestions.

Filoche
Posts: 26
Joined: Sat Jul 28, 2007 7:23 pm

Post by Filoche » Mon Jan 14, 2008 10:08 pm

Anyone got a suggestion?

Best regards,
Phil

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Tue Jan 15, 2008 11:34 am

There probably isn't a way to do it without modifying JFreeChart (and using AttributedString, maybe). Which label do you want to change - axis label, tick label, some other label?
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Filoche
Posts: 26
Joined: Sat Jul 28, 2007 7:23 pm

Post by Filoche » Thu Jan 24, 2008 9:07 pm

david.gilbert wrote:There probably isn't a way to do it without modifying JFreeChart (and using AttributedString, maybe). Which label do you want to change - axis label, tick label, some other label?
Hi and sorry for my late response. I was out of town for couple days.

In fact I would like to change series label caus my data are often something like ug*L^1, where ^1 is the superscript expression.

I'll check if I could not implement it by myself. If you have any other suggestion please share it :)

Best regards and have a nice day,
Phil

Locked