mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed the following issues in the Graph Visualiser:
1) Change all theme's color codes. 2) Bar graph for the first and last labels on the X-axis does not display all the bars. 3) Make the graphs always start from zero on the Y-axis.
This commit is contained in:
@@ -97,12 +97,14 @@ function GenerateGraph({graphType, graphData, ...props}) {
|
||||
x: {
|
||||
display: true,
|
||||
stacked: false,
|
||||
offset: true,
|
||||
ticks: {
|
||||
display: true,
|
||||
},
|
||||
},
|
||||
y: {
|
||||
stacked: false,
|
||||
beginAtZero: true,
|
||||
},
|
||||
},
|
||||
}));
|
||||
@@ -123,6 +125,11 @@ function GenerateGraph({graphType, graphData, ...props}) {
|
||||
usePointStyle: (showDataPoints && useDiffPointStyle) ? true : false
|
||||
},
|
||||
},
|
||||
},
|
||||
scales: {
|
||||
x: {
|
||||
offset: false
|
||||
}
|
||||
}
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user