Comments (2)
Hey @mkretsch327 ,
for all post-update calls you currently need to use our chart decorator to create a custom chart. See our documentation on custom charts.
In your case, it would look like this:
from vizro.models.types import capture
@capture("graph")
def custom_line(data_frame, x, y):
fig = px.line(data_frame, x=x, y=y)
fig.update_layout(yaxis_title='New Y-axis', legend_title='new legend')
return fig
And then you can insert the custom_line
figure as usual:
vm.Graph(id="scatter_chart", figure=custom_line(df, x="date", y=["GOOG", 'AAPL']))
Hope that helps! :) And let me know if you have any suggestions on the docs, maybe we have to make this clearer so it's easier to find! @stichbury
from vizro.
@huong-li-nguyen Thanks so much! This is helpful and solved it :) .BTW great work on this!
from vizro.
Related Issues (20)
- Can I add an icon to a button HOT 2
- Check all links in docs and make them more accessible HOT 15
- Enabling in-depth user interaction through input widgets HOT 7
- typo in explore-components/#22-add-further-components HOT 1
- False negative on hatch run test inside container environment HOT 3
- Custom AG Grid function overwrites pandas.DataFrame provided as input with an empty pandas.DataFrame HOT 2
- __call__ function within models/_components/graphy.py passing parent function kwargs unintentionally HOT 11
- Minor typo in "Explore Vizro" tutorial HOT 1
- Contribution guidelines link leads to `404` HOT 1
- Relationship analysis chart in demo has no flexibility in Y axis HOT 10
- Consider adding a file uploader widget HOT 2
- New features available for dcc.Loading HOT 1
- trendline options None not works. HOT 5
- Does Vizro AI support Azure Open AI gpt-4-32k? HOT 3
- Change the Number of Components from Parameters HOT 2
- Issue with dark/light mode and the graphics in mobile version HOT 4
- [Docs] Revise the documentation for layouts to use colours from the palette
- [Bug] Change security headers on public demo to be able to download charts as png
- Review docs for lists and ensure they are bullets/numbers according to the information they present
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vizro.