def __init__(self,**kwargs): Geom.__init__(self,**kwargs) self.name = "forceLayout" self._id = 'forceLayout' self._build_js() self._build_css() self.styles = dict([(k[0].replace('_','-'), k[1]) for k in kwargs.items()])
def __init__(self, x, y, **kwargs): Geom.__init__(self, **kwargs) self.x = x self.y = y self.params = [x, y] self.debug = True self.name = "line" self._build_js() self._build_css()
def __init__(self,x,y,**kwargs): Geom.__init__(self,**kwargs) self.x = x self.y = y self.params = [x,y] self.debug = True self.name = "line" self._build_js() self._build_css()
def __init__(self, x, yupper, ylower, **kwargs): Geom.__init__(self, **kwargs) self.x = x self.yupper = yupper self.ylower = ylower self.params = [x, yupper, ylower] self.debug = True self.name = "area" self._build_js() self._build_css()
def __init__(self,x,y,c=None,**kwargs): Geom.__init__(self, **kwargs) self.x = x self.y = y self.c = c self._id = 'point_%s_%s_%s'%(self.x,self.y,self.c) self.params = [x,y,c] self.name = "point" self.build_css() self.build_js()
def __init__(self,x,yupper,ylower,**kwargs): Geom.__init__(self,**kwargs) self.x = x self.yupper = yupper self.ylower = ylower self.params = [x, yupper, ylower] self.debug = True self.name = "area" self._build_js() self._build_css()
def __init__(self,x, **kwargs): """ x : string name of the column you want to use to define the x-axis """ Geom.__init__(self, **kwargs) self.x = x self.params = [x] self._id = 'xaxis' self.name = 'xaxis' self.build_css() self.build_js()
def __init__(self,y, label=None, **kwargs): """ y : string name of the column you want to use to define the y-axis """ Geom.__init__(self, **kwargs) self.y = y self.label = label if label else y self.params = [y] self._id = 'yaxis' self.name = 'yaxis' self._build_css() self._build_js()
def __init__(self, var, orient=None, **kwargs): """ var : string name of the column you want to use to define the axis """ Geom.__init__(self, **kwargs) self.var = var self.orient = orient self.params = [var] self._id = '%s_axis' % var self.name = '%s_axis' % var self.build_css() self.build_js()
def __init__(self, x, label=None, **kwargs): """ x : string name of the column you want to use to define the x-axis """ Geom.__init__(self, **kwargs) self.x = x self.label = label if label else x self.params = [x] self._id = 'xaxis' self.name = 'xaxis' self._build_css() self._build_js()
def __init__(self, var, orient=None, **kwargs): """ var : string name of the column you want to use to define the axis """ Geom.__init__(self, **kwargs) self.var = var self.orient = orient self.params = [var] self._id = '%s_axis'%var self.name = '%s_axis'%var self.build_css() self.build_js()
def __init__(self,x,y,**kwargs): """ This is a vertical bar chart - the height of each bar represents the magnitude of each class x : string name of the column that contains the class labels y : string name of the column that contains the magnitude of each class """ Geom.__init__(self,**kwargs) self.x = x self.y = y self.name = "bar" self._id = 'bar_%s_%s'%(self.x,self.y) self.build_js() self.build_css() self.params = [x,y] self.styles = dict([(k[0].replace('_','-'), k[1]) for k in kwargs.items()])
def __init__(self, x, y, **kwargs): """ This is a vertical bar chart - the height of each bar represents the magnitude of each class x : string name of the column that contains the class labels y : string name of the column that contains the magnitude of each class """ Geom.__init__(self, **kwargs) self.x = x self.y = y self.name = "bar" self._id = 'bar_%s_%s' % (self.x, self.y) self.build_js() self.build_css() self.params = [x, y] self.styles = dict([(k[0].replace('_', '-'), k[1]) for k in kwargs.items()])