Make traffic bar chart bars connected with no gaps
This commit is contained in:
parent
ce7988b10d
commit
abe4cb6845
1 changed files with 3 additions and 0 deletions
|
|
@ -149,6 +149,9 @@ const SensorChart = {
|
|||
options: {
|
||||
responsive: true,
|
||||
maintainAspectRatio: false,
|
||||
// Make bars connect with no gaps for traffic charts
|
||||
barPercentage: chartType === 'bar' ? 1.0 : undefined,
|
||||
categoryPercentage: chartType === 'bar' ? 1.0 : undefined,
|
||||
interaction: {
|
||||
mode: 'index',
|
||||
intersect: false,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue