stacked bars sequence

Get help and support using chartsEngine for LiveCode.

Moderators: heatherlaine, BvG

Post Reply
Wally
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 46
Joined: Sun Jun 15, 2008 4:51 pm
Location: Albany, NY

stacked bars sequence

Post by Wally » Wed Mar 10, 2010 3:26 pm

When I use the data below in a stacked bar chart , the bars are charted out of sequence. The sets of 0's are drawn in the middle of the chart instead of last in the chart.

If I add:
set the charts["dataIncludesX"] of tchart to true, the sequence is honored but only 2 bars are stacked instead of three. The "chartItemdel" is set to tab as required.
This behavior shows itself in my stack as well as the chartsEngine example stack.

Is there another line of script I need to use or is this a bug?


15 12 10
5 9 11
17 14 18
17 10 24
0 0 0
17 12 14
13 11 15
7 18 16
12 13 20
15 11 13
18 19 15
14 9 18
6 18 16
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Location: Ostenfeld germany
Contact:

Re: stacked bars sequence

Post by malte » Wed Mar 10, 2010 10:38 pm

Hi Wally,

I can confirm this is a bug. Somehow the internal data array gets screwed. This will be fixed ASAP.

FOr now you can manually include the X-sorting 8set dataIncludesX to true and add another item on each line (first item going from 1 to the number of data records) Anyhow this *should* be easy to fix. I´ll let you know.

All the best,

Malte

Wally
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 46
Joined: Sun Jun 15, 2008 4:51 pm
Location: Albany, NY

Re: stacked bars sequence

Post by Wally » Mon Mar 15, 2010 5:48 pm

I'm not sure what you mean by "add another item on each line (first item going from 1 to the number of data records) Anyhow this *should* be easy to fix. I´ll let you know."

The data is:
15 12 10
5 9 11
17 14 18
17 10 24
0 0 0
17 12 14
13 11 15
7 18 16
12 13 20
15 11 13
18 19 15
14 9 18
6 18 16
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0

The data should become?

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Location: Ostenfeld germany
Contact:

Re: stacked bars sequence

Post by malte » Mon Mar 15, 2010 7:55 pm

Hi Wally,

not sure if it is still worth patching your data, as I should have a fixed version very soon. However, the data would be:

1 15 12 10
2 5 9 11
3 17 14 18
4 17 10 24
5 0 0 0
6 17 12 14
7 13 11 15
8 7 18 16
9 12 13 20
10 15 11 13
11 18 19 15
12 14 9 18
13 6 18 16
14 0 0 0
15 0 0 0
16 0 0 0
17 0 0 0
18 0 0 0
19 0 0 0

Wally
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 46
Joined: Sun Jun 15, 2008 4:51 pm
Location: Albany, NY

Re: stacked bars sequence

Post by Wally » Mon Mar 15, 2010 8:19 pm

That patch should be easy enough. Thanks.

Post Reply

Return to “chartsEngine”