示例#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()])
示例#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()
示例#3
0
文件: line.py 项目: ABcDexter/d3py
 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()
示例#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()
示例#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()
示例#6
0
文件: area.py 项目: ABcDexter/d3py
 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()
示例#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()
示例#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()
示例#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()
示例#10
0
文件: xaxis.py 项目: xeniaqian94/d3py
 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()
示例#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()
示例#12
0
文件: bar.py 项目: andrewgiessel/d3py
 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()])
示例#13
0
文件: bar.py 项目: cheekybastard/d3py
 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()])