-
Notifications
You must be signed in to change notification settings - Fork 72
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
layout prop is ignored #8
Comments
The You can use |
@nboughton any news on this? |
I've tried adding freqDist as part of the template data:
And using set to ensure the data is reactive:
However the chart still does not display as stacked bar data. |
Could you create a jsfiddle? |
I'm attempting to but I'm not sure how to load vue-plotly on there. I've never used jsfiddle before and the server backend that I send ajax requests to is not deployed publicly. I usually just bake it into a docker image for testing and running. |
You can use unpkg https://unpkg.com/ to upload your npm packages in jsfiddle. For the backend, maybe you can just copy and hardcode a subset of the data, and trigger the |
https://jsfiddle.net/hybacw74/1/ I still can't get it to run vue-plotly |
Try this: and add a watch on your layout.freq and qData.freqDist:
|
This works perfectly. Thank you very much! |
Worked also on my bar plot ! Thanks !! |
I'm trying to create a stacked bar chart but find that the layout prop is being ignored. My .vue file can be seen here
The relevant line invokes plotly with:
The relevant data is defined as:
The qData prop is filled via ajax request at page load and after a form action is submitted, might this cause an issue?
The text was updated successfully, but these errors were encountered: