Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start datum encoding. #4201

Closed
wants to merge 2 commits into from
Closed

Start datum encoding. #4201

wants to merge 2 commits into from

Conversation

domoritz
Copy link
Member

@domoritz domoritz commented Oct 3, 2018

Ref #1601

Starting point for someone to pick up.

/**
* A constant value in data domain.
*/
datum: DatumValue;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't you have to support scale (and possibly guide)?

@kanitw
Copy link
Member

kanitw commented Mar 6, 2019

https://stackoverflow.com/questions/55015304/how-do-i-add-a-layer-in-a-shape-of-a-box-to-an-altair-plot suggests that having datum would be useful here.

@kanitw
Copy link
Member

kanitw commented Jun 1, 2019

Once this is done, it's worth modifying the example in #5012 too.

@@ -30,23 +30,37 @@ import {AggregatedFieldDef, WindowFieldDef} from './transform';
import {getFullName, QUANTITATIVE, Type} from './type';
import {contains, flatAccessWithDatum, getFirstDefined, replacePathInField, titlecase} from './util';

type Value = number | string | boolean | null;
type VisualValue = number | string;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. value can be null too, why are you removing it?

  2. Better not rename and keep it Value

@kanitw kanitw added the P2 Important Issues that should be fixed soon label Jun 12, 2019
@domoritz domoritz force-pushed the master branch 11 times, most recently from e31b0d5 to 35b6aed Compare September 27, 2019 17:00
@kanitw kanitw mentioned this pull request Mar 24, 2020
17 tasks
@kanitw
Copy link
Member

kanitw commented Mar 24, 2020

will be replaced by #6150

@kanitw kanitw closed this Mar 24, 2020
@kanitw kanitw deleted the dom/datum branch March 24, 2020 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 Important Issues that should be fixed soon
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants