Skip to content

Using class and + instead of .-chained builder for plot composition results in hard-to-use API #134

Description

Because of operator precedence, the used class approach for geoms (such as geomBar) fails to provide a convenient syntax when showing a plot. It's a confusing mix of ., +, as well as round and curly brackets:

Example

// letsplot
(df.letsPlot{ x = "status" } + geomBar ()).show()
            
// kravis for comparison
df.plot(x="status").geomBar().show()

By using a builder approach and using . for chaining (as we do in most other kotlin apis including kotlin-dataframe, a more user-friendly API experience would be possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions