Donut: place HTML tags outside <svg>

refs #3226
This commit is contained in:
Alexander A. Klimov 2018-01-16 17:58:35 +01:00
parent e381b1e439
commit 4f706d9423
1 changed files with 7 additions and 2 deletions

View File

@ -274,6 +274,11 @@ class Donut
$offset -= $slice[0]; $offset -= $slice[0];
} }
$result = array(
'tag' => 'div',
'content' => array($svg)
);
if ($this->getLabelBig() || $this->getLabelSmall()) { if ($this->getLabelBig() || $this->getLabelSmall()) {
$labels = array( $labels = array(
'tag' => 'div', 'tag' => 'div',
@ -307,10 +312,10 @@ class Donut
); );
} }
$svg['content'][] = $labels; $result['content'][] = $labels;
} }
return $svg; return $result;
} }
/** /**