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

scatter3d display errorbars when error_z is not specified #3011

Merged
merged 4 commits into from
Sep 17, 2018

Conversation

antoinerg
Copy link
Contributor

Fixes #2881 by reverting to default values when error_z is not specified by the user.

@antoinerg antoinerg changed the title scatter3d fix errorbars when error_z is not specified scatter3d display errorbars when error_z is not specified Sep 14, 2018
color[i] = str2RgbaArray(e.color);
lineWidth = e.thickness;
lineWidth = (e.thickness || errorBarsAttributes.thickness.dflt);
Copy link
Contributor

@etpinard etpinard Sep 14, 2018

Choose a reason for hiding this comment

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

Hmm. Strange, judging from

fullData[i].thickness should have a set value by the time it gets here.

Copy link
Contributor

Choose a reason for hiding this comment

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

Note that having values set in fullData is (very) important for the react-chart-editor (aka RCE). RCE uses fullData to fill in its UI components.

gl3d_errobars_zx.json had to be updated because thickness is defined per axis instead of previously being determined by the thickness of error_z
@etpinard
Copy link
Contributor

Looks good 💃

@antoinerg antoinerg merged commit b6d5283 into master Sep 17, 2018
@antoinerg antoinerg deleted the 2881-scatter3d-fix-errorbars branch September 17, 2018 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants