def add_data_set(self, data, series_type="line", name=None, **kwargs):
        """set data for series option in highcharts"""

        self.data_set_count += 1
        if not name:
            name = "Series %d" % self.data_set_count
        kwargs.update({'name':name})

        if series_type == 'treemap':
            self.add_JSsource('http://code.highcharts.com/modules/treemap.js')

        series_data = Series(data, series_type=series_type, **kwargs)
       
        series_data.__options__().update(SeriesOptions(series_type=series_type, **kwargs).__options__())
        self.data_temp.append(series_data)
def add_data_set ( self , data , series_type = "line" , name = None , ** kwargs ) : self . data_set_count += 1 if not name : name = "Series %d" % self . data_set_count kwargs . update ( { 'name' : name } ) if series_type == 'treemap' : self . add_JSsource ( 'http://code.highcharts.com/modules/treemap.js' ) series_data = Series ( data , series_type = series_type , ** kwargs ) series_data . __options__ ( ) . update ( SeriesOptions ( series_type = series_type , ** kwargs ) . __options__ ( ) ) self . data_temp . append ( series_data )
set data for series option in highcharts