I need to draw a stacked bar graph for this array which should have 2 bars separated with a white-space of 2 years span (from year 1998
to 2000
)
The Problem: the first bar should be like,
*1998-1997* - *2 years gap* - *2000-2008*
The bars should merge shorter year-spans within like it did in taking 2000
from array0
and 2008
from array 1
Array
(
[comp_name] => C++
[parent_cat_name] => Information Technology
[sub_cat_name] => Programming
[total_years] => 6
[last_year] => 2006
[start_year] => 2000
)
Array
(
[comp_name] => .NET
[parent_cat_name] => Information Technology
[sub_cat_name] => Programming
[total_years] => 7
[last_year] => 2008
[start_year] => 2001
)
Array
(
[comp_name] => API
[parent_cat_name] => Information Technology
[sub_cat_name] => Programming
[total_years] => 1
[last_year] => 1998
[start_year] => 1997
)
See Question&Answers more detail:os