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:
Akshay Joshi
2022-07-05 18:44:20 +05:30
parent 8b62cd1f04
commit 7414394ceb
2 changed files with 18 additions and 13 deletions

View File

@@ -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
}
}
}));