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)
Demarcation line in a Line chart
pratim
Hi,
I am using BIRT 2.3.2.
I want to have a demarcation line in a Line chart, how to achieve this?
I have a time series plot in a line chart, and i want to put a demarcation line on a specific date time value, to have a clear segregation of values before and after this demarcation line[a vertical parallel line to y axis on a specific x-axis value].
Find more posts tagged with
Comments
pratim
Hi, can any one help me, just to start with?
mwilliams
You just want a vertical line on a specific date time value? That's it? If so, have you looked at marker lines?
pratim
Hi,
I tried the example in the link below,
https://www.birt-exchange.org/org/devshare/designing-birt-reports/511-dynamic-parameter-driven-chart-marker-lines/
But, i want the marker parallel to y-axis. So, i guess i need to use
var chart = icsc.getChartInstance();
var xAxis = chart.getAxes().get(0);
I am using date/time value along x-axis which is formatted as "yy-MM-dd HH:mm:ss".
so, what should be the DataElement Interface in the below line....
top_ml = MarkerLineImpl.create(yAxis, NumberDataElementImpl.create(topValue));
i used, DateTimeDataElementImpl.create(topValue)
top_ml = MarkerLineImpl.create(xAxis, DateTimeDataElementImpl.create(topValue));
Where i set the topValue as, topValue = "11-05-23 00:00:00"; in the script itself.
But when i run the report, i could not see any marker line.
Need more pointers, to solve the issue.
mwilliams
So, the "specific" marker line date is a dynamic value? Not a static date that you can set in your chart editor?
pratim
yes, it's a dynamic value.
mwilliams
Take a look at this example.
pratim
thanks for the reply, i will go through the example and get back to you if i will come across any doubt