我需要为这个数组绘制一个堆积条形图,它应该有 2 个条形图,间隔为 2 年(从年1998
到2000
)
问题:第一条应该是这样的,
*1998-1997* - *2 years gap* - *2000-2008*
条形应该合并较短的年份,就像它在2000
从array0
和2008
取自时所做的那样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
)