BIRT Exchange Forum: Bar Chart depicting ranges of data - BIRT Exchange Forum

Jump to content


 

No Latest Open Poll.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Bar Chart depicting ranges of data What is the best way to implement a Bar Chart depicting ranges? Rate Topic: -----

#1 User is offline   jgisler Icon

  • Junior Member
  • PipPipPip
  • Group: Members
  • Posts: 34
  • Joined: 26-May 09


Posted 16 February 2011 - 11:27 AM

Hello,

Using BIRT 2.6.1

We have a requirement to build a chart of ranged data.

The data set looks like:

Integer studentId
String studentNumber
String studentName
Integer rangeMinimum
Integer rangeMaximum

The required output is attached.

I am looking for any hints on how to build this. I have tried using the Gantt chart type but it looks like this is intended to be used for dates. I also tried using a bar graph but that bars always start at a 0 value.

Any help would be greatly appreciated.

Attached File(s)


0

#2 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12953
  • Joined: 16-May 08


Posted 16 February 2011 - 01:06 PM

Check out the attached chart. You'll need to change the location of the flat file in your dataSource before you can run it. I didn't make a scale to put at the top of the table, but I made the scales on each chart the same, so that you could build a scale. I don't know if this will work for you, but it was worth a shot.

I used a horizontal stacked bar chart and used the min value of the range for the first series (hid this series by making the outline and bar color the background color) and I made the max - min the second series value to get the bar that you see that represents the range.

Hope this helps. Let me know if you have questions.

Attached File(s)


Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

#3 User is offline   jgisler Icon

  • Junior Member
  • PipPipPip
  • Group: Members
  • Posts: 34
  • Joined: 26-May 09


Posted 16 February 2011 - 02:45 PM

Thanks for the quick response!

The requirement is that the grid lines appear every 500 points from 0 to 2000. Is there a way to get the grid lines to appear on the chart when the hidden bar is over them?

Is there a way perhaps via an event handler to create a grid for the ID, NAME, RANGE columns?

As is, getting all those grid lines to line up correctly is going to be a nightmare :/
0

#4 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12953
  • Joined: 16-May 08


Posted 17 February 2011 - 05:38 AM

Here's the best I have so far. I separated the chart into its own cell of a grid NEXT TO the table with the ID's in it. They were sized to line up though, so this may not work for you.

Attached File(s)


Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

#5 User is offline   jgisler Icon

  • Junior Member
  • PipPipPip
  • Group: Members
  • Posts: 34
  • Joined: 26-May 09


Posted 17 February 2011 - 11:06 AM

Great! Thanks for your help.
0

#6 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12953
  • Joined: 16-May 08


Posted 17 February 2011 - 12:18 PM

Not a problem. Let me know if you have any other questions on this.
Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

#7 User is offline   gracebirt Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 17-June 12


Posted 12 July 2012 - 05:51 AM

still the vertical grid lines are cut. Any solutions. Thanks a lot.
0

#8 User is offline   gracebirt Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 17-June 12


Posted 12 July 2012 - 07:45 AM

Hello,

The grid lines(vertical) are still dashed when the stacked series was hidden. Any solutions. Thanks a lot.
0

#9 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12953
  • Joined: 16-May 08


Posted 16 July 2012 - 05:05 PM

With this solution, it will always look lighter where the translucent bars pass. As far as the tiny breaks in the line, if you make the outline translucent, those will be filled in.
Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

#10 User is offline   zaghry Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 05-July 12


Posted 06 August 2012 - 03:12 AM

View Postmwilliams, on 16 July 2012 - 06:05 PM, said:

With this solution, it will always look lighter where the translucent bars pass. As far as the tiny breaks in the line, if you make the outline translucent, those will be filled in.

Hello,

In the firt gragh included within the table cell,is there a way to have the vertical grid lines continued and drawn across all table horizontal lines that separate each table row ? The goal is keep everything aligned with the table detail rows and have these graph vertical grid lines show also across the whole table height size. Thanks a lot.
0

#11 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12953
  • Joined: 16-May 08


Posted 09 August 2012 - 05:59 AM

With the use of separate charts, like that, I don't think you'll be able to connect the lines across rows.
Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users