-
Notifications
You must be signed in to change notification settings - Fork 77
feat: integrate line chart with build query and update typings #73
Conversation
Deploy preview for superset-ui-plugins ready! Built with commit d69fcbf |
@@ -83,10 +87,12 @@ export default class ChannelEncoder<Def extends ChannelDef<Output>, Output exten | |||
return this.formatValue(this.get(datum)); | |||
} | |||
|
|||
get(datum: PlainObject, otherwise?: any) { | |||
get<T extends ChannelInput>(datum: PlainObject, otherwise?: T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
readonly formatValue: (value: any) => string; | ||
protected readonly getValue: (datum: PlainObject) => ChannelInput; | ||
readonly encodeValue: (value: ChannelInput) => Output | null | undefined; | ||
readonly formatValue: (value: ChannelInput | { toString(): string }) => string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, what is the toString
for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One of the formatter function's minimum requirement is something that can be converted into a string
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Just a small Q on the toString
.
…e-superset#73) * feat: integrate line chart with buildQuery * fix: typings * fix: minor * feat: derive groupbys * fix: tooltip for single series
🏆 Enhancements
/api/v1/query
backendgroupbys
fromencoding
encodable