Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines
Hi! Okay.
In Germany , think you know this, we use decimal point and thousands separator vice versa the english notation.
So when I create a column chart with database data it will look like this:
ColumnChart::create([
'dataSource' => $data,
'columns' => [
'category',
'VO-Kosten' => [
'label' => 'Gesamt-VO ',
'type' => 'number',
'suffix' => ' €',
"decimals" => 2,
"decPoint" => ",",
"thousandSep" => ".",
],
'Erreichte Ziele' => [
'label' => 'Abzug Ziele (bereinigt)',
'type' => 'number',
'suffix' => ' €',
"decimals" => 2,
"decPoint" => ",",
"thousandSep" => ".",
],
'Alle Ziele erreicht' => [
'label' => 'Max. möglicher Abzug (bereinigt)',
'type' => 'number',
'suffix' => ' €',
"decimals" => 2,
"decPoint" => ",",
"thousandSep" => ".",
],
],
'stacked' => true,
'colorScheme' => ['#475C71', '#714771', '#EE614F']
]);
I reformat the settings for every single value and it would be comfortable to do it globally for this chart:
ColumnChart::create([
'dataSource' => $data,
'columns' => [
'category',
'VO-Kosten' => [
'label' => 'Gesamt-VO ',
'type' => 'number',
],
'Erreichte Ziele' => [
'label' => 'Abzug Ziele (bereinigt)',
'type' => 'number',
],
'Alle Ziele erreicht' => [
'label' => 'Max. möglicher Abzug (bereinigt)',
'type' => 'number',
],
],
'stacked' => true,
'colorScheme' => ['#475C71', '#714771', '#EE614F'],
'suffix' => ' €',
"decimals" => 2,
"decPoint" => ",",
"thousandSep" => ".",
]);
Let KoolReport help you to make great reports. It's free & open-source released under MIT license.
Download KoolReport View demo