oioioi.statistics.plottypes¶
Module Contents¶
Classes¶
Uses the following keys from :param data: |
|
Uses the following keys from :param data: : |
|
Base class for static (non-updating) plots using Highcharts library. |
|
Uses the following extra keys from :param data: : |
|
Uses the following extra keys from :param data: : |
|
Base class for static (non-updating) plots using Highcharts library. |
|
Base class for static (non-updating) plots using Highcharts library. |
- class oioioi.statistics.plottypes.PlotType[source]¶
Bases:
object- head_libraries()[source]¶
Returns a list containing paths to all CSS and JS files required to plot data. The paths should be relative to static folder. The list will be converted to HTML by controller.
Currently supported extensions: .css, .js
- abstract render_plot(request, data, plot_id)[source]¶
Renders an instance of a plot to HTML.
- Parameters
data (Dict) – Dict describing a plot, specific for plot type.
plot_id – Unique number used to create a ‘namespace’ in HTML. For example, Highcharts JS use an id attribute to identify div containing the plot.
- class oioioi.statistics.plottypes.PlainTextPlot[source]¶
Bases:
PlotTypeUses the following keys from :param data::
textplain text to be displayed- render_plot(request, data, plot_id)[source]¶
Renders an instance of a plot to HTML.
- Parameters
data (Dict) – Dict describing a plot, specific for plot type.
plot_id – Unique number used to create a ‘namespace’ in HTML. For example, Highcharts JS use an id attribute to identify div containing the plot.
- class oioioi.statistics.plottypes.TablePlot[source]¶
Bases:
PlotTypeUses the following keys from :param data: :
keyslist of headersserieslist of series namesdatarectantular array of dataplot_nametable name to be used as a caption- head_libraries()[source]¶
Returns a list containing paths to all CSS and JS files required to plot data. The paths should be relative to static folder. The list will be converted to HTML by controller.
Currently supported extensions: .css, .js
- render_plot(request, data, plot_id)[source]¶
Renders an instance of a plot to HTML.
- Parameters
data (Dict) – Dict describing a plot, specific for plot type.
plot_id – Unique number used to create a ‘namespace’ in HTML. For example, Highcharts JS use an id attribute to identify div containing the plot.
- class oioioi.statistics.plottypes.StaticHighchartsPlot[source]¶
Bases:
PlotTypeBase class for static (non-updating) plots using Highcharts library. Uses the following keys from :param data: :
serieslist of series namesdatarectantular array of datatitlesdictionary of axes titlesx_min,y_min,x_max,y_maxfixed axes boundsseries_extra_optionslist of extra options for each seriehighcharts_extra_optionshook for adding extra Highcharts options
- head_libraries()[source]¶
Returns a list containing paths to all CSS and JS files required to plot data. The paths should be relative to static folder. The list will be converted to HTML by controller.
Currently supported extensions: .css, .js
- highcharts_options(data)[source]¶
Function generating options for Highcharts chart, as specified in http://www.highcharts.com/docs/getting-started/how-to-set-options
- render_plot(request, data, plot_id)[source]¶
Renders an instance of a plot to HTML.
- Parameters
data (Dict) – Dict describing a plot, specific for plot type.
plot_id – Unique number used to create a ‘namespace’ in HTML. For example, Highcharts JS use an id attribute to identify div containing the plot.
- class oioioi.statistics.plottypes.ColumnStaticHighchartsPlot[source]¶
Bases:
StaticHighchartsPlotUses the following extra keys from :param data: :
keyslist of column names- highcharts_options(data)[source]¶
Function generating options for Highcharts chart, as specified in http://www.highcharts.com/docs/getting-started/how-to-set-options
- class oioioi.statistics.plottypes.BarPercentStaticHighchartsPlot[source]¶
Bases:
StaticHighchartsPlotUses the following extra keys from :param data: :
keyslist of rows names- highcharts_options(data)[source]¶
Function generating options for Highcharts chart, as specified in http://www.highcharts.com/docs/getting-started/how-to-set-options
- class oioioi.statistics.plottypes.XYStaticHighchartsPlot[source]¶
Bases:
StaticHighchartsPlotBase class for static (non-updating) plots using Highcharts library. Uses the following keys from :param data: :
serieslist of series namesdatarectantular array of datatitlesdictionary of axes titlesx_min,y_min,x_max,y_maxfixed axes boundsseries_extra_optionslist of extra options for each seriehighcharts_extra_optionshook for adding extra Highcharts options
- highcharts_options(data)[source]¶
Function generating options for Highcharts chart, as specified in http://www.highcharts.com/docs/getting-started/how-to-set-options
- class oioioi.statistics.plottypes.PointsToSourceLengthProblemPlot[source]¶
Bases:
XYStaticHighchartsPlotBase class for static (non-updating) plots using Highcharts library. Uses the following keys from :param data: :
serieslist of series namesdatarectantular array of datatitlesdictionary of axes titlesx_min,y_min,x_max,y_maxfixed axes boundsseries_extra_optionslist of extra options for each seriehighcharts_extra_optionshook for adding extra Highcharts options
- head_libraries()[source]¶
Returns a list containing paths to all CSS and JS files required to plot data. The paths should be relative to static folder. The list will be converted to HTML by controller.
Currently supported extensions: .css, .js
- highcharts_options(data)[source]¶
Function generating options for Highcharts chart, as specified in http://www.highcharts.com/docs/getting-started/how-to-set-options