One-shot Series + Chart Creation
Closed this issue · 1 comments
hcpchris commented
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 callingself.to_chart()
, and then b) renders the chart in a Jupyter context by calling.display()
on that chart.
hcpchris commented
Supported via inheritance.