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.

LegendLayout schema is empty

See original GitHub issue

VL 4.9.0’s schema’s (https://github.com/vega/schema/blob/master/vega-lite/v4.9.0.json#L10787) LegendLayout def is not being generated, and LegendConfig.layout is an odd not construct:

    "layout": {
        "description": "Legend orient group layout parameters.",
          "not": {
        }

The last schema to have the layout property defined correctly was 4.1.1 (https://github.com/vega/schema/blob/master/vega-lite/v4.1.1.json#L9515):

        "layout": {
          "$ref": "#/definitions/LegendLayout",
          "description": "Legend orient group layout parameters."
        }

So it would seem that this issue was introduced around 4.2.0.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
domoritzcommented, Apr 2, 2020

Thanks for the investigation. It really helped me find the core of the issue.

Fixed in https://github.com/vega/vega-lite/pull/6242

0reactions
domoritzcommented, Apr 2, 2020

I found one issue. We should not even have to use ExcludeMappedValueRefButKeepSignal here since VgLegendConfig should not support value refs in the first place. Let’s fix that and see whether this solved the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

LegendLayout - Wolfram Language Documentation
LegendLayout is an option for legends that specifies how to format the legend content.
Read more >
Schema$Tile - googleapis documentation
The zero-indexed position of the tile in grid blocks relative to the left edge of the grid. Tiles must be contained within the...
Read more >
vega_lite_3 - Rust - Docs.rs
Most of this crate has been generated from the json schema of Vega-Lite, ... By default, all data values are considered to lie...
Read more >
MonitoringDashboard | Config Connector Documentation
legendTemplate : string ... An empty filter matches all log entries. ... If non-empty, this unit will override any unit that accompanies fetched...
Read more >
altair/core.py at master · altair-viz/altair - GitHub
from altair.utils.schemapi import SchemaBase, Undefined, _subclasses ... If this property is an empty object ( ``{}`` ) or ``true``, filled points with.
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