Chart add a "Rest" #2067
-
I have created a chart and I can see an added value "Rest" which is not coming from my data. Any idea what is this? My array passed as target is like below: Also I have 10 different labels/values but there is only 7 shown in pie chart, and one of this "Rest" it's not mine. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Charts have a division limit which is 7 by default. You can change it in your class platform/src/Screen/Layouts/Chart.php Line 84 in beb8e1e If there is more data than the set amount, then some will be combined into a group called "rest". https://github.com/frappe/charts/blob/d075c76ee2c259f6ecb3126e7397597c79b3bc01/src/js/charts/AggregationChart.js#L43 |
Beta Was this translation helpful? Give feedback.
Charts have a division limit which is 7 by default. You can change it in your class
platform/src/Screen/Layouts/Chart.php
Line 84 in beb8e1e
If there is more data than the set amount, then some will be combined into a group called "rest". https://github.com/frappe/charts/blob/d075c76ee2c259f6ecb3126e7397597c79b3bc01/src/js/charts/AggregationChart.js#L43