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

Start on boxplot and candlestick integration with Google Charts.

parent 72c50419
No related branches found
No related tags found
2 merge requests!113fixed the issue,!75Resolve #3391197 "Enable support for"
......@@ -111,10 +111,18 @@
chart = new google.visualization.PieChart(document.getElementById(chartId));
break;
case 'BoxPlot':
chart = new google.visualization.LineChart(document.getElementById(chartId));
break;
case 'BubbleChart':
chart = new google.visualization.BubbleChart(document.getElementById(chartId));
break;
case 'CandlestickChart':
chart = new google.visualization.CandlestickChart(document.getElementById(chartId));
break;
case 'AreaChart':
chart = new google.visualization.AreaChart(document.getElementById(chartId));
break;
......
......@@ -24,14 +24,18 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
* types = {
* "area",
* "bar",
* "boxplot",
* "bubble",
* "candlestick",
* "column",
* "donut",
* "gauge",
* "geo",
* "line",
* "pie",
* "scatter",
* "spline",
* "table",
* },
* )
*/
......@@ -188,6 +192,8 @@ class Google extends ChartBase implements ContainerFactoryPluginInterface {
$types = [
'area' => 'AreaChart',
'bar' => 'BarChart',
'boxplot' => 'LineChart',
'candlestick' => 'CandlestickChart',
'column' => 'ColumnChart',
'line' => 'LineChart',
'spline' => 'SplineChart',
......@@ -554,7 +560,7 @@ class Google extends ChartBase implements ContainerFactoryPluginInterface {
}
// Ensure consistent column count.
$column_count = count($data[0]);
$column_count = is_countable($data[0]) ? count($data[0]) : 0;
foreach ($data as $row => $values) {
......
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