mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-23 17:40:23 +03:00
Increased default height for doughnut charts
This commit is contained in:
parent
949e0da105
commit
cb761dea8f
1 changed files with 2 additions and 2 deletions
|
@ -53,8 +53,8 @@ const generateGraphData = (title, isBarChart, labels, data, highlightedData, hig
|
||||||
const dropLabelIfHidden = (label) => label.startsWith('hidden') ? '' : label;
|
const dropLabelIfHidden = (label) => label.startsWith('hidden') ? '' : label;
|
||||||
|
|
||||||
const determineHeight = (isBarChart, labels) => {
|
const determineHeight = (isBarChart, labels) => {
|
||||||
if (!isBarChart && labels.length > 8) {
|
if (!isBarChart) {
|
||||||
return 200;
|
return 300;
|
||||||
}
|
}
|
||||||
|
|
||||||
return isBarChart && labels.length > 20 ? labels.length * 8 : null;
|
return isBarChart && labels.length > 20 ? labels.length * 8 : null;
|
||||||
|
|
Loading…
Reference in a new issue