FIX: better handling of resizing in stacked charts (#6921)
This commit is contained in:
parent
d32900292d
commit
9148f7675b
|
@ -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",
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue