Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » birt chart: axis limitations
birt chart: axis limitations [message #519900] Wed, 10 March 2010 13:01 Go to next message
Eclipse UserFriend
Originally posted by: georg.siegert.cpb-software.com

Hello,

I use birt for a Line-Chart.
The x-Axis gets Date as an input type.
The request is to show on the x-Axis the label of the first and the last
date. And in between the other dates (in any granulation) are visible.

My problem are these two dates.
When I define the type of the x-Axis as a text-Field, the first and the last
labels are values within the time-serie.
When I use the type as a date, the first and the last labels are values
outside the time-serie.

How can I force the first and last values to be shown on my x-Axis?

Thanks in advance,
Georg
Re: birt chart: axis limitations [message #520051 is a reply to message #519900] Wed, 10 March 2010 23:58 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Georg,

What version of BIRT are you using?
Can you recreate a report using the sample db that shows the problem and
post?

Jason

Georg Siegert wrote:
> Hello,
>
> I use birt for a Line-Chart.
> The x-Axis gets Date as an input type.
> The request is to show on the x-Axis the label of the first and the last
> date. And in between the other dates (in any granulation) are visible.
>
> My problem are these two dates.
> When I define the type of the x-Axis as a text-Field, the first and the last
> labels are values within the time-serie.
> When I use the type as a date, the first and the last labels are values
> outside the time-serie.
>
> How can I force the first and last values to be shown on my x-Axis?
>
> Thanks in advance,
> Georg
>
>
Re: birt chart: axis limitations [message #520141 is a reply to message #520051] Thu, 11 March 2010 09:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: georg.siegert.cpb-software.com

I user birt 2.5.1.
My chart is embedded into a Java Rich Client.

In my attachment you can see the chart and the corresponding data in the
table.
The input type is text (using the type: AxisType.TEXT_LITERAL).
In the result the last value on the axis is before the last value in the
table,
but it has to be the same.

When I resize the window, the chart repaints as it has to be.

I use the class org.eclipse.birt.chart.model.Chart and instanciate with
ChartWithAxesImpl.create()

Georg







"Jason Weathersby" <jasonweathersby@windstream.net> schrieb im Newsbeitrag
news:hn9bj3$ask$1@build.eclipse.org...
> Georg,
>
> What version of BIRT are you using?
> Can you recreate a report using the sample db that shows the problem and
> post?
>
> Jason
>
> Georg Siegert wrote:
>> Hello,
>>
>> I use birt for a Line-Chart.
>> The x-Axis gets Date as an input type.
>> The request is to show on the x-Axis the label of the first and the last
>> date. And in between the other dates (in any granulation) are visible.
>>
>> My problem are these two dates.
>> When I define the type of the x-Axis as a text-Field, the first and the
>> last
>> labels are values within the time-serie.
>> When I use the type as a date, the first and the last labels are values
>> outside the time-serie.
>>
>> How can I force the first and last values to be shown on my x-Axis?
>>
>> Thanks in advance,
>> Georg
>>
>>


Re: birt chart: axis limitations [message #520288 is a reply to message #520141] Thu, 11 March 2010 20:04 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Georg,

What happens when use a date type axis? Are you setting the scale or is
it automatic?

Jason


Georg Siegert wrote:
> I user birt 2.5.1.
> My chart is embedded into a Java Rich Client.
>
> In my attachment you can see the chart and the corresponding data in the
> table.
> The input type is text (using the type: AxisType.TEXT_LITERAL).
> In the result the last value on the axis is before the last value in the
> table,
> but it has to be the same.
>
> When I resize the window, the chart repaints as it has to be.
>
> I use the class org.eclipse.birt.chart.model.Chart and instanciate with
> ChartWithAxesImpl.create()
>
> Georg
>
>
>
>
>
>
>
> "Jason Weathersby" <jasonweathersby@windstream.net> schrieb im Newsbeitrag
> news:hn9bj3$ask$1@build.eclipse.org...
>> Georg,
>>
>> What version of BIRT are you using?
>> Can you recreate a report using the sample db that shows the problem and
>> post?
>>
>> Jason
>>
>> Georg Siegert wrote:
>>> Hello,
>>>
>>> I use birt for a Line-Chart.
>>> The x-Axis gets Date as an input type.
>>> The request is to show on the x-Axis the label of the first and the last
>>> date. And in between the other dates (in any granulation) are visible.
>>>
>>> My problem are these two dates.
>>> When I define the type of the x-Axis as a text-Field, the first and the
>>> last
>>> labels are values within the time-serie.
>>> When I use the type as a date, the first and the last labels are values
>>> outside the time-serie.
>>>
>>> How can I force the first and last values to be shown on my x-Axis?
>>>
>>> Thanks in advance,
>>> Georg
>>>
>>>
>
>
Re: birt chart: axis limitations [message #520399 is a reply to message #520288] Fri, 12 March 2010 04:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: georg.siegert.cpb-software.com

Jason,

On the attachment I send you now, I use the type date.
In this case the last value on the axis is after the last value of the
table, but it has to be the same.

I didn't set the the scale.
(Just the yAxis is able to reacts on a scale value - The report designer
works the same)
On the xAxis I can set the Intervall, but in that case I just change the
quantity
and not the extreme values.

Georg


"Jason Weathersby" <jasonweathersby@windstream.net> schrieb im Newsbeitrag
news:hnbi92$4i6$1@build.eclipse.org...
> Georg,
>
> What happens when use a date type axis? Are you setting the scale or is
> it automatic?
>
> Jason
>
>
> Georg Siegert wrote:
>> I user birt 2.5.1.
>> My chart is embedded into a Java Rich Client.
>>
>> In my attachment you can see the chart and the corresponding data in the
>> table.
>> The input type is text (using the type: AxisType.TEXT_LITERAL).
>> In the result the last value on the axis is before the last value in the
>> table,
>> but it has to be the same.
>>
>> When I resize the window, the chart repaints as it has to be.
>>
>> I use the class org.eclipse.birt.chart.model.Chart and instanciate with
>> ChartWithAxesImpl.create()
>>
>> Georg
>>
>>
>>
>>
>>
>>
>>
>> "Jason Weathersby" <jasonweathersby@windstream.net> schrieb im
>> Newsbeitrag
>> news:hn9bj3$ask$1@build.eclipse.org...
>>> Georg,
>>>
>>> What version of BIRT are you using?
>>> Can you recreate a report using the sample db that shows the problem and
>>> post?
>>>
>>> Jason
>>>
>>> Georg Siegert wrote:
>>>> Hello,
>>>>
>>>> I use birt for a Line-Chart.
>>>> The x-Axis gets Date as an input type.
>>>> The request is to show on the x-Axis the label of the first and the
>>>> last
>>>> date. And in between the other dates (in any granulation) are visible.
>>>>
>>>> My problem are these two dates.
>>>> When I define the type of the x-Axis as a text-Field, the first and the
>>>> last
>>>> labels are values within the time-serie.
>>>> When I use the type as a date, the first and the last labels are values
>>>> outside the time-serie.
>>>>
>>>> How can I force the first and last values to be shown on my x-Axis?
>>>>
>>>> Thanks in advance,
>>>> Georg
>>>>
>>>>
>>
>>


Re: birt chart: axis limitations [message #520504 is a reply to message #520399] Fri, 12 March 2010 11:26 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Georg,

Can you put the values in a flat file so I can build an example that has
the issue? Or can you post some code with the data in it that shows the
issue?

Thanks

Jason

Georg Siegert wrote:
> Jason,
>
> On the attachment I send you now, I use the type date.
> In this case the last value on the axis is after the last value of the
> table, but it has to be the same.
>
> I didn't set the the scale.
> (Just the yAxis is able to reacts on a scale value - The report designer
> works the same)
> On the xAxis I can set the Intervall, but in that case I just change the
> quantity
> and not the extreme values.
>
> Georg
>
>
> "Jason Weathersby" <jasonweathersby@windstream.net> schrieb im Newsbeitrag
> news:hnbi92$4i6$1@build.eclipse.org...
>> Georg,
>>
>> What happens when use a date type axis? Are you setting the scale or is
>> it automatic?
>>
>> Jason
>>
>>
>> Georg Siegert wrote:
>>> I user birt 2.5.1.
>>> My chart is embedded into a Java Rich Client.
>>>
>>> In my attachment you can see the chart and the corresponding data in the
>>> table.
>>> The input type is text (using the type: AxisType.TEXT_LITERAL).
>>> In the result the last value on the axis is before the last value in the
>>> table,
>>> but it has to be the same.
>>>
>>> When I resize the window, the chart repaints as it has to be.
>>>
>>> I use the class org.eclipse.birt.chart.model.Chart and instanciate with
>>> ChartWithAxesImpl.create()
>>>
>>> Georg
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> "Jason Weathersby" <jasonweathersby@windstream.net> schrieb im
>>> Newsbeitrag
>>> news:hn9bj3$ask$1@build.eclipse.org...
>>>> Georg,
>>>>
>>>> What version of BIRT are you using?
>>>> Can you recreate a report using the sample db that shows the problem and
>>>> post?
>>>>
>>>> Jason
>>>>
>>>> Georg Siegert wrote:
>>>>> Hello,
>>>>>
>>>>> I use birt for a Line-Chart.
>>>>> The x-Axis gets Date as an input type.
>>>>> The request is to show on the x-Axis the label of the first and the
>>>>> last
>>>>> date. And in between the other dates (in any granulation) are visible.
>>>>>
>>>>> My problem are these two dates.
>>>>> When I define the type of the x-Axis as a text-Field, the first and the
>>>>> last
>>>>> labels are values within the time-serie.
>>>>> When I use the type as a date, the first and the last labels are values
>>>>> outside the time-serie.
>>>>>
>>>>> How can I force the first and last values to be shown on my x-Axis?
>>>>>
>>>>> Thanks in advance,
>>>>> Georg
>>>>>
>>>>>
>>>
>
>
Re: birt chart: axis limitations [message #520765 is a reply to message #520504] Mon, 15 March 2010 09:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: georg.siegert.cpb-software.com

Jason,

I put the values into a flat file.

Thanks a lot,
Georg



"Jason Weathersby" <jasonweathersby@windstream.net> schrieb im Newsbeitrag
news:hndph8$pdr$1@build.eclipse.org...
> Georg,
>
> Can you put the values in a flat file so I can build an example that has
> the issue? Or can you post some code with the data in it that shows the
> issue?
>
> Thanks
>
> Jason
>
> Georg Siegert wrote:
>> Jason,
>>
>> On the attachment I send you now, I use the type date.
>> In this case the last value on the axis is after the last value of the
>> table, but it has to be the same.
>>
>> I didn't set the the scale.
>> (Just the yAxis is able to reacts on a scale value - The report designer
>> works the same)
>> On the xAxis I can set the Intervall, but in that case I just change the
>> quantity
>> and not the extreme values.
>>
>> Georg
>>
>>
>> "Jason Weathersby" <jasonweathersby@windstream.net> schrieb im
>> Newsbeitrag
>> news:hnbi92$4i6$1@build.eclipse.org...
>>> Georg,
>>>
>>> What happens when use a date type axis? Are you setting the scale or is
>>> it automatic?
>>>
>>> Jason
>>>
>>>
>>> Georg Siegert wrote:
>>>> I user birt 2.5.1.
>>>> My chart is embedded into a Java Rich Client.
>>>>
>>>> In my attachment you can see the chart and the corresponding data in
>>>> the
>>>> table.
>>>> The input type is text (using the type: AxisType.TEXT_LITERAL).
>>>> In the result the last value on the axis is before the last value in
>>>> the
>>>> table,
>>>> but it has to be the same.
>>>>
>>>> When I resize the window, the chart repaints as it has to be.
>>>>
>>>> I use the class org.eclipse.birt.chart.model.Chart and instanciate with
>>>> ChartWithAxesImpl.create()
>>>>
>>>> Georg
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> "Jason Weathersby" <jasonweathersby@windstream.net> schrieb im
>>>> Newsbeitrag
>>>> news:hn9bj3$ask$1@build.eclipse.org...
>>>>> Georg,
>>>>>
>>>>> What version of BIRT are you using?
>>>>> Can you recreate a report using the sample db that shows the problem
>>>>> and
>>>>> post?
>>>>>
>>>>> Jason
>>>>>
>>>>> Georg Siegert wrote:
>>>>>> Hello,
>>>>>>
>>>>>> I use birt for a Line-Chart.
>>>>>> The x-Axis gets Date as an input type.
>>>>>> The request is to show on the x-Axis the label of the first and the
>>>>>> last
>>>>>> date. And in between the other dates (in any granulation) are
>>>>>> visible.
>>>>>>
>>>>>> My problem are these two dates.
>>>>>> When I define the type of the x-Axis as a text-Field, the first and
>>>>>> the
>>>>>> last
>>>>>> labels are values within the time-serie.
>>>>>> When I use the type as a date, the first and the last labels are
>>>>>> values
>>>>>> outside the time-serie.
>>>>>>
>>>>>> How can I force the first and last values to be shown on my x-Axis?
>>>>>>
>>>>>> Thanks in advance,
>>>>>> Georg
>>>>>>
>>>>>>
>>>>
>>
>>


Re: birt chart: axis limitations [message #520897 is a reply to message #520765] Mon, 15 March 2010 16:48 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Georg,

Can you try something like this in your code:

Axis xAxisPrimary = cwaLine.getPrimaryBaseAxes( )[0];
Scale scale = xAxisPrimary.getScale();
scale.setMin( DateTimeDataElementImpl.create( new
CDateTime(2008,9,29,13,40) ) );
scale.setMax( DateTimeDataElementImpl.create( new
CDateTime(2008,9,29,16,20) ) );

Jason

Georg Siegert wrote:
> Jason,
>
> I put the values into a flat file.
>
> Thanks a lot,
> Georg
>
>
>
> "Jason Weathersby" <jasonweathersby@windstream.net> schrieb im Newsbeitrag
> news:hndph8$pdr$1@build.eclipse.org...
>> Georg,
>>
>> Can you put the values in a flat file so I can build an example that has
>> the issue? Or can you post some code with the data in it that shows the
>> issue?
>>
>> Thanks
>>
>> Jason
>>
>> Georg Siegert wrote:
>>> Jason,
>>>
>>> On the attachment I send you now, I use the type date.
>>> In this case the last value on the axis is after the last value of the
>>> table, but it has to be the same.
>>>
>>> I didn't set the the scale.
>>> (Just the yAxis is able to reacts on a scale value - The report designer
>>> works the same)
>>> On the xAxis I can set the Intervall, but in that case I just change the
>>> quantity
>>> and not the extreme values.
>>>
>>> Georg
>>>
>>>
>>> "Jason Weathersby" <jasonweathersby@windstream.net> schrieb im
>>> Newsbeitrag
>>> news:hnbi92$4i6$1@build.eclipse.org...
>>>> Georg,
>>>>
>>>> What happens when use a date type axis? Are you setting the scale or is
>>>> it automatic?
>>>>
>>>> Jason
>>>>
>>>>
>>>> Georg Siegert wrote:
>>>>> I user birt 2.5.1.
>>>>> My chart is embedded into a Java Rich Client.
>>>>>
>>>>> In my attachment you can see the chart and the corresponding data in
>>>>> the
>>>>> table.
>>>>> The input type is text (using the type: AxisType.TEXT_LITERAL).
>>>>> In the result the last value on the axis is before the last value in
>>>>> the
>>>>> table,
>>>>> but it has to be the same.
>>>>>
>>>>> When I resize the window, the chart repaints as it has to be.
>>>>>
>>>>> I use the class org.eclipse.birt.chart.model.Chart and instanciate with
>>>>> ChartWithAxesImpl.create()
>>>>>
>>>>> Georg
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> "Jason Weathersby" <jasonweathersby@windstream.net> schrieb im
>>>>> Newsbeitrag
>>>>> news:hn9bj3$ask$1@build.eclipse.org...
>>>>>> Georg,
>>>>>>
>>>>>> What version of BIRT are you using?
>>>>>> Can you recreate a report using the sample db that shows the problem
>>>>>> and
>>>>>> post?
>>>>>>
>>>>>> Jason
>>>>>>
>>>>>> Georg Siegert wrote:
>>>>>>> Hello,
>>>>>>>
>>>>>>> I use birt for a Line-Chart.
>>>>>>> The x-Axis gets Date as an input type.
>>>>>>> The request is to show on the x-Axis the label of the first and the
>>>>>>> last
>>>>>>> date. And in between the other dates (in any granulation) are
>>>>>>> visible.
>>>>>>>
>>>>>>> My problem are these two dates.
>>>>>>> When I define the type of the x-Axis as a text-Field, the first and
>>>>>>> the
>>>>>>> last
>>>>>>> labels are values within the time-serie.
>>>>>>> When I use the type as a date, the first and the last labels are
>>>>>>> values
>>>>>>> outside the time-serie.
>>>>>>>
>>>>>>> How can I force the first and last values to be shown on my x-Axis?
>>>>>>>
>>>>>>> Thanks in advance,
>>>>>>> Georg
>>>>>>>
>>>>>>>
>>>
>
>
Re: birt chart: axis limitations [message #521033 is a reply to message #520897] Tue, 16 March 2010 04:52 Go to previous message
Eclipse UserFriend
Originally posted by: georg.siegert.cpb-software.com

Jason,
great it works

thanks a lot,
Georg


"Jason Weathersby" <jasonweathersby@windstream.net> schrieb im Newsbeitrag
news:hnlo5f$960$1@build.eclipse.org...
> Georg,
>
> Can you try something like this in your code:
>
> Axis xAxisPrimary = cwaLine.getPrimaryBaseAxes( )[0];
> Scale scale = xAxisPrimary.getScale();
> scale.setMin( DateTimeDataElementImpl.create( new
> CDateTime(2008,9,29,13,40) ) ); scale.setMax(
> DateTimeDataElementImpl.create( new CDateTime(2008,9,29,16,20) ) );
>
> Jason
>
> Georg Siegert wrote:
>> Jason,
>>
>> I put the values into a flat file.
>>
>> Thanks a lot,
>> Georg
>>
>>
>>
>> "Jason Weathersby" <jasonweathersby@windstream.net> schrieb im
>> Newsbeitrag news:hndph8$pdr$1@build.eclipse.org...
>>> Georg,
>>>
>>> Can you put the values in a flat file so I can build an example that has
>>> the issue? Or can you post some code with the data in it that shows the
>>> issue?
>>>
>>> Thanks
>>>
>>> Jason
>>>
>>> Georg Siegert wrote:
>>>> Jason,
>>>>
>>>> On the attachment I send you now, I use the type date.
>>>> In this case the last value on the axis is after the last value of the
>>>> table, but it has to be the same.
>>>>
>>>> I didn't set the the scale.
>>>> (Just the yAxis is able to reacts on a scale value - The report
>>>> designer
>>>> works the same)
>>>> On the xAxis I can set the Intervall, but in that case I just change
>>>> the
>>>> quantity
>>>> and not the extreme values.
>>>>
>>>> Georg
>>>>
>>>>
>>>> "Jason Weathersby" <jasonweathersby@windstream.net> schrieb im
>>>> Newsbeitrag
>>>> news:hnbi92$4i6$1@build.eclipse.org...
>>>>> Georg,
>>>>>
>>>>> What happens when use a date type axis? Are you setting the scale or
>>>>> is
>>>>> it automatic?
>>>>>
>>>>> Jason
>>>>>
>>>>>
>>>>> Georg Siegert wrote:
>>>>>> I user birt 2.5.1.
>>>>>> My chart is embedded into a Java Rich Client.
>>>>>>
>>>>>> In my attachment you can see the chart and the corresponding data in
>>>>>> the
>>>>>> table.
>>>>>> The input type is text (using the type: AxisType.TEXT_LITERAL).
>>>>>> In the result the last value on the axis is before the last value in
>>>>>> the
>>>>>> table,
>>>>>> but it has to be the same.
>>>>>>
>>>>>> When I resize the window, the chart repaints as it has to be.
>>>>>>
>>>>>> I use the class org.eclipse.birt.chart.model.Chart and instanciate
>>>>>> with
>>>>>> ChartWithAxesImpl.create()
>>>>>>
>>>>>> Georg
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> "Jason Weathersby" <jasonweathersby@windstream.net> schrieb im
>>>>>> Newsbeitrag
>>>>>> news:hn9bj3$ask$1@build.eclipse.org...
>>>>>>> Georg,
>>>>>>>
>>>>>>> What version of BIRT are you using?
>>>>>>> Can you recreate a report using the sample db that shows the problem
>>>>>>> and
>>>>>>> post?
>>>>>>>
>>>>>>> Jason
>>>>>>>
>>>>>>> Georg Siegert wrote:
>>>>>>>> Hello,
>>>>>>>>
>>>>>>>> I use birt for a Line-Chart.
>>>>>>>> The x-Axis gets Date as an input type.
>>>>>>>> The request is to show on the x-Axis the label of the first and the
>>>>>>>> last
>>>>>>>> date. And in between the other dates (in any granulation) are
>>>>>>>> visible.
>>>>>>>>
>>>>>>>> My problem are these two dates.
>>>>>>>> When I define the type of the x-Axis as a text-Field, the first and
>>>>>>>> the
>>>>>>>> last
>>>>>>>> labels are values within the time-serie.
>>>>>>>> When I use the type as a date, the first and the last labels are
>>>>>>>> values
>>>>>>>> outside the time-serie.
>>>>>>>>
>>>>>>>> How can I force the first and last values to be shown on my x-Axis?
>>>>>>>>
>>>>>>>> Thanks in advance,
>>>>>>>> Georg
>>>>>>>>
>>>>>>>>
>>>>
>>
Previous Topic:jsf4birt: any experience?
Next Topic:Generate BIRT logging
Goto Forum:
  


Current Time: Fri Apr 26 08:44:13 GMT 2024

Powered by FUDForum. Page generated in 0.03888 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top