Código PHP:
switch($total_reg):
case 0:
$X = "105";
$Y = "684";
break;
case 1:
$X = "235";
$Y = "568";
break;
case 2:
$X = "235";
$Y = "781";
break;
case 3:
$X = "300";
$Y = "678";
break;
case 4:
$X = "400";
$Y = "528";
break;
case 5:
$X = "475";
$Y = "696";
break;
case 6:
$X = "370";
$Y = "841";
break;
case 7:
$X = "550";
$Y = "502";
break;
case 8:
$X = "562";
$Y = "868";
break;
endswitch;
gracias.