| Home » Archived » BIRT » Change chart size dynamically
 Goto Forum:| 
| Change chart size dynamically [message #243236] | Tue, 19 June 2007 05:00  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: MCIPRIA1.it.ibm.com 
 This is a multipart message in MIME format.
 --=_alternative 0031789BC12572FF_=
 Content-Type: text/plain; charset="US-ASCII"
 
 Hi,
 I'm working with Birt 2.1.2. I have a report in which I display a chart
 multiple times (it is inside a table group in a table). Each time, the
 chart inherit the dataset from the table, and displays its entries. The
 chart is a flipped bar chart. Is there a way to change dynamically the
 chart size in order to show different dataset sizes?
 
 For example, I have a data set with 2 columns NAME, VALUE, and a table
 grouped by NAME. Consider this case (VALUEs aren't important):
 
 NAME    VALUE
 a       1
 a       12
 a       41
 a       541
 a       61
 a       231
 a       41
 a       541
 a       1
 a       31
 a       1
 a       12
 a       11
 b       25
 
 In this case, my report will display 2 charts, one for "a" with 13 bars,
 and one for "b" with 1 bar. Is there a way to resize the chart in order to
 have small charts for small amounts of bars and higher charts for higher
 number of bars? In my case, the bar number varies from 1 to 200 ca.
 Choosing a static size that allow 200 bars to be displayed clearly, will
 result in awful enormous charts in the case of only one bar.
 Any suggestions?
 Thanks!
 --=_alternative 0031789BC12572FF_=
 Content-Type: text/html; charset="US-ASCII"
 
 
 <br><font size=2 face="sans-serif">Hi,</font>
 <br><font size=2 face="sans-serif">I'm working with Birt 2.1.2. I have
 a report in which I display a chart multiple times (it is inside a table
 group in a table). Each time, the chart inherit the dataset from the table,
 and displays its entries. The chart is a flipped bar chart. Is there a
 way to change dynamically the chart size in order to show different dataset
 sizes?</font>
 <br>
 <br><font size=2 face="sans-serif">For example, I have a data set with
 2 columns NAME, VALUE, and a table grouped by NAME. Consider this case
 (VALUEs aren't important):</font>
 <br>
 <br><font size=2 face="sans-serif">NAME        VALUE</font>
 <br><font size=2 face="sans-serif">a        1</font>
 <br><font size=2 face="sans-serif">a        12</font>
 <br><font size=2 face="sans-serif">a        41</font>
 <br><font size=2 face="sans-serif">a        541</font>
 <br><font size=2 face="sans-serif">a        61</font>
 <br><font size=2 face="sans-serif">a        231</font>
 <br><font size=2 face="sans-serif">a        41</font>
 <br><font size=2 face="sans-serif">a        541</font>
 <br><font size=2 face="sans-serif">a        1</font>
 <br><font size=2 face="sans-serif">a        31</font>
 <br><font size=2 face="sans-serif">a        1</font>
 <br><font size=2 face="sans-serif">a        12</font>
 <br><font size=2 face="sans-serif">a        11</font>
 <br><font size=2 face="sans-serif">b        25</font>
 <br>
 <br><font size=2 face="sans-serif">In this case, my report will display
 2 charts, one for "a" with 13 bars, and one for "b"
 with 1 bar. Is there a way to resize the chart in order to have small charts
 for small amounts of bars and higher charts for higher number of bars?
 In my case, the bar number varies from 1 to 200 ca.  Choosing a static
 size that allow 200 bars to be displayed clearly, will result in awful
 enormous charts in the case of only one bar.</font>
 <br><font size=2 face="sans-serif">Any suggestions?</font>
 <br><font size=2 face="sans-serif">Thanks!</font>
 --=_alternative 0031789BC12572FF_=--
 |  |  |  |  | 
| Re: Change chart size dynamically [message #244004 is a reply to message #243236] | Thu, 21 June 2007 11:50   |  | 
| Eclipse User  |  |  |  |  | This is a multi-part message in MIME format. 
 ------=_NextPart_000_0090_01C7B42C.AA1EBB90
 Content-Type: text/plain;
 charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable
 
 Can you please file an enhancement request in bugzilla. We will provide =
 a way to do this, I am not sure this is currently supported by =
 scripting. If it is, we will post an example there.
 
 Thanks,
 
 David
 
 <MCIPRIA1@it.ibm.com> wrote in message =
 news:f585v2$4k4$1@build.eclipse.org...
 
 Hi,=20
 I'm working with Birt 2.1.2. I have a report in which I display a =
 chart multiple times (it is inside a table group in a table). Each time, =
 the chart inherit the dataset from the table, and displays its entries. =
 The chart is a flipped bar chart. Is there a way to change dynamically =
 the chart size in order to show different dataset sizes?=20
 
 For example, I have a data set with 2 columns NAME, VALUE, and a table =
 grouped by NAME. Consider this case (VALUEs aren't important):=20
 
 NAME        VALUE=20
 a        1=20
 a        12=20
 a        41=20
 a        541=20
 a        61=20
 a        231=20
 a        41=20
 a        541=20
 a        1=20
 a        31=20
 a        1=20
 a        12=20
 a        11=20
 b        25=20
 
 In this case, my report will display 2 charts, one for "a" with 13 =
 bars, and one for "b" with 1 bar. Is there a way to resize the chart in =
 order to have small charts for small amounts of bars and higher charts =
 for higher number of bars? In my case, the bar number varies from 1 to =
 200 ca.  Choosing a static size that allow 200 bars to be displayed =
 clearly, will result in awful enormous charts in the case of only one =
 bar.=20
 Any suggestions?=20
 Thanks!
 ------=_NextPart_000_0090_01C7B42C.AA1EBB90
 Content-Type: text/html;
 charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable
 
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 <HTML><HEAD>
 <META http-equiv=3DContent-Type content=3D"text/html; =
 charset=3Diso-8859-1">
 <META content=3D"MSHTML 6.00.6000.16481" name=3DGENERATOR>
 <STYLE></STYLE>
 </HEAD>
 <BODY bgColor=3D#ffffff>
 <DIV><FONT face=3DArial size=3D2>Can you please file an enhancement =
 request in=20
 bugzilla. We will provide a way to do this, I am not sure this is =
 currently=20
 supported by scripting. If it is, we will post an example =
 there.</FONT></DIV>
 <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
 <DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
 <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
 <DIV><FONT face=3DArial size=3D2>David</FONT></DIV>
 <DIV> </DIV>
 <BLOCKQUOTE=20
 style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
 BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
 <DIV><<A =
 href=3D"mailto:MCIPRIA1@it.ibm.com">MCIPRIA1@it.ibm.com</A>>=20
 wrote in message <A=20
 =
 href=3D"news:f585v2$4k4$1@build.eclipse.org">news:f585v2$4k4$1@build.ecli=
 pse.org</A>...</DIV><BR><FONT=20
 face=3Dsans-serif size=3D2>Hi,</FONT> <BR><FONT face=3Dsans-serif =
 size=3D2>I'm working=20
 with Birt 2.1.2. I have a report in which I display a chart multiple =
 times (it=20
 is inside a table group in a table). Each time, the chart inherit the =
 dataset=20
 from the table, and displays its entries. The chart is a flipped bar =
 chart. Is=20
 there a way to change dynamically the chart size in order to show =
 different=20
 dataset sizes?</FONT> <BR><BR><FONT face=3Dsans-serif size=3D2>For =
 example, I have=20
 a data set with 2 columns NAME, VALUE, and a table grouped by NAME. =
 Consider=20
 this case (VALUEs aren't important):</FONT> <BR><BR><FONT =
 face=3Dsans-serif=20
 size=3D2>NAME        VALUE</FONT> <BR><FONT =
 face=3Dsans-serif=20
 size=3D2>a        1</FONT> <BR><FONT =
 face=3Dsans-serif=20
 size=3D2>a        12</FONT> <BR><FONT =
 face=3Dsans-serif=20
 size=3D2>a        41</FONT> <BR><FONT =
 face=3Dsans-serif=20
 size=3D2>a        541</FONT> <BR><FONT =
 face=3Dsans-serif=20
 size=3D2>a        61</FONT> <BR><FONT =
 face=3Dsans-serif=20
 size=3D2>a        231</FONT> <BR><FONT =
 face=3Dsans-serif=20
 size=3D2>a        41</FONT> <BR><FONT =
 face=3Dsans-serif=20
 size=3D2>a        541</FONT> <BR><FONT =
 face=3Dsans-serif=20
 size=3D2>a        1</FONT> <BR><FONT =
 face=3Dsans-serif=20
 size=3D2>a        31</FONT> <BR><FONT =
 face=3Dsans-serif=20
 size=3D2>a        1</FONT> <BR><FONT =
 face=3Dsans-serif=20
 size=3D2>a        12</FONT> <BR><FONT =
 face=3Dsans-serif=20
 size=3D2>a        11</FONT> <BR><FONT =
 face=3Dsans-serif=20
 size=3D2>b        25</FONT> <BR><BR><FONT =
 face=3Dsans-serif=20
 size=3D2>In this case, my report will display 2 charts, one for "a" =
 with 13=20
 bars, and one for "b" with 1 bar. Is there a way to resize the chart =
 in order=20
 to have small charts for small amounts of bars and higher charts for =
 higher=20
 number of bars? In my case, the bar number varies from 1 to 200 ca.=20
  Choosing a static size that allow 200 bars to be displayed =
 clearly, will=20
 result in awful enormous charts in the case of only one bar.</FONT> =
 <BR><FONT=20
 face=3Dsans-serif size=3D2>Any suggestions?</FONT> <BR><FONT =
 face=3Dsans-serif=20
 size=3D2>Thanks!</FONT></BLOCKQUOTE></BODY></HTML>
 
 ------=_NextPart_000_0090_01C7B42C.AA1EBB90--
 |  |  |  |  | 
| Re: Change chart size dynamically [message #244208 is a reply to message #244004] | Fri, 22 June 2007 04:50  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: MCIPRIA1.it.ibm.com 
 This is a multipart message in MIME format.
 --=_alternative 00308729C1257302_=
 Content-Type: text/plain; charset="US-ASCII"
 
 Submitted enhancement  request 193914
 --=_alternative 00308729C1257302_=
 Content-Type: text/html; charset="US-ASCII"
 
 
 <br><font size=2 face="sans-serif">Submitted enhancement  request
 193914</font>
 --=_alternative 00308729C1257302_=--
 |  |  |  | 
 
 
 Current Time: Fri Oct 31 02:11:16 EDT 2025 
 Powered by FUDForum . Page generated in 0.03357 seconds |