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

    :rtype: JsVis.VisGraph3D
    """
        if self._js is None:
            self._js = JsVis.VisGraph3D(self._report, varName=self.chartId)
        return self._js
Beispiel #2
0
  def groups(self) -> JsVis.VisGroups:
    """
    Description:
    ------------

    Usage::

    :rtype: JsVis.VisGroups
    """
    if self.__grps is None:
      self.__grps = JsVis.VisGroups(page=self.page, set_var=True, js_code="%s_group" % self.chartId, component=self)
    return self.__grps
Beispiel #3
0
    def groups(self):
        """
    Description:
    ------------

    :rtype: JsVis.VisGroups
    """
        if self.__grps is None:
            self.__grps = JsVis.VisGroups(self._report,
                                          setVar=True,
                                          varName="%s_group" % self.chartId)
        return self.__grps
Beispiel #4
0
  def js(self) -> JsVis.VisGraph3D:
    """
    Description:
    -----------
    Return all the Javascript functions defined in the framework.
    THis is an entry point to the full Javascript ecosystem.

    Usage::

    :rtype: JsVis.VisGraph3D
    """
    if self._js is None:
      self._js = JsVis.VisGraph3D(component=self, page=self.page, js_code=self.chartId)
    return self._js
Beispiel #5
0
  def js(self) -> JsVis.VisTimeline:
    """
    Description:
    ------------
    Return all the Javascript functions defined in the framework.
    This is an entry point to the full Javascript ecosystem.

    Usage::

    :return: A Javascript object

    :rtype: JsVis.VisTimeline
    """
    if self._js is None:
      self._js = JsVis.VisTimeline(selector=self.chartId, component=self, page=self.page)
    return self._js
Beispiel #6
0
  def js(self) -> JsVis.VisGraph2D:
    """
    Description:
    -----------
    Return all the Javascript functions defined in the framework.
    THis is an entry point to the full Javascript ecosystem.

    Usage::

    :return: A Javascript object

    :rtype: JsVis.VisGraph2D
    """
    if self._js is None:
      self._js = JsVis.VisGraph2D(selector="window['%s']" % self.chartId, page=self.page, component=self)
    return self._js
Beispiel #7
0
  def js(self) -> JsVis.VisNetwork:
    """
    Description:
    ------------
    Return all the Javascript functions defined in the framework.
    This is an entry point to the full Javascript ecosystem.

    Usage::

    :return: A Javascript object.

    :rtype: JsVis.VisNetwork
    """
    if self._js is None:
      self._js = JsVis.VisNetwork(page=self.page, selector=self.chartId, set_var=False, component=self)
    return self._js
Beispiel #8
0
    def js(self):
        """
    Description:
    ------------
    Javascript base function

    Return all the Javascript functions defined in the framework.
    THis is an entry point to the full Javascript ecosystem.

    :return: A Javascript object

    :rtype: JsVis.VisTimeline
    """
        if self._js is None:
            self._js = JsVis.VisTimeline(selector=self.chartId, src=self)
        return self._js