Home » Archived » BIRT » Problem with scatter charts
|
Re: Problem with scatter charts [message #834013 is a reply to message #833642] |
Sun, 01 April 2012 04:59   |
Eclipse User |
|
|
|
Hi,
experimenting with the Chart builder UI solved my previous problem but
then ran me right into the next one. What I want to do is represent five
separate items on the chart, four of them are dual point lines like the
one below and the final one is a track of actual data that should stay
in these boundaries. In excel I can do this (see excel.png). Can this
sort of plot be recreated in BIRT?
In the Chart UI I can set multiple Y Series but it looks like BIRT only
handles one X Series?
Any suggestions,
Nigel
On 31/03/2012 21:43, Nigel Daniels wrote:
> Hi,
>
> I am new to using Birt and I am trying to use the chart engine to draw
> several data-sets on a scatter chart. I am trying to represent the first
> set which has two X,Y points, one at (100, 0) and one at (100, 2922.5).
>
> I based this on the scatter chart in the Birt examples and expected to
> see one point above the other but I get a very strange result (see
> attached). It looks like Birt is using the X axis as a grouping not as a
> numeric sequence.
>
> What do I need to do to get Birt to plot the point on a chart, treating
> both axies as regular series?
>
> If any one has an example I could take a look at it would help as I am
> new to the Birt APIs.
>
> Thanks, Nigel.
Attachment: Excel.png
(Size: 36.40KB, Downloaded 344 times)
|
|
|
Re: Problem with scatter charts [message #835695 is a reply to message #834013] |
Tue, 03 April 2012 11:02   |
Eclipse User |
|
|
|
Do you mean like the attached example?
I used three series and two marker lines.
Jason
On 4/1/2012 4:59 AM, Nigel Daniels wrote:
> Hi,
>
> experimenting with the Chart builder UI solved my previous problem but
> then ran me right into the next one. What I want to do is represent five
> separate items on the chart, four of them are dual point lines like the
> one below and the final one is a track of actual data that should stay
> in these boundaries. In excel I can do this (see excel.png). Can this
> sort of plot be recreated in BIRT?
>
> In the Chart UI I can set multiple Y Series but it looks like BIRT only
> handles one X Series?
>
>
> Any suggestions,
>
> Nigel
>
> On 31/03/2012 21:43, Nigel Daniels wrote:
>> Hi,
>>
>> I am new to using Birt and I am trying to use the chart engine to draw
>> several data-sets on a scatter chart. I am trying to represent the first
>> set which has two X,Y points, one at (100, 0) and one at (100, 2922.5).
>>
>> I based this on the scatter chart in the Birt examples and expected to
>> see one point above the other but I get a very strange result (see
>> attached). It looks like Birt is using the X axis as a grouping not as a
>> numeric sequence.
>>
>> What do I need to do to get Birt to plot the point on a chart, treating
>> both axies as regular series?
>>
>> If any one has an example I could take a look at it would help as I am
>> new to the Birt APIs.
>>
>> Thanks, Nigel.
>
|
|
|
Re: Problem with scatter charts [message #837356 is a reply to message #835695] |
Thu, 05 April 2012 11:20   |
Eclipse User |
|
|
|
Hi Jason,
I do mean like the attached example. In the example all of the lines are
dynamic, even the markers as their 'end points' change according to the
data the actual track against.
The main problem I hit in trying to create this was the shared X values.
I think others have pointed out ways of using different size datasets.
Assuming I know the maximum data set size I can try padding the others
with NaN.
However I have not go that far with Birt due to the first problem.
Currently I'm using SWTGraph as that seems to handle this situation very
easily.
Best regards,
Nigel
On 03/04/2012 16:02, Jason Weathersby wrote:
> Do you mean like the attached example?
> I used three series and two marker lines.
>
> Jason
>
>
> On 4/1/2012 4:59 AM, Nigel Daniels wrote:
>> Hi,
>>
>> experimenting with the Chart builder UI solved my previous problem but
>> then ran me right into the next one. What I want to do is represent five
>> separate items on the chart, four of them are dual point lines like the
>> one below and the final one is a track of actual data that should stay
>> in these boundaries. In excel I can do this (see excel.png). Can this
>> sort of plot be recreated in BIRT?
>>
>> In the Chart UI I can set multiple Y Series but it looks like BIRT only
>> handles one X Series?
>>
>>
>> Any suggestions,
>>
>> Nigel
>>
>> On 31/03/2012 21:43, Nigel Daniels wrote:
>>> Hi,
>>>
>>> I am new to using Birt and I am trying to use the chart engine to draw
>>> several data-sets on a scatter chart. I am trying to represent the first
>>> set which has two X,Y points, one at (100, 0) and one at (100, 2922.5).
>>>
>>> I based this on the scatter chart in the Birt examples and expected to
>>> see one point above the other but I get a very strange result (see
>>> attached). It looks like Birt is using the X axis as a grouping not as a
>>> numeric sequence.
>>>
>>> What do I need to do to get Birt to plot the point on a chart, treating
>>> both axies as regular series?
>>>
>>> If any one has an example I could take a look at it would help as I am
>>> new to the Birt APIs.
>>>
>>> Thanks, Nigel.
>>
>
|
|
|
Re: Problem with scatter charts [message #837460 is a reply to message #837356] |
Thu, 05 April 2012 13:44   |
Eclipse User |
|
|
|
If you turn off aggregation on the chart you can share x vals with a
scatter chart it the x axis is set to linear. Take a look at the
attached example. I also attached the example I did yesterday updated
to use a scatter chart.
Jason
On 4/5/2012 11:21 AM, Nigel Daniels wrote:
> Hi Jason,
>
> I do mean like the attached example. In the example all of the lines are
> dynamic, even the markers as their 'end points' change according to the
> data the actual track against.
>
> The main problem I hit in trying to create this was the shared X values.
>
> I think others have pointed out ways of using different size datasets.
> Assuming I know the maximum data set size I can try padding the others
> with NaN.
>
> However I have not go that far with Birt due to the first problem.
> Currently I'm using SWTGraph as that seems to handle this situation very
> easily.
>
> Best regards,
>
> Nigel
>
>
> On 03/04/2012 16:02, Jason Weathersby wrote:
>> Do you mean like the attached example?
>> I used three series and two marker lines.
>>
>> Jason
>>
>>
>> On 4/1/2012 4:59 AM, Nigel Daniels wrote:
>>> Hi,
>>>
>>> experimenting with the Chart builder UI solved my previous problem but
>>> then ran me right into the next one. What I want to do is represent five
>>> separate items on the chart, four of them are dual point lines like the
>>> one below and the final one is a track of actual data that should stay
>>> in these boundaries. In excel I can do this (see excel.png). Can this
>>> sort of plot be recreated in BIRT?
>>>
>>> In the Chart UI I can set multiple Y Series but it looks like BIRT only
>>> handles one X Series?
>>>
>>>
>>> Any suggestions,
>>>
>>> Nigel
>>>
>>> On 31/03/2012 21:43, Nigel Daniels wrote:
>>>> Hi,
>>>>
>>>> I am new to using Birt and I am trying to use the chart engine to draw
>>>> several data-sets on a scatter chart. I am trying to represent the
>>>> first
>>>> set which has two X,Y points, one at (100, 0) and one at (100, 2922.5).
>>>>
>>>> I based this on the scatter chart in the Birt examples and expected to
>>>> see one point above the other but I get a very strange result (see
>>>> attached). It looks like Birt is using the X axis as a grouping not
>>>> as a
>>>> numeric sequence.
>>>>
>>>> What do I need to do to get Birt to plot the point on a chart, treating
>>>> both axies as regular series?
>>>>
>>>> If any one has an example I could take a look at it would help as I am
>>>> new to the Birt APIs.
>>>>
>>>> Thanks, Nigel.
>>>
>>
>
|
|
| | | |
Re: Problem with scatter charts [message #903451 is a reply to message #833642] |
Thu, 23 August 2012 12:48   |
Eclipse User |
|
|
|
Well, i realize my question was not very clear when I said "I want to do the same thing with text axis values, i refered to:
Nigel Daniels wrote on Sat, 31 March 2012 16:43Hi,
I am new to using Birt and I am trying to use the chart engine to draw
several data-sets on a scatter chart. I am trying to represent the first
set which has two X,Y points, one at (100, 0) and one at (100, 2922.5).
I based this on the scatter chart in the Birt examples and expected to
see one point above the other but I get a very strange result (see
attached). It looks like Birt is using the X axis as a grouping not as a
numeric sequence.
My problem is that, for two points (A,10) and (A,20) the points are not one above the other, since two "A" abscissa are displayed side by side.
|
|
| |
Re: Problem with scatter charts [message #903454 is a reply to message #833642] |
Thu, 23 August 2012 12:48   |
Eclipse User |
|
|
|
Well, i realize my question was not very clear when I said "I want to do the same thing with text axis values, i refered to:
Nigel Daniels wrote on Sat, 31 March 2012 16:43
> Hi,
>
> I am new to using Birt and I am trying to use the chart engine to draw
> several data-sets on a scatter chart. I am trying to represent the first
> set which has two X,Y points, one at (100, 0) and one at (100, 2922.5).
>
> I based this on the scatter chart in the Birt examples and expected to
> see one point above the other but I get a very strange result (see
> attached). It looks like Birt is using the X axis as a grouping not as a
> numeric sequence.
My problem is that, for two points (A,10) and (A,20) the points are not one above the other, since two "A" abscissa are displayed side by side.
|
|
| |
Re: Problem with scatter charts [message #903456 is a reply to message #833642] |
Thu, 23 August 2012 12:48   |
Eclipse User |
|
|
|
Well, i realize my question was not very clear when I said "I want to do the same thing with text axis values, i refered to:
Nigel Daniels wrote on Sat, 31 March 2012 16:43
> Hi,
>
> I am new to using Birt and I am trying to use the chart engine to draw
> several data-sets on a scatter chart. I am trying to represent the first
> set which has two X,Y points, one at (100, 0) and one at (100, 2922.5).
>
> I based this on the scatter chart in the Birt examples and expected to
> see one point above the other but I get a very strange result (see
> attached). It looks like Birt is using the X axis as a grouping not as a
> numeric sequence.
My problem is that, for two points (A,10) and (A,20) the points are not one above the other, since two "A" abscissa are displayed side by side.
|
|
| |
Re: Problem with scatter charts [message #903461 is a reply to message #833642] |
Thu, 23 August 2012 12:48   |
Eclipse User |
|
|
|
Well, i realize my question was not very clear when I said "I want to do the same thing with text axis values, i refered to:
Nigel Daniels wrote on Sat, 31 March 2012 16:43
> Hi,
>
> I am new to using Birt and I am trying to use the chart engine to draw
> several data-sets on a scatter chart. I am trying to represent the first
> set which has two X,Y points, one at (100, 0) and one at (100, 2922.5).
>
> I based this on the scatter chart in the Birt examples and expected to
> see one point above the other but I get a very strange result (see
> attached). It looks like Birt is using the X axis as a grouping not as a
> numeric sequence.
My problem is that, for two points (A,10) and (A,20) the points are not one above the other, since two "A" abscissa are displayed side by side.
|
|
| | | |
Re: Problem with scatter charts [message #903622 is a reply to message #903616] |
Fri, 24 August 2012 11:05   |
Eclipse User |
|
|
|
This is just a screenshot the client gave to me as an example. You can try with (A,1), (A,2),(B,4),(B,5) for instance.
The best thing i made for the moment is to group Y values by x, the y values for a same x are still side by side instead of one above the other, but they are have the same color by group -> so BIRT is able to see that A=A, i just don't know why it can't do as for linear axis...
|
|
|
Re: Problem with scatter charts [message #903641 is a reply to message #903622] |
Fri, 24 August 2012 12:08   |
Eclipse User |
|
|
|
One way around this would be to create a computed column on the dataset
that converts the string to an int using ascii code. Use the code as
the x-axis values letting you set it to a linear. In the computed
column you would also store a persistent variable with code as the
variable name and the string as the value. You can then look up the
value in the beforeDrawAxisLabel and convert it back. This is a bit
ugly though.
Jason
On 8/24/2012 11:05 AM, ju seb wrote:
> This is just a screenshot the client gave to me as an example. You can
> try with (A,1), (A,2),(B,4),(B,5) for instance. The best thing i made
> for the moment is to group Y values by x, the y values for a same x are
> still side by side instead of one above the other, but they are have the
> same color by group -> so BIRT is able to see that A=A, i just don't
> know why it can't do as for linear axis...
|
|
| | |
Goto Forum:
Current Time: Thu May 08 18:22:24 EDT 2025
Powered by FUDForum. Page generated in 0.06777 seconds
|