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
stacked bars sequence
Moderators: heatherlaine, BvG
Re: stacked bars sequence
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
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
-
- VIP Livecode Opensource Backer
- Posts: 46
- Joined: Sun Jun 15, 2008 4:51 pm
- Location: Albany, NY
Re: stacked bars sequence
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?
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?
Re: stacked bars sequence
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
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
-
- VIP Livecode Opensource Backer
- Posts: 46
- Joined: Sun Jun 15, 2008 4:51 pm
- Location: Albany, NY
Re: stacked bars sequence
That patch should be easy enough. Thanks.