MCPcopy Index your code
hub / github.com/spotify/chartify / _named_column_data_source

Method _named_column_data_source

chartify/_core/plot.py:136–141  ·  view source on GitHub ↗

Ensure consistent naming of column data sources. Naming ensures that Chart.data property will populate correctly.

(data_frame, series_name)

Source from the content-addressed store, hash-verified

134
135 @staticmethod
136 def _named_column_data_source(data_frame, series_name):
137 """Ensure consistent naming of column data sources.
138 Naming ensures that Chart.data property will populate correctly.
139 """
140 cannonical_series_name = BasePlot._cannonical_series_name(series_name)
141 return bokeh.models.ColumnDataSource(data_frame, name=cannonical_series_name)
142
143 def _cast_datetime_axis(self, data_frame, column):
144 if self._chart._x_axis_type == "datetime":

Callers 12

heatmapMethod · 0.80
lineMethod · 0.80
scatterMethod · 0.80
textMethod · 0.80
areaMethod · 0.80
histogramMethod · 0.80
_construct_sourceMethod · 0.80
scatterMethod · 0.80
boxplotMethod · 0.80
textMethod · 0.80
perimeterMethod · 0.80
areaMethod · 0.80

Calls 1

Tested by

no test coverage detected