Skip to content

Commit

Permalink
fixx: keep chart responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
lbwa committed Sep 24, 2018
1 parent 3512cfe commit 8cdc88b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/view/Analysis/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@
<chart-line
class="chart__layout"
:options="{
responsive: false,
responsive: true,
maintainAspectRatio: false // 保持长宽比
}"
:labels="visitorData.labels"
:datasets="visitorData.datasets"
:width="195"
:height="50"
></chart-line>
</main>
</chart-card>
Expand Down Expand Up @@ -172,8 +170,10 @@ export default {
.chart__layout
position: absolute
top: 0
left: 0
bottom: 0
right: 0
.card__footer__no-wrap
white-space: nowrap
Expand Down

0 comments on commit 8cdc88b

Please sign in to comment.