Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Dynamic marker on the y axis of a Chart
drmaboule
Hello everyone,
I try to put a dynamic marker on the y axis of a Chart (Gantt) based on the current date.
I can add a static marker, but not a dynamic. Can anyone help me ?
Thanks and regards,
Find more posts tagged with
Comments
mwilliams
Take a look at these devShare posts. They might help.
http://www.birt-exchange.org/org/devshare/designing-birt-reports/276-birt-chart-scripting-dynamic-markers-and-datapoint-colors/
http://www.birt-exchange.org/org/devshare/designing-birt-reports/511-dynamic-parameter-driven-chart-marker-lines/
pricher
Dr. Maboule,
You can use the following script to add a marker line based on a date to a Gantt chart:
importPackage( Packages.org.eclipse.birt.chart.model.component.impl );
importPackage( Packages.org.eclipse.birt.chart.model.data.impl );
importPackage( Packages.org.eclipse.birt.chart.util );
function beforeGeneration( chart, icsc )
{
xAxis = chart.getPrimaryBaseAxes()[0];
yAxis = chart.getPrimaryOrthogonalAxis(xAxis);
markerLine = MarkerLineImpl.create(yAxis, DateTimeDataElementImpl.create(new CDateTime(2005, 3, 1)));
markerLine.getLabel().setVisible(false);
yAxis.getMarkerLines().add(markerLine);
}
Hope this helps,
P.
drmaboule
Thanks a lot mwilliams & pricher.
I've resolved this problem and i've understood how it's works.