UNPKG

1.85 kBMarkdownView Raw
1## jquery.flot.drawSeries.js
2
3This plugin is used by flot for drawing lines, plots, bars or area.
4
5### Public methods
6
7
8- drawSeriesLines(series, ctx, plotOffset, plotWidth, plotHeight, drawSymbol, getColorOrGradient)
9
10 This function is used for drawing lines or area fill. In case the series has line decimation function
11 attached, before starting to draw, as an optimization the points will first be decimated.
12
13 The series parameter contains the series to be drawn on ctx context. The plotOffset, plotWidth and
14 plotHeight are the corresponding parameters of flot used to determine the drawing surface.
15 The function getColorOrGradient is used to compute the fill style of lines and area.
16
17
18- drawSeriesPoints(series, ctx, plotOffset, plotWidth, plotHeight, drawSymbol, getColorOrGradient)
19
20 This function is used for drawing points using a given symbol. In case the series has points decimation
21 function attached, before starting to draw, as an optimization the points will first be decimated.
22
23 The series parameter contains the series to be drawn on ctx context. The plotOffset, plotWidth and
24 plotHeight are the corresponding parameters of flot used to determine the drawing surface.
25 The function drawSymbol is used to compute and draw the symbol chosen for the points.
26
27
28- drawSeriesBars(series, ctx, plotOffset, plotWidth, plotHeight, drawSymbol, getColorOrGradient)
29
30 This function is used for drawing series represented as bars. In case the series has decimation
31 function attached, before starting to draw, as an optimization the points will first be decimated.
32
33 The series parameter contains the series to be drawn on ctx context. The plotOffset, plotWidth and
34 plotHeight are the corresponding parameters of flot used to determine the drawing surface.
35 The function getColorOrGradient is used to compute the fill style of bars.