Skip to content

Conversation

@atticus-sullivan
Copy link

see #383 (comment) basically

The docs say there are parameters {x,y}gap for heatmap-traces. This PR adds these parameters.

See the docs:

In JS they refer to the type as "number greater than or equal to 0" similar in the python docs. By experimenting with the JS version (plotly-3.3.1.min.js) I can say that (in that version) you can also pass floats and strings. Numbers < 0 seem to be simply "truncated" to 0.

Thus I chose to use the NumOrString type, but I'm not 100% on whether that's correct (especially regarding negative numbers).

.text(vec!["te", "xt"])
.transpose(true)
.visible(Visible::LegendOnly)
.x_axis("x")
Copy link
Collaborator

Choose a reason for hiding this comment

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

@atticus-sullivan For completeness, could you extend the test with these two setters and the expected json.
With that in place I will merge it.

Copy link
Author

Choose a reason for hiding this comment

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

Makes sense done 👍

@atticus-sullivan
Copy link
Author

I feel almost bad asking 🙈 do you have a "release cycle"? (basically when approximately will this be part of a new release)

But I don't want to pressure (especially with that other bug/thing still open ^^), I'm just curious

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