Perhaps you also have a good way of meeting this request:
for each point I need the title to be more flexible than just a now currently hard coded legend.
for each point instead I want to be able to specify a title format like
{legend} ({pointLabels}) {xLabel} = {xValue}, {yLabel} = {yValue}
usage as follows:
<ice:outputChart
pointLabelsMethod="${managedBean.pointLabels}"
pointTitleFormat="{legend}
(
{pointLabels}
):
{xLabel}
=
{xValue}
,
{yLabel}
=
{yValue}
"
resulting in a title like:
Label0 (1,2): xaxis = 25.0, yaxis = 50.0
and where this would indicate that at 25,50 coordinate there are two points with the very same coordinates with labels "1" and "2"
and "1" and "2" are derived by calling managedBean.pointLabels method passing in the x and y coordinate for the point.
one way of passing x and y is having managedBean.pointLabels be a map where the first get just sets x value and returns another map where the get of y value sets y and then the final Set of labels is returned from the final get call.
Attached are the customer's source files that implement this functionality. For instance:
<ice:outputChart id="axialOutputChart"
{clientHandler.chartAreaClicked}type="scatterplot"
actionListener="#
"
chartTitle="ScatterPlot"
xaxisTitle="x axis"
yaxisTitle="y axis"
renderOnSubmit="true"
xaxisLabels="-5,3,10,0,-30,50,10,1"
labels="Test1,Test2"
data="0,0,4,120,10,220:16,70,19,70"
width="450" height="300"/>