Skip to content

Plot.ly Axis margin and setting layout and trace properties #596

Open
@digitalseas

Description

@digitalseas

Thank you for creating such a great tool.

I am trying to set the margin of xAxis as auto, but could not find this in the tablesaw api. Maybe I am missing something (see sample JS below).

Because Plot.ly has been constantly adding new properties, a more direct way to set the layout/trace properties might be useful. For example:

Layout.builder()
.set("autosize", "true")
.set("width", 500)
.set(yAxis().builder().set("automargin", "true").build() )
.build();

This not only will enable flexible property injection to the graph components, but also will allow developers to directly use existing Plot.ly docuents and examples as a reference without searching a corresponding Java method.

2019-08-15 02_15_54-JavaScript Graphing Library Setting D3 js-based Graph Size _ Examples _ Plotly

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions