Exemplo n.º 1
0
 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()])
Exemplo n.º 2
0
 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()
Exemplo n.º 3
0
 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()
Exemplo n.º 4
0
 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()
Exemplo n.º 5
0
 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()
Exemplo n.º 6
0
 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()
Exemplo n.º 7
0
 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()
Exemplo n.º 8
0
 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()
Exemplo n.º 9
0
 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()
Exemplo n.º 10
0
 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()
Exemplo n.º 11
0
 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()
Exemplo n.º 12
0
 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()])
Exemplo n.º 13
0
 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()])