diff --git a/views/charts_plugin_style_chart.inc b/views/charts_plugin_style_chart.inc index 2eb0d79f8d70c3eab8bc82122045795cc757d26a..baeafdedfeb7dc02da8125e6d89ac2afb4062065 100644 --- a/views/charts_plugin_style_chart.inc +++ b/views/charts_plugin_style_chart.inc @@ -228,8 +228,9 @@ class charts_plugin_style_chart extends views_plugin_style { if ($renders[$row_number][$field_key] === '') { $value = NULL; } + // Strip thousands placeholders if present, then cast to float. else { - $value = (float) $renders[$row_number][$field_key]; + $value = (float) str_replace(array(',', ' '), '', $renders[$row_number][$field_key]); } $chart[$this->view->current_display . '__' . $field_key]['#data'][] = $value; }