Hi @hogi,
I have understood your problem, but this behaviour seems quite normal to me, regarding the data and type of graph you show : the Y axis "Count" is supposed in your example to count independently the number of responses (no matter the students) AND the number of students per sex, which are two different count informations.
I have found a workaround here (it just needs a column "Count ID by sex" to create the chart below):
And here is the script if you want to try it :
Graph Builder(
Size( 565, 582 ),
Show Control Panel( 0 ),
Variables(
X( :sex ),
Y( :countries visited ),
Y( :"Count[ID][sex]"n ),
Overlay( :sex )
),
Elements( Position( 1, 1 ), Histogram( X, Y, Legend( 11 ), Counts( 1 ) ) ),
Elements(
Position( 1, 2 ),
Bar( X, Y, Legend( 4 ), Label( "Label by Value" ) )
),
SendToReport(
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
11,
Properties( 0, {Fill Color( 19 )}, Item ID( "F", 1 ) ),
Properties( 1, {Fill Color( 21 )}, Item ID( "M", 1 ) )
), Legend Model(
4,
Properties( 0, {Fill Color( 19 )}, Item ID( "F", 1 ) ),
Properties( 1, {Fill Color( 21 )}, Item ID( "M", 1 ) )
)}
),
Dispatch(
{},
"400",
LegendBox,
{Legend Position( {11, [2, 3], 4, [0, 1]} )}
)
)
);
This should solve the problem you have by showing two types of informations on the same graph.
Victor GUILLER
"It is not unusual for a well-designed experiment to analyze itself" (Box, Hunter and Hunter)