Skip to content
Snippets Groups Projects
Commit 56f7b5d9 authored by Daniel Cothran's avatar Daniel Cothran
Browse files

correct if statement that was breaking non-column or -bar types in c3

parent 186fbeee
No related branches found
No related tags found
No related merge requests found
...@@ -62,6 +62,8 @@ function charts_c3_render_charts($options, $categories = array(), $seriesData = ...@@ -62,6 +62,8 @@ function charts_c3_render_charts($options, $categories = array(), $seriesData =
$chartData->setColumns($c3Data); $chartData->setColumns($c3Data);
} }
else { else {
array_unshift($categories, 'x');
array_push($c3Data, $categories);
$chartData->setColumns($c3Data); $chartData->setColumns($c3Data);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment