California(CA) MEGA Millions Overdue Chart
include_once "$com_base/overdue_chart/overdue_chart_com.php";
$draw_stats=get_draw_stats($game_id);
$last_draw_date=$last_draw_stats[3];
$highest=get_highest_skips($game_id,$ball_type,$last_draw_date);
$unit_height=$full_height/$highest;
$color_range=floor($reg_highest/$reg_digits);
$red_limit=$color_range;
$orange_limit=$color_range*2;
$green_limit=$color_range*3;
$blue0_limit=$color_range*4;
$blue1_limit=$color_range*5;
$draw_var="draws_$game_id";
$draw_arr=$$draw_var;
$ball="white";
$bonus_name=$bonus_names[$game_id];
$update_time=get_update_time($game_id);
echo "
Updated: $update_time
";
echo "$game_name2 is designed as a lottery game that consists of choosing $reg_digits winning numbers from a pool of $reg_highest, and a $bonus_name number from a separate set of $pow_highest numbers.
";
echo "In theory, each number should be drawn every $reg_appear_low ~ $reg_appear_high draws, and the $bonus_name number should be drawn every $pow_appear_low draws. However, these mathematical rules do not apply to lottery and some numbers tend to appear among winning results more often than others.
";
echo "Our Overdue Chart lists the latest appearances for each number, along with the number of draws for which each number has not been drawn. The same figures are listed for the $bonus_name number, as well. This chart is updated after each $game_name drawing.
";
echo "The latest draw for $game_name2 took place on $draw_stats[2]. The winning numbers were $draw_stats[4], and they are shown below in pink color.
";
echo "By inspecting the Overdue Chart, you will notice how the number of draws for each a number is overdue is represented by the bar width shown next to each number. We color-coded these bars to reflect for how long each number has not appeared in $game_name2 draws, with blue representing the lowest figures and red the highest.
";
echo "As shown in our Overdue Chart, the top overdue numbers are:";
$url_by_rank=str_replace("-ranks","-numbers",$req_url);
$url_by_num=str_replace("-numbers","-ranks",$req_url);
$query="select number,skips,date_format(last_hit_date,'%a %b %d, %Y') from stats_last_hit where game_id='$game_id' and stats_type='$ball_type' order by skips desc limit 5";
$result=mysql_query($query) or die(mysql_error());
echo "
";
while(($row=mysql_fetch_array($result))!=NULL)
{
echo "- $row[0] - has not been drawn for $row[1] draws. $row[0] last appeared on $row[2].";
}
echo "
";
mysql_free_result($result);
echo "Seasoned lottery players often appeal to overdue numbers to guess potentially winning combinations. You can use our Overdue Chart in combination with our
Power Picks to generate such combinations.
";
echo "Use the links below to see the $game_name2 Overdue Chart for white ball numbers, as well as $bonus_name numbers. You can also have the chart ordered by numbers or ranks.
";
if($game_type==3){//with bonus number
echo "
Please note that the bonus number is NOT considered in overdue chart.";
}
$num=str_replace("-","",$draw_stats[4]);
echo "
";
line_spacing(10);
if(strstr($req_url,"ranks")){
echo "Order by Numbers ";
echo "Order by Ranks";
}else{
echo "
Order by Numbers ";
echo "
Order by Ranks";
}
echo "";
line_spacing(10);
echo "
";
if($ball_type=="BON"){
$url="/$req_arr[0]/$req_arr[1]/overdue-chart.htm";
echo "White Ball Numbers ";
echo "$bonus_names[$game_id] Numbers
";
$ball="red";
$extra="/".str_replace(" ","-",$bonus_names[$game_id]);
}else{
$url="/$req_arr[0]/$req_arr[1]/".str_replace(" ","-",$bonus_names[$game_id])."/overdue-chart.htm";
echo "White Ball Numbers ";
echo "$bonus_names[$game_id] Numbers
";
$ball="white";
}
echo "";
$j=0;
$rank=0;
$query="select number,skips from stats_last_hit where game_id='$game_id' and stats_type='$ball_type' order by skips desc";
$result=mysql_query($query) or die(mysql_error());
$prev=0;
$overdue_chart=array();
while($row=mysql_fetch_array($result))
{
$element=array();
if($row[1]!=$prev){
$rank=$j+1;
}
$element[0]=$row[0];
$element[1]=$rank;
$element[2]=$row[1];
array_push($overdue_chart,$element);
$prev=$row[1];
$j++;
}
mysql_free_result($result);
if(strstr($req_arr[1], "-number")){
usort($overdue_chart, "cmp");
}
echo "
";
overdue_chart_legend();
draw_overdue_chart($title,$overdue_chart);
line_spacing(20);
?>
| California Mega Millions |
SUN MON TUE WED THU FRI SAT |
|
|
 Next Draw: Tue Dec 1, 2026 $700,000,000 Change: +$27,000,000 |