question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrapped facet doesn't work with geoshape

See original GitHub issue

Hi. I’m trying to follow this example: https://altair-viz.github.io/gallery/us_incomebrackets_by_state_facet.html?highlight=wrapped with my own data but it doesn’t seem to be working.

Here is the snipped of code I’m using:

alt.Chart(testData).mark_geoshape().encode(
    color='citiStartDiff:Q',
    facet=alt.Facet('weekNumber:O', columns=4),
    tooltip=['NTAName:N']
).properties(
    width=250,
    height=250
)

And here is a sample of the data I’m using: https://github.com/juanfrans/data-sample/blob/master/testData.csv

I get the grid of charts and the legend with the appropriate scale range, but the charts are empty.

If I only do one chart with one weekNumber it works fine.

Any ideas? Thank you.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
armspcommented, Feb 24, 2021

@joelostblom Thank you so much Joel. I have a vested interest in this issue as well as few more that have origins in Vega-Lite. I am tracking this in my portfolio myself in this visualization - https://armsp.github.io/covidviz/geospatial/vaccine/2021/02/20/vaccine-tracker.html So, as soon as a fix is available, I will comment to close this issue here. Really appreciate the work you do!

0reactions
joelostblomcommented, Feb 24, 2021

Thanks for clarifying @armsp and @juanfrans! I’ve reopened the issue so that it’s easily visible for others until the VegaLite bug is fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Faceting a Plot into a Trellis Plot | Vega-Lite
Facet Field Definition; Row/Column Facet Mapping; Facet Headers; Example. Row-Facet; Wrapped Facet. Facet, Row, and Column Encoding Channels.
Read more >
Having trouble with facet wrap in ggplot - Stack Overflow
I'm having a bit of difficulty setting up a facet wrap in ggplot with three variables of which two are points and the...
Read more >
Graphics.Vega.Tutorials.VegaLite - Hackage
The VegaLite module exports a large number of symbols, but does not use any ... follows Elm VegaLite and requires you to use...
Read more >
vega_lite_3 - Rust - Docs.rs
This crate provides a thin wrapper over Vega-Lite v3, as well as a few helpers to help ingest data from various sources and...
Read more >
Josh Forman-Gornall - DogDogFish
I will go through some of the design decisions made and problems encountered ... the geo-shape query enables you to perform useful queries...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found