diff --git a/modules/charts_c3/charts_c3.module b/modules/charts_c3/charts_c3.module index 9f3ce57fd39388f9d394728af7fbb4534ff29fcc..7efc0205953351b5ee09b2ec9f702ea58bb8b5da 100644 --- a/modules/charts_c3/charts_c3.module +++ b/modules/charts_c3/charts_c3.module @@ -62,6 +62,8 @@ function charts_c3_render_charts($options, $categories = array(), $seriesData = $chartData->setColumns($c3Data); } else { + array_unshift($categories, 'x'); + array_push($c3Data, $categories); $chartData->setColumns($c3Data); } }