Hi DG and all,
Is there any function to print a label at a specified location ? Say, I need to print "A" at x=1, y=20 point in the chart.
Thanks
Mudit
Printing labels at specified location ?
Re: Printing labels at specified location ?
Hi Mudit,
This has been discussed on occasions, but nothing has been developed. I think it would be fairly simple for the CategoryPlot and XYPlot classes to maintain a list of chart annotations. On the category plot, you could peg each annotation to a (category, value) location, and on the XYPlot you could use an x,y coordinate. Strings would be the easiest to add, but it could be generalised for shapes (arrows, lines etc), images, or whatever.
Anyone want to try writing something?
Regards,
DG
This has been discussed on occasions, but nothing has been developed. I think it would be fairly simple for the CategoryPlot and XYPlot classes to maintain a list of chart annotations. On the category plot, you could peg each annotation to a (category, value) location, and on the XYPlot you could use an x,y coordinate. Strings would be the easiest to add, but it could be generalised for shapes (arrows, lines etc), images, or whatever.
Anyone want to try writing something?
Regards,
DG
Re: Printing labels at specified location ?
David,
I quickly extended HighLowRenderer to try something out. I printed a "1" or "0" below the low of the bar depending upon if the close was higher than open. So, I know that it can be done by extending/implementing a new renderer and a dataset which stores (label, x, y) information.
Thanks
Mudit
I quickly extended HighLowRenderer to try something out. I printed a "1" or "0" below the low of the bar depending upon if the close was higher than open. So, I know that it can be done by extending/implementing a new renderer and a dataset which stores (label, x, y) information.
Thanks
Mudit