Skip to content

One-short Series + Chart Creation #89

@hcpchris

Description

@hcpchris

It should be trivially easy for a developer/data scientist to create and render a single-series chart. There are existing single-shot series creation methods, but they rely on the series then being added to an existing Chart instance. This is inefficient and overly verbose. Instead, the semantics should be simpler (pseudo-code follows):

my_series = Series(...)
chart = my_series.to_chart()

# OR

my_series = Series(...)
my_series.display()

To complete this task:

  • Series objects need a .to_chart() (instance) method that creates a chart instance populated with the single series. Default chart settings should be intelligently set or populated via keyword arguments.
  • Series objects need a .display() (instance) method that a) creates a chart instance by calling self.to_chart(), and then b) renders the chart in a Jupyter context by calling .display() on that chart.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions