Hi all.
I'm using a LineChart and I want to display external information on it (like the R^2) of a regression.
My quesiton is : is it possible to write (display) texte at x,y position in my chart?
Best regards, and have a neci day.
Phil
Displaying external information on chart
-
- Posts: 844
- Joined: Fri Oct 13, 2006 9:29 pm
- Location: Sunnyvale, CA
Re: Displaying external information on chart
Use a XYTextAnnotation.Filoche wrote:My quesiton is : is it possible to write (display) texte at x,y position in my chart?
Richard West
Design Engineer II
Advanced Micro Devices
Sunnyvale, CA
Design Engineer II
Advanced Micro Devices
Sunnyvale, CA
-
- Posts: 844
- Joined: Fri Oct 13, 2006 9:29 pm
- Location: Sunnyvale, CA
Take a look at Title/legend and combined plots. The post is a bit old, but the spirit of it matches your goal. You will need to include the experimental jar to use the XYTitleAnnotation class.
Richard West
Design Engineer II
Advanced Micro Devices
Sunnyvale, CA
Design Engineer II
Advanced Micro Devices
Sunnyvale, CA
-
- Posts: 844
- Joined: Fri Oct 13, 2006 9:29 pm
- Location: Sunnyvale, CA
Take a look at DatasetUtilities.Filoche wrote:Is it possible to get the min and max values for a d ataset?
Create a custom dataset that extends the XYDataset and override the getY and getYValue methods to return super version divided by the maximum. This would effectively render the data as percentage of maximum. I think that is what you are asking about.Filoche wrote:If so I could transpose these value between 0, and 1.
Richard West
Design Engineer II
Advanced Micro Devices
Sunnyvale, CA
Design Engineer II
Advanced Micro Devices
Sunnyvale, CA