Beispiel #1
0
    def svg(self):
        """
    Description:
    -----------

    """
        return JsD3.D3Svg(self.page,
                          "%s.select('svg')" % self.dom.d3.varId,
                          set_var=False)
Beispiel #2
0
  def d3(self):
    """
    Description:
    ------------

    :rtype: JsD3.D3Select
    """
    if self._d3 is None:
      self._d3 = JsD3.D3Select(self._report, selector="d3.select('#%s')" % self.htmlCode, setVar=False)
    return self._d3
Beispiel #3
0
  def d3(self):
    """
    Description:
    -----------
    Wrapper to the D3 library

    :rtype: JsD3.D3Select
    """
    if self._d3 is None:
      self._d3 = JsD3.D3Select(src=self._src, selector="d3.select('#%s')" % self._src.htmlCode)
    return self._d3
Beispiel #4
0
  def d3(self) -> JsD3.D3Select:
    """
    Description:
    -----------
    Property to the D3 library.

    :rtype: JsD3.D3Select
    """
    if self._d3 is None:
      self._d3 = JsD3.D3Select(page=self.page, component=self, selector="d3.select('#%s')" % self.htmlCode, setVar=False)
    return self._d3
Beispiel #5
0
  def d3(self) -> JsD3.D3Select:
    """
    Description:
    -----------
    Wrapper to the D3 library.

    :rtype: JsD3.D3Select
    """
    if self._d3 is None:
      self._d3 = JsD3.D3Select(component=self.component, selector="d3.select('#%s')" % self.component.htmlCode)
    return self._d3
Beispiel #6
0
    def d3(self):
        """
    Description:
    ------------
    Get a D3 component. Wrap the d3.select(this) statement.

    Related Pages:

      https://www.tutorialspoint.com/d3js/d3js_selections.htm
    """
        from epyk.core.js.packages import JsD3

        return JsD3.D3Select(selector="d3.select(this)", set_var=False)
Beispiel #7
0
  def d3(self) -> JsD3.D3Select:
    """
    Description:
    ------------
    Property to the underlying D3 module.

    Usage::

    :rtype: JsD3.D3Select
    """
    if self._d3 is None:
      self._d3 = JsD3.D3Select(page=self.page, selector="d3.select('#%s')" % self.htmlCode, set_var=False,
                               component=self)
    return self._d3
Beispiel #8
0
    def d3(self) -> JsD3.D3Select:
        """
    Description:
    -----------
    Property shortcut the D3 underlying base classes.

    :rtype: JsD3.D3Select
    """
        if self._d3 is None:
            self._d3 = JsD3.D3Select(page=self.page,
                                     selector="d3.select('#%s')" %
                                     self.htmlCode,
                                     set_var=False,
                                     component=self)
        return self._d3