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.

Revise syntax for using signal in an encoding constant `value`.

See original GitHub issue

Seeing datum signal in https://github.com/vega/vega-lite/pull/6432 as encoding.color = {datum: {signal: ...}

I think we should revise encoding.color = {signal:...} to be encoding.color = {value: {signal:...}} so it’s consistent and easier to teach, though a bit more verbose.

Basically, once we have signal as an official feature, we can just say value is a constant value in visual domain and datum is constant value in data domain, both of which support signals as their values. (Instead of saying value signal use {signal:...} but datum signal needs nesting.)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
domoritzcommented, May 2, 2020

{value: 5, scale: true} makes sense to us but I think is a lot more confusing compared to datum.

0reactions
kanitwcommented, May 2, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use Constants and Generic Map in VHDL - VHDLwhiz
It is possible to create constants in VHDL using this syntax: constant <constant_name> : <type> := <value>;. Constants can be declared along ...
Read more >
Signals in C language - GeeksforGeeks
User Defined Signal Handlers​​ A signal handler function can have any name, but must have return type void and have one int parameter....
Read more >
VHDL Handbook - UMBC Computer Science
All syntax in this handbook is described using the so called Backus-Naur- format. ... This coding style hides the value of the constant,...
Read more >
VHDL Types of Data object - Surf-VHDL
There are four types of data objects in VHDL: signals; variables; constants; files. Signal. The signal represents interconnection wires between ports.
Read more >
Class: Encoding (Ruby 2.5.0)
An Encoding instance represents a character encoding usable in Ruby. It is defined as a constant under the Encoding namespace. It has a...
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