Module: examsAvgChartView

examsAvgChartView

new require("examsAvgChartView")() → {function}

Average exams chart
Source:
See:
Requires:
Returns:
Backbone.View constructor
Type
function
Source:

Extends

Members

dataproc :object

Data processing helpers
Type:
  • object
Source:

examType :string

Exam type declaration
Type:
  • string
Source:

options :object

Chart config extension object
Type:
  • object
Source:

type :string

Chart type
Type:
  • string
Source:

Methods

dataproc@respDivider(dividends, divisors, range, shift)

Series data formatter. Divides 1st array elements by 2nd's elements with same index
Parameters:
Name Type Argument Description
dividends array Dividends array
divisors array Divisors array
range array Intersection indexes
shift number <optional>
Source:

update(data) → {object|undefined}

Updates chart state by new data
Parameters:
Name Type Argument Description
data array <optional>
new data
Source:
Returns:
chart.series or undefined
Type
object | undefined