Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vue-chartjs height was 0 when i set v-show #120

Closed
ZengTianShengZ opened this issue Jun 15, 2017 · 2 comments
Closed

vue-chartjs height was 0 when i set v-show #120

ZengTianShengZ opened this issue Jun 15, 2017 · 2 comments

Comments

@ZengTianShengZ
Copy link

vue-chartjs height was 0 when set v-show=‘true’

<div class="chart-bg"  v-show="true_or_false">
               <line-chart :options="{responsive: false, maintainAspectRatio: false}"
                                :width="674"
                                :height="400"
                                :lineData="lineData">
                 </line-chart>
</div>

i console log <line-chart components when mounted:
image

Environment

   "chart.js": "^2.6.0",
    "vue": "^2.3.3",
    "vue-chartjs": "^2.6.5",
     npm:3.3.6
@apertureless
Copy link
Owner

Hey @ZengTianShengZ

can you please provide a minimal codepen or jsfiddle for reproduction?

It is working fine for me:

https://codepen.io/apertureless/pen/BZKBdX?editors=1010

@ZengTianShengZ
Copy link
Author

sorry,i Can not reproduce the problem,but it can work now, thank you !!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants