Dynamic Markers on the Graph [message #255853] |
Wed, 19 September 2007 17:30  |
Eclipse User |
|
|
|
Originally posted by: uswapnil2000.yahoo.co.in
I want to add marker on Y-Axis. The marker value is one of the column
binding value. How can I map marker value to column binding value?
|
|
|
|
Re: Dynamic Markers on the Graph [message #256813 is a reply to message #255853] |
Tue, 02 October 2007 16:16  |
Eclipse User |
|
|
|
Originally posted by: teecup.hotmail.com
I want to do something similar on the x-axis and the following seems to work
in BIRT 2.2 but fails in 2.1.3. I have two data sets, one for the normal x,y
line graph with a date range for the x-axis and the second set are dates an
event happen on.
I'm not sure how to access the 'data set' inside the function? Add
hyperlinks to the markers I create?
function beforeGeneration(gcs, icsc)
{
var dates = new Array();
dates[0] = new CDateTime(2007,6,18);
dates[1] = new CDateTime(2007,7,22);
dates[2] = new CDateTime(2007,7,25);
dates[3] = new CDateTime(2007,8,3);
var chart = icsc.getChartInstance();
var xaxis = chart.getPrimaryBaseAxes()[0];
var new_ml;
for (x in dates) {
new_ml = MarkerLineImpl.create(xaxis,
DateTimeDataElementImpl.create(dates[x]));
new_ml.setLabelAnchor(Anchor.NORTH_WEST_LITERAL);
xaxis.getMarkerLines().add(new_ml);
}
}
"Swacey" <uswapnil2000@yahoo.co.in> wrote in message
news:e77b40bd15a9b7c6ce2f8f9350e5cd88$1@www.eclipse.org...
>I want to add marker on Y-Axis. The marker value is one of the column
>binding value. How can I map marker value to column binding value?
>
|
|
|
Powered by
FUDForum. Page generated in 0.06664 seconds