@@ -17,62 +17,10 @@ export const boxPlotEncoderFactory = createEncoderFactory<BoxPlotEncodingConfig>
17
17
defaultEncoding : {
18
18
x : { field : 'x' , type : 'nominal' } ,
19
19
y : { field : 'y' , type : 'quantitative' } ,
20
- color : { value : 'black ' } ,
20
+ color : { value : '#222 ' } ,
21
21
} ,
22
22
} ) ;
23
23
24
24
export type BoxPlotEncoding = DeriveEncoding < BoxPlotEncodingConfig > ;
25
25
26
26
export type BoxPlotEncoder = Encoder < BoxPlotEncodingConfig > ;
27
-
28
- // import { Value } from 'vega-lite/build/src/channeldef';
29
- // import { ChannelTypeToDefMap } from '../encodeable/types/Channel';
30
- // import { ExtractChannelOutput } from '../encodeable/types/ChannelDef';
31
- // import createEncoderClass from '../encodeable/createEncoderClass';
32
-
33
- // /**
34
- // * Define channel types
35
- // */
36
- // const channelTypes = {
37
- // color: 'Color',
38
- // x: 'XBand',
39
- // y: 'YBand',
40
- // } as const;
41
-
42
- // export type ChannelTypes = typeof channelTypes;
43
-
44
- // /**
45
- // * TEMPLATE:
46
- // * Helper for defining encoding
47
- // */
48
- // type CreateChannelDef<
49
- // ChannelName extends keyof ChannelTypes,
50
- // Output extends Value
51
- // > = ChannelTypeToDefMap<Output>[ChannelTypes[ChannelName]];
52
-
53
- // /**
54
- // * Encoding definition
55
- // */
56
- // export type Encoding = {
57
- // color: CreateChannelDef<'color', string>;
58
- // x: CreateChannelDef<'x', number | null>;
59
- // y: CreateChannelDef<'y', number | null>;
60
- // };
61
-
62
- // /**
63
- // * TEMPLATE:
64
- // * Can use this to get returned type of a Channel
65
- // * example usage: ChannelOutput<'x'>
66
- // */
67
- // export type ChannelOutput<ChannelName extends keyof Encoding> = ExtractChannelOutput<
68
- // Encoding[ChannelName]
69
- // >;
70
-
71
- // export default class Encoder extends createEncoderClass<ChannelTypes, Encoding>({
72
- // channelTypes,
73
- // defaultEncoding: {
74
- // color: { value: '#222' },
75
- // x: { field: 'x', type: 'nominal' },
76
- // y: { field: 'y', type: 'quantitative' },
77
- // },
78
- // }) {}
0 commit comments