TimeLineChart
This example shows how to create beautiful TimeLineChart
name | position | date_start | date_end |
---|---|---|---|
George Washington | President | 1789/4/30 | 1797/3/4 |
John Adams | President | 1797/3/4 | 1801/3/4 |
John Adams | Vice President | 1789/4/21 | 1797/3/4 |
Thomas Jefferson | President | 1801/3/4 | 1809/3/4 |
Thomas Jefferson | Vice President | 1797/3/4 | 1801/3/4 |
Thomas Jefferson | Secretary of State | 1790/3/22 | 1793/12/31 |
Aaron Burr | Vice President | 1801/3/4 | 1805/3/4 |
George Clinton | Vice President | 1805/3/4 | 1812/4/20 |
John Jay | Secretary of State | 1789/9/25 | 1790/3/22 |
Edmund Randolph | Secretary of State | 1794/1/2 | 1795/8/20 |
\koolreport\apexcharts\TimeLineChart::create(array(
"dataSource" => $data,
"columns" => [
'name' => [
'seriesGroup' => true,
],
'position',
'term' => [
'combination' => [
'date_start',
'date_end',
],
'label' => '',
],
]
));