I am developing a Gant chart using PHP and purely based on table architecture. What I need is that when user mouse over the data
echo "<td colspan=$duration align=center
bgcolor=$color>$description
";
to show a tool tip with some related information. Any guidance please.
Below is part of my codes.
foreach ($this->activities as $activity) {
$start = $activity['start'];
$end = $activity['end'];
$description = $activity['description'];
$color = $activity['color'];
$before = $start;
$duration = $end - $start + 1;
$after = $this->end - $end;
echo "<tr>
";
if ($before > 0) {
echo "<td colspan=$before>
";
}
echo "<td colspan=$duration align=center
bgcolor=$color>$description
";
if ($after > 0) {
echo "<td colspan=$after>
";
}
}
echo "</table>
";
}
}