FIX: better handling of resizing in stacked charts (#6921)

This commit is contained in:
Joffrey JAFFEUX 2019-01-22 11:20:50 +01:00 committed by GitHub
parent d32900292d
commit 9148f7675b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 8 deletions

View File

@ -68,9 +68,9 @@ export default Ember.Component.extend({
return { return {
type: "bar", type: "bar",
data, data,
responsive: true,
maintainAspectRatio: false,
options: { options: {
responsive: true,
maintainAspectRatio: false,
hover: { mode: "index" }, hover: { mode: "index" },
tooltips: { tooltips: {
mode: "index", mode: "index",

View File

@ -1,3 +1,3 @@
<div class="chart-canvas-container"> <div class="chart-canvas-container">
<canvas class="chart-canvas" height="250"></canvas> <canvas class="chart-canvas"></canvas>
</div> </div>

View File

@ -1,9 +1,5 @@
.admin-report-stacked-chart { .admin-report-stacked-chart {
display: flex;
justify-content: space-between;
.chart-canvas-container { .chart-canvas-container {
flex: 5; height: 250px;
margin: 0;
} }
} }