[英]How to draw graphics or custom designed charts in BIRT reports?
I am trying to generate a report based on some data from a XML file. 我试图根据XML文件中的一些数据生成报告。 Basically, the first page of the report contains some static text, a logo, some dynamic text and data and two charts.
基本上,报告的第一页包含一些静态文本,一个徽标,一些动态文本和数据以及两个图表。 and the next pages should contain some text and a chart next to it.
并且下一页应包含一些文本和旁边的图表。 I have a very big issue here.
我这里有一个很大的问题。 The charts that BIRT provides are not suitable for my report so I thought maybe I can produce some charts(with an external app) based on the data from my xml file, saving the charts into files and eventually, dynamically load those files into my report.
BIRT提供的图表不适合我的报告,所以我想也许我可以根据我的xml文件中的数据生成一些图表(使用外部应用程序),将图表保存到文件中,最后将这些文件动态加载到我的报告中。 This is very easy for the charts on the first page.
这对于第一页上的图表非常容易。 However, the next pages need to have their own charts and I couldn't find a proper way to include the corresponsing images into the next pages.
但是,接下来的页面需要有自己的图表,我找不到合适的方法将相应的图像包含在下一页中。 So here are my questions:
所以这是我的问题:
You can create custom designed charts using D3.js or Flash and add page breaks where you need them in the BIRT Designer 4.x. 您可以使用D3.js或Flash创建自定义设计的图表,并在BIRT Designer 4.x中的所需位置添加分页符。 There are online tutorials for using Flash within a BIRT report.
有一个在BIRT报告中使用Flash的在线教程。
If you create your own charts outside of BIRT, then you could import them as images using the image gadget and a URI to your images. 如果您在BIRT之外创建自己的图表,则可以使用图像小工具和图像的URI将它们作为图像导入。
If you want to use D3.js, 如果你想使用D3.js,
If you move to the commercial BIRT Designer Professional, there are included Flash objects and you also get the highcharts library of HTML5 charts that you can edit with JavaScript using the highcharts.org API. 如果您转移到商业BIRT Designer Professional,则包含Flash对象,您还可以获得HTML5图表的高级图表库,您可以使用highcharts.org API使用JavaScript编辑这些图表。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.