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

Issue #3488778 by johnjw59: Twig Debug Breaks Chart Label in Views

parent 0adad8c2
No related branches found
No related tags found
3 merge requests!115Update ChartsPluginStyleChart.php,!113fixed the issue,!75Resolve #3391197 "Enable support for"
Pipeline #351413 passed with warnings
......@@ -373,7 +373,7 @@ class ChartsPluginStyleChart extends StylePluginBase implements ContainerFactory
$data_row = [];
if ($label_field_key) {
// Labels need to be decoded; the charting library will re-encode.
$data_row[] = strip_tags($this->getField($row_number, $label_field_key), ENT_QUOTES);
$data_row[] = trim(strip_tags($this->getField($row_number, $label_field_key), ENT_QUOTES));
}
$data_row[] = $this->processNumberValueFromField($row_number, $data_field_key);
$data[] = $data_row;
......
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