Skip to content

Robust plot schema lookups #48

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

Merged
merged 54 commits into from
Nov 13, 2017

Conversation

bpostlethwaite
Copy link
Member

@alexcjohnson
cc @VeraZab

Based of TestSectionVisibility PR this PR adds more robust handling of plotSchema attrs.

naive direct lookups do not account for various exceptions and edge cases
we present users with "area" as "scatter + fill"
@bpostlethwaite
Copy link
Member Author

The next PR will introduce the <Layout> + tests which will allow us to target the gd.layout container.

This component API uses information about which gd container it
targets to further specify handlers and data passed down to lower
level components
We may need to use an array but it will involve complexity when
working with generic updates from Layout. Remove for now until we know
we need it.
<Trace> mixed logic with structure. We aim to present a structural
component API for declaring the structure of the UI. This should be
independent of the logical connections to Plotly.js. Now we can pair
connectTraceToPlot with <Fold> or <Section> or even <Panel>
This more closely approximates the way different layers must be
linked together.
The Layout component is now whatever connectToLayout(<Container>) is
necessary
@bpostlethwaite bpostlethwaite changed the title FYI Robust plot schema lookups Robust plot schema lookups Nov 8, 2017
// scatter with fill as an "area" chart type for convenience.
const traceTypes = Object.keys(context.plotSchema.traces).filter(
t => t !== 'area'
);
Copy link
Collaborator

Choose a reason for hiding this comment

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

hopefully not for long 🙏

Copy link
Collaborator

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

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

💃

@bpostlethwaite bpostlethwaite merged commit 4b6346e into TestSectionVisibility Nov 13, 2017
@bpostlethwaite bpostlethwaite deleted the RobustPlotSchemaLookups branch November 13, 2017 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants