esppy.plotting.StreamingChart¶
-
class
esppy.plotting.
StreamingChart
(data, title=None, x_axis_label=None, x_axis_location=None, x_axis_type=None, y_axis_label=None, y_axis_location=None, y_axis_type=None, x_range=None, y_range=None, plot_width=900, plot_height=400, responsive=True, palette=None, steps=100000.0, interval=1000, max_data=100, var_generator=None)¶ Bases:
object
Streaming Chart
- Parameters
- dataWindow or DataFrame or callable
The object to get the data from
- titlestring, optional
The title for the chart
- x_axis_labelstring, optional
The label for the x-axis
- x_axis_locationstring, optional
The location of the x-axis: ‘top’, ‘bottom’
- x_axis_typestring, optional
The type of x-axis: ‘linear’, ‘category’, ‘logarithmic’
- y_axis_labelstring, optional
The label for the y-axis
- y_axis_locationstring, optional
The location of the y-axis: ‘left’, ‘right’
- y_axis_typestring, optional
The type of y-axis: ‘linear’, ‘category’, ‘logarithmic’
- x_rangetuple, optional
The range and step size of the x-axis in the form (min, max, step)
- y_rangetuple, optional
The range and step size of the y-axis in the form (min, max, step)
- plot_widthint, optional
The width of the plot
- plot_heightint, optional
The height of the plot
- responsivebool, optional
Should the dimensions of the plot adjust to fit?
- palettecallable, optional
Callable object to return a specified number of colors
- stepsint, optional
The maximum number of calls to update the data in the chart
- intervalint, optional
The time between data calls in milliseconds
- max_dataint, optional
The maximum number of data points to store in each data set
- var_generatorcallable, optional
Callable object used to create new transient data columns for use in chart parameters
- Returns
-
__init__
(self, data, title=None, x_axis_label=None, x_axis_location=None, x_axis_type=None, y_axis_label=None, y_axis_location=None, y_axis_type=None, x_range=None, y_range=None, plot_width=900, plot_height=400, responsive=True, palette=None, steps=100000.0, interval=1000, max_data=100, var_generator=None)¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__
(self, data[, title, x_axis_label, …])Initialize self.
area
(self, x, y[, label, line_color, …])Create an area chart
bar
(self, x, y[, label, displayed_labels, …])Create a bar chart
bubble
(self, x, y, radius[, label, color, …])Create a bubble chart
donut
(self, x, y[, line_color, line_width, …])Create a donut chart
doughnut
(self, x, y[, line_color, …])Create a donut chart
hbar
(self, x, y, \*\*kwargs)Create a horizontal bar chart
line
(self, x, y[, label, line_color, …])Create a line chart
pie
(self, x, y[, line_color, line_width, …])Create a pie chart
scatter
(self, x, y[, label, color, …])Create a scatter chart