Ejemplo n.º 1
0
 def dom(self):
     """
 :rtype: JsDc.Sunburst
 """
     if self._dom is None:
         self._dom = JsDc.Sunburst(self._report,
                                   varName=self.chartId,
                                   parent=self)
     return self._dom
Ejemplo n.º 2
0
  def dom(self):
    """
    Description:
    -----------

    :rtype: JsDc.GeoChoropleth
    """
    if self._dom is None:
      self._dom = JsDc.GeoChoropleth(self._report, varName=self.chartId, parent=self)
    return self._dom
Ejemplo n.º 3
0
    def dom(self) -> JsDc.GeoChoropleth:
        """
    Description:
    -----------
    Return all the Javascript functions defined for an HTML Component.
    Those functions will use plain javascript by default.

    :rtype: JsDc.GeoChoropleth
    """
        if self._dom is None:
            self._dom = JsDc.GeoChoropleth(self.page,
                                           js_code=self.chartId,
                                           component=self)
        return self._dom
Ejemplo n.º 4
0
    def dom(self) -> JsDc.Sunburst:
        """
    Description:
    -----------

    Usage::

    :rtype: JsDc.Sunburst
    """
        if self._dom is None:
            self._dom = JsDc.Sunburst(page=self.page,
                                      js_code=self.chartId,
                                      component=self)
        return self._dom
Ejemplo n.º 5
0
    def dom(self):
        """
    Description:
    -----------
    A series is a set of data. You can plot a chart based on the data.

    Related Pages:

      https://www.tutorialspoint.com/dcjs/dcjs_series_chart.htm

    :rtype: JsDc.Series
    """
        if self._dom is None:
            self._dom = JsDc.Series(self._report,
                                    varName=self.chartId,
                                    parent=self)
        return self._dom
Ejemplo n.º 6
0
    def dom(self):
        """
    Description:
    -----------
    A pie chart is a circular statistical graph. It is divided into slices to show a numerical proportion

    Related Pages:

      https://www.tutorialspoint.com/dcjs/dcjs_pie_chart.htm

    :rtype: JsDc.Pie
    """
        if self._dom is None:
            self._dom = JsDc.Pie(self._report,
                                 varName=self.chartId,
                                 parent=self)
        return self._dom
Ejemplo n.º 7
0
    def dom(self):
        """
    Description:
    -----------
    Bar chart is one of the most commonly used types of graph and are used to display and compare the number, frequency or other measure (e.g. mean) for different discrete categories or groups.
    The graph is constructed such that the heights or lengths of the different bars are proportional to the size of the category they represent.

    Related Pages:

      https://www.tutorialspoint.com/dcjs/dcjs_bar_chart.htm

    :rtype: JsDc.Bar
    """
        if self._dom is None:
            self._dom = JsDc.Bar(self._report,
                                 varName=self.chartId,
                                 parent=self)
        return self._dom
Ejemplo n.º 8
0
    def dom(self) -> JsDc.Series:
        """
    Description:
    -----------
    A series is a set of data. You can plot a chart based on the data.

    Usage::

    Related Pages:

      https://www.tutorialspoint.com/dcjs/dcjs_series_chart.htm

    :rtype: JsDc.Series
    """
        if self._dom is None:
            self._dom = JsDc.Series(page=self.page,
                                    js_code=self.chartId,
                                    component=self)
        return self._dom
Ejemplo n.º 9
0
    def dom(self) -> JsDc.Pie:
        """
    Description:
    -----------
    A pie chart is a circular statistical graph. It is divided into slices to show a numerical proportion.

    Usage::

    Related Pages:

      https://www.tutorialspoint.com/dcjs/dcjs_pie_chart.htm

    :rtype: JsDc.Pie
    """
        if self._dom is None:
            self._dom = JsDc.Pie(page=self.page,
                                 js_code=self.chartId,
                                 component=self)
        return self._dom
Ejemplo n.º 10
0
    def dom(self):
        """
    Description:
    -----------
    A line chart is used to display information as a series of data points connected by straight lines.
    A data point represents two values, one plotted along the horizontal axis and another along the vertical axis.
    For example, the popularity of food items can be drawn as a line chart in such a way that the food item is represented along the x-axis and its popularity is represented along the y-axis.

    Related Pages:

      https://www.tutorialspoint.com/dcjs/dcjs_line_chart.htm

    :rtype: JsDc.JsLine
    """
        if self._dom is None:
            self._dom = JsDc.Line(self._report,
                                  varName=self.chartId,
                                  parent=self)
        return self._dom
Ejemplo n.º 11
0
    def dom(self):
        """
    Description:
    -----------
    A bubble chart is used to display three dimensions of the data.
    It is a variation of scatter chart, in which the data points are replaced with bubbles. The bubble sizes are represented with respect to the data dimension.
    It uses horizontal and vertical axes as value axes.

    Related Pages:

      https://www.tutorialspoint.com/dcjs/dcjs_bubble_chart.htm

    :rtype: JsDc.Bubble
    """
        if self._dom is None:
            self._dom = JsDc.Bubble(self._report,
                                    varName=self.chartId,
                                    parent=self)
        return self._dom
Ejemplo n.º 12
0
    def dom(self):
        """
    Description:
    -----------
    A scatter plot is a type of mathematical diagram.
    It is represented using the Cartesian coordinates to display values for typically two variables for a set of data.
    The data is displayed as a collection of points and the points maybe colored.

    Related Pages:

      https://www.tutorialspoint.com/dcjs/dcjs_scatter_plot.htm

    :rtype: JsDc.Scatter
    """
        if self._dom is None:
            self._dom = JsDc.Scatter(self._report,
                                     varName=self.chartId,
                                     parent=self)
        return self._dom
Ejemplo n.º 13
0
# ------------------------------------------------------------------------------------------------------------------
#
f = JsUtils.JsFile("Datatable", path=r"../outs")
f.writeJs([
    JsDatatable.DatatableAPI().draw('page').clear().cell().data(),
    JsDatatable.DatatableAPI().draw('page').state(),
    JsDatatable.DatatableAPI().columns([1, 2]).search("%test").draw().jquery_nodes(),
    JsDatatable.DatatableAPI().columns([1, 2]).search("%test").draw()
])
f.close()


# ------------------------------------------------------------------------------------------------------------------
#
dcChart = JsDc.DC()
f = JsUtils.JsFile("DC", path=r"../outs")
f.writeJs([
    dcChart.width(23).height(23).toStr()
])
f.close()


# ------------------------------------------------------------------------------------------------------------------
#
#repObj = JsRequire.JsRequire(False)
#print(repObj.getImports(['socket.io', 'd3', 'bootstrap', 'tabulator', 'c3', 'datatables']))


# ------------------------------------------------------------------------------------------------------------------
#