Problem to show more than one barchart in an image
hi all,
i want to draw more than one barchart in an image.
the first barchart should contain 4 stacked bars, the secend one should contain 2 stacked bars.
data for the first 4 stackbars:
dataset01 (0,14,11,6)
dataset02 (65,55,61,75)
dataset03 (25,18,17,6)
dataset04 (10,14,11,13)
for the secend 2 stackbars:
dataset01 (8,5)
dataset02 (63,50)
dataset03 (17,25)
dataset04 (12,20)
i build an dataobject that contains both charts with (VOID):
see below (codebox).
now i tried to disable the secend 4 dataset ,to display only the first 4 in the firstchart
after this i made the output for the chart#1
then i disable the first 4 datasets and enables the secend 4 datasets to display the secend dataset in the secend chart
after this i made the output for the chart#2,
but i cant see the bars in chart #2, there is nothing.
my question is, how i can display one ore more barchars with different data in it?!
thx for help!
Code:
object(pData)#112 (2) {
["Data"]=>
array(9) {
["XAxisDisplay"]=>
int(680001)
["XAxisFormat"]=>
NULL
["XAxisName"]=>
NULL
["XAxisUnit"]=>
NULL
["Abscissa"]=>
NULL
["AbsicssaPosition"]=>
int(681002)
["Axis"]=>
array(1) {
[0]=>
array(4) {
["Display"]=>
int(680001)
["Position"]=>
int(681001)
["Identity"]=>
int(682002)
["Unit"]=>
string(1) "%"
}
}
["Series"]=>
array(8) {
["serie0_0"]=>
array(11) {
["Description"]=>
string(8) "serie0_0"
["isDrawable"]=>
bool(true)
["Picture"]=>
NULL
["Max"]=>
float(13.9)
["Min"]=>
float(0)
["Axis"]=>
int(0)
["Ticks"]=>
int(0)
["Weight"]=>
int(0)
["Shape"]=>
int(681011)
["Color"]=>
array(4) {
["R"]=>
string(3) "192"
["G"]=>
string(3) "192"
["B"]=>
string(3) "192"
["Alpha"]=>
string(5) "100
"
}
["Data"]=>
array(6) {
[0]=>
float(10)
[1]=>
float(13.9)
[2]=>
float(11)
[3]=>
float(13)
[4]=>
float(0)
[5]=>
float(0)
}
}
["serie0_1"]=>
array(11) {
["Description"]=>
string(8) "serie0_1"
["isDrawable"]=>
bool(true)
["Picture"]=>
NULL
["Max"]=>
float(25)
["Min"]=>
float(0)
["Axis"]=>
int(0)
["Ticks"]=>
int(0)
["Weight"]=>
int(0)
["Shape"]=>
int(681011)
["Color"]=>
array(4) {
["R"]=>
string(3) "192"
["G"]=>
string(3) "216"
["B"]=>
string(3) "152"
["Alpha"]=>
string(5) "100
"
}
["Data"]=>
array(6) {
[0]=>
float(25)
[1]=>
float(17.8)
[2]=>
float(17)
[3]=>
float(6)
[4]=>
float(0)
[5]=>
float(0)
}
}
["serie0_2"]=>
array(11) {
["Description"]=>
string(8) "serie0_2"
["isDrawable"]=>
bool(true)
["Picture"]=>
NULL
["Max"]=>
float(75)
["Min"]=>
float(0)
["Axis"]=>
int(0)
["Ticks"]=>
int(0)
["Weight"]=>
int(0)
["Shape"]=>
int(681011)
["Color"]=>
array(4) {
["R"]=>
string(3) "113"
["G"]=>
string(3) "145"
["B"]=>
string(2) "56"
["Alpha"]=>
string(5) "100
"
}
["Data"]=>
array(6) {
[0]=>
float(65)
[1]=>
float(54.5)
[2]=>
float(61)
[3]=>
float(75)
[4]=>
float(0)
[5]=>
float(0)
}
}
["serie0_3"]=>
array(11) {
["Description"]=>
string(8) "serie0_3"
["isDrawable"]=>
bool(true)
["Picture"]=>
NULL
["Max"]=>
float(13.9)
["Min"]=>
float(0)
["Axis"]=>
int(0)
["Ticks"]=>
int(0)
["Weight"]=>
int(0)
["Shape"]=>
int(681011)
["Color"]=>
array(4) {
["R"]=>
string(2) "80"
["G"]=>
string(2) "96"
["B"]=>
string(2) "40"
["Alpha"]=>
string(5) "100
"
}
["Data"]=>
array(6) {
[0]=>
float(0)
[1]=>
float(13.9)
[2]=>
float(11)
[3]=>
float(6)
[4]=>
float(0)
[5]=>
float(0)
}
}
["serie1_0"]=>
array(11) {
["Description"]=>
string(8) "serie1_0"
["isDrawable"]=>
bool(true)
["Picture"]=>
NULL
["Max"]=>
float(20)
["Min"]=>
float(0)
["Axis"]=>
int(0)
["Ticks"]=>
int(0)
["Weight"]=>
int(0)
["Shape"]=>
int(681011)
["Color"]=>
array(4) {
["R"]=>
string(3) "192"
["G"]=>
string(3) "192"
["B"]=>
string(3) "192"
["Alpha"]=>
string(5) "100
"
}
["Data"]=>
array(6) {
[0]=>
float(0)
[1]=>
float(0)
[2]=>
float(0)
[3]=>
float(0)
[4]=>
float(12)
[5]=>
float(20)
}
}
["serie1_1"]=>
array(11) {
["Description"]=>
string(8) "serie1_1"
["isDrawable"]=>
bool(true)
["Picture"]=>
NULL
["Max"]=>
float(25)
["Min"]=>
float(0)
["Axis"]=>
int(0)
["Ticks"]=>
int(0)
["Weight"]=>
int(0)
["Shape"]=>
int(681011)
["Color"]=>
array(4) {
["R"]=>
string(3) "192"
["G"]=>
string(3) "216"
["B"]=>
string(3) "152"
["Alpha"]=>
string(5) "100
"
}
["Data"]=>
array(6) {
[0]=>
float(0)
[1]=>
float(0)
[2]=>
float(0)
[3]=>
float(0)
[4]=>
float(17)
[5]=>
float(25)
}
}
["serie1_2"]=>
array(11) {
["Description"]=>
string(8) "serie1_2"
["isDrawable"]=>
bool(true)
["Picture"]=>
NULL
["Max"]=>
float(63)
["Min"]=>
float(0)
["Axis"]=>
int(0)
["Ticks"]=>
int(0)
["Weight"]=>
int(0)
["Shape"]=>
int(681011)
["Color"]=>
array(4) {
["R"]=>
string(3) "113"
["G"]=>
string(3) "145"
["B"]=>
string(2) "56"
["Alpha"]=>
string(5) "100
"
}
["Data"]=>
array(6) {
[0]=>
float(0)
[1]=>
float(0)
[2]=>
float(0)
[3]=>
float(0)
[4]=>
float(63)
[5]=>
float(50)
}
}
["serie1_3"]=>
array(11) {
["Description"]=>
string(8) "serie1_3"
["isDrawable"]=>
bool(true)
["Picture"]=>
NULL
["Max"]=>
float(8)
["Min"]=>
float(0)
["Axis"]=>
int(0)
["Ticks"]=>
int(0)
["Weight"]=>
int(0)
["Shape"]=>
int(681011)
["Color"]=>
array(4) {
["R"]=>
string(2) "80"
["G"]=>
string(2) "96"
["B"]=>
string(2) "40"
["Alpha"]=>
string(5) "100
"
}
["Data"]=>
array(6) {
[0]=>
float(0)
[1]=>
float(0)
[2]=>
float(0)
[3]=>
float(0)
[4]=>
float(8)
[5]=>
float(5)
}
}
}
["GraphArea"]=>
array(4) {
["X1"]=>
int(42)
["Y1"]=>
int(150)
["X2"]=>
int(292)
["Y2"]=>
int(618)
}
}
["Palette"]=>
array(48) {
[0]=>
array(4) {
["R"]=>
string(3) "192"
["G"]=>
string(3) "192"
["B"]=>
string(3) "192"
["Alpha"]=>
string(5) "100
"
}
[1]=>
array(4) {
["R"]=>
string(3) "192"
["G"]=>
string(3) "216"
["B"]=>
string(3) "152"
["Alpha"]=>
string(5) "100
"
}
[2]=>
array(4) {
["R"]=>
string(3) "113"
["G"]=>
string(3) "145"
["B"]=>
string(2) "56"
["Alpha"]=>
string(5) "100
"
}
[3]=>
array(4) {
["R"]=>
string(2) "80"
["G"]=>
string(2) "96"
["B"]=>
string(2) "40"
["Alpha"]=>
string(5) "100
"
}
[4]=>
array(4) {
["R"]=>
string(3) "192"
["G"]=>
string(3) "192"
["B"]=>
string(3) "192"
["Alpha"]=>
string(5) "100
"
}
[5]=>
array(4) {
["R"]=>
string(3) "192"
["G"]=>
string(3) "216"
["B"]=>
string(3) "152"
["Alpha"]=>
string(5) "100
"
}
[6]=>
array(4) {
["R"]=>
string(3) "113"
["G"]=>
string(3) "145"
["B"]=>
string(2) "56"
["Alpha"]=>
string(5) "100
"
}
[7]=>
array(4) {
["R"]=>
string(2) "80"
["G"]=>
string(2) "96"
["B"]=>
string(2) "40"
["Alpha"]=>
string(5) "100
"
}
my setup: