Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

feat: integrate line chart with build query and update typings #73

Merged
merged 5 commits into from
Apr 26, 2019

Conversation

kristw
Copy link
Collaborator

@kristw kristw commented Apr 24, 2019

🏆 Enhancements

  • Connect Line Chart with the /api/v1/query backend
  • Derive groupbys from encoding
  • Add more concrete typings for the ambiguous parts in encodable

image

@kristw kristw requested a review from a team as a code owner April 24, 2019 21:36
@netlify
Copy link

netlify bot commented Apr 24, 2019

Deploy preview for superset-ui-plugins ready!

Built with commit d69fcbf

https://deploy-preview-73--superset-ui-plugins.netlify.com

@pull-request-size pull-request-size bot added size/L and removed size/M labels Apr 24, 2019
@@ -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) {
Copy link
Contributor

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;
Copy link
Contributor

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?

Copy link
Collaborator Author

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.

Copy link
Contributor

@xtinec xtinec left a 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.

@kristw kristw merged commit 311d607 into master Apr 26, 2019
@delete-merged-branch delete-merged-branch bot deleted the kristw--line-integrate branch April 26, 2019 04:50
nytai pushed a commit to preset-io/superset-ui-plugins that referenced this pull request Apr 27, 2020
…e-superset#73)

* feat: integrate line chart with buildQuery

* fix: typings

* fix: minor

* feat: derive groupbys

* fix: tooltip for single series
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants