Skip to main content



      Home
Home » Archived » BIRT » Dynamic Markers on the Graph
Dynamic Markers on the Graph [message #255853] Wed, 19 September 2007 17:30 Go to next message
Eclipse UserFriend
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 #255861 is a reply to message #255853] Thu, 20 September 2007 03:39 Go to previous messageGo to next message
Eclipse UserFriend
You will need to use scripting. Look in the chart examples plugin for script
examples.

Thanks,

David

"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?
>
Re: Dynamic Markers on the Graph [message #256813 is a reply to message #255853] Tue, 02 October 2007 16:16 Go to previous message
Eclipse UserFriend
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?
>
Previous Topic:pdf files damaged when viewing
Next Topic:How to add a PDF Stamp on a report?
Goto Forum:
  


Current Time: Sat Jun 07 18:08:41 EDT 2025

Powered by FUDForum. Page generated in 0.06664 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top