Using BIRT charts

Content outdated

We are in the process of migrating all content to impulse version 2.0.

The Birt chart provider uses the chart implementation of the Eclipse BIRT project

Types and Options

This provider has Bar, Pie, Line and Radar charts. The provider supports the Birt script extension mechanism (see the book "Integrating and Extending BIRT").

Compatible data

The birt chart provider accepts float, integer, events (with enumerations) and struct signals. Struct signals are usually the best choice for birt charts. The member names (of integer and float members) represent the category values. An addtitional "LABEL" member carries the series label.

Signal script to define chart data

Use the following signal script example to prepare chart data using a struct signal.

  // members
  var members  = out.createMembers(7);
  out.createMember(members,0,"A",	IStructSample.STRUCT_TYPE_INTEGER,null,-1);
  out.createMember(members,1,"B",	IStructSample.STRUCT_TYPE_INTEGER,null,-1);
  out.createMember(members,2,"C",	IStructSample.STRUCT_TYPE_INTEGER,null,-1);
  out.createMember(members,3,"D",	IStructSample.STRUCT_TYPE_INTEGER,null,-1);
  out.createMember(members,4,"E",	IStructSample.STRUCT_TYPE_INTEGER,null,-1);
  out.createMember(members,5,"G",	IStructSample.STRUCT_TYPE_INTEGER,null,-1);
  out.createMember(members,6,"Label",	IStructSample.STRUCT_TYPE_TEXT,"LABEL",-1);
  
  // Series 1
  members[0].setIntValue(12);
  members[1].setIntValue(12);
  members[2].setIntValue(12);
  members[3].setIntValue(12);
  members[4].setIntValue(12);
  members[5].setIntValue(12);
  members[6].setStringValue("Series 1"); 
  out.write(0,false,members);

  // Series 2
  members[0].setIntValue(14);
  members[1].setIntValue(15);
  members[2].setIntValue(16);
  members[3].setIntValue(17);
  members[4].setIntValue(18);
  members[5].setIntValue(19);
  members[6].setStringValue("Series 2");
  out.write(1,false,members);
toem

technical software and tooling

Company

Contact Us

This email address is being protected from spambots. You need JavaScript enabled to view it.