Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
Dynamically scale SVG graph
Migrateduser
Hi all,
we are using Birt in our application to render reports via Birt API in html format and display it in a Eclipse RCP application. The reports are displayed in browser controls each one placed in a RCP View. The generation of reports is a quite expensive task, so once a report is generated we save the results in a cache and reuse it if someone wants to display the same report (with the same paremeters etc.).
Everythings working fine except the scaling of the diagrams: The HTML output Birt is generating contains the svg diagram in an <embedded> HTML tag and also contains absolute width and height data in pixel although we left the width and height details in the report design blank.
If I change the width and height values in HTML output to 100%, the diagram scales as expected but I did not find a solution to make this settings in report design (maybe i?m just to blind?!?).
The (ugly) result is that I have several views in my Eclipse RCP perspective for which their content does not scale if I change the size of the views. It is not a RCP problem cause the graphs also do not scale in browser (testet with Firefox, Chrome and IE).
Can somebody tell me how I could set the size deetails of the embedded svg to a relative declaration like 100%?
Thx,
Bjarne
PS: I attached the report designfile and the HTML/SVG results.
Find more posts tagged with
Comments
There are no comments yet