TimeLineChart
This example shows how to create beautiful TimeLineChart
| position | name | date_start | date_end |
|---|---|---|---|
| President | George Washington | 1789/4/30 | 1797/3/4 |
| President | John Adams | 1797/3/4 | 1801/3/4 |
| Vice President | John Adams | 1789/4/21 | 1797/3/4 |
| President | Thomas Jefferson | 1801/3/4 | 1809/3/4 |
| Vice President | Thomas Jefferson | 1797/3/4 | 1801/3/4 |
| Secretary of State | Thomas Jefferson | 1790/3/22 | 1793/12/31 |
| Vice President | Aaron Burr | 1801/3/4 | 1805/3/4 |
| Vice President | George Clinton | 1805/3/4 | 1812/4/20 |
| Secretary of State | John Jay | 1789/9/25 | 1790/3/22 |
| Secretary of State | Edmund Randolph | 1794/1/2 | 1795/8/20 |
$data2 = \koolreport\apexcharts\Chart::rowsToColumns($data, [
'rowColumns' => ['name'],
'valueColumns' => ['date_start', 'date_end'],
'fixedColumns' => ['position']
]);
Fatal error: Uncaught Error: Class "koolreport\apexcharts\Chart" not found in /websites/bet2/kreport/examples/reports/apexcharts/timeline/group_rows_data_rows_to_columns/MyReport.view.php:138 Stack trace: #0 /websites/vendor/koolreport/core/src/KoolReport.php(584): include() #1 /websites/bet2/kreport/examples/reports/apexcharts/timeline/group_rows_data_rows_to_columns/run.php(7): koolreport\KoolReport->render() #2 /websites/bet2/kreport/examples/helpers/run.example.php(34): include('...') #3 /websites/bet2/kreport/examples/reports/apexcharts/timeline/group_rows_data_rows_to_columns/index.php(1): include('...') #4 {main} thrown in /websites/bet2/kreport/examples/reports/apexcharts/timeline/group_rows_data_rows_to_columns/MyReport.view.php on line 138