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)
How to use .chart file to display chart on webpage?
Allen2009
Hi everybody,
I'm new to BIRT, thanks a lot for so many tutorials here.
I want to use a .chart file to show my Chart(created by Chart Engine API) on jsp.
Could anyone give me an example?
By the way , how to create a .chart file?
to show a chart on webpage, we can create a png file and save it, then show the chart by using <img src= "imagename.png"/>(example :standalonechart)
or we can use .chart file (unknown how).
Is it possible to show a chart on webpage by using variable in Backingbean?
like:
in Bean:
Chart myChart = createLineChart();
OR
Image myChart = new Image(Display.getCurrent(), size.width,size.height);
gc = new GC(myChart)
...
gr.render(render,state);
(from ChartCanvas.java by com.ibm.examples.chart)
then:
session.setAttribute("chart", myChart);
in jsp using some Tags from BIRT:
<% Chart myChart = session.getAttribute("chart"); %>
<chart: someTag -- show myChart here-- />
any help please.
Thanks in advance !!
Liang
Find more posts tagged with
Comments
There are no comments yet