How to draw scatter+line facet chart in altair #3499
-
How to draw scatter+line facet chart in altair below is my code
then an error has occurred below how can i resolve it.... thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The error message points you in the right direction: you need to do faceting after layering, rather than before. For your spec, that means adding Duplicate of #3310 |
Beta Was this translation helpful? Give feedback.
The error message points you in the right direction: you need to do faceting after layering, rather than before. For your spec, that means adding
line
andchart
together before using thefacet
method on the layered spec. See this section of the docs for an example https://altair-viz.github.io/user_guide/compound_charts.html#faceted-chartsDuplicate of #3310