8000 Added comments to the x-gap plugin. · leetcode/flot-plugin-collection@73ef2ff · GitHub
[go: up one dir, main page]

Skip to content

Commit 73ef2ff

Browse files
committed
Added comments to the x-gap plugin.
1 parent 3788298 commit 73ef2ff

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/flot/jquery.flot.xgap.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,25 @@
11
/**
22
* Flot plugin for adding gaps to the line in a line graph when a certain x threashold has been reached.
33
*
4+
* Usage:
5+
*
6+
* To configure this plugin, values must be added to two areas.
7+
*
8+
* The first is in the global x-axis options:
9+
* xaxis: {
10+
* insertGaps: true, // enable or disable this plugin
11+
* gapColor: rgba(100,100,100,0.2) // the color to use for gaps - undefined is no indication
12+
* }
13+
*
14+
* The second is in the series object for a set of data.
15+
* var series1 = {
16+
* data: [ ... ],
17+
* label: 'Series 1',
18+
* xGapThresh: 300 // A value of 300 here indicates that a x-gap > 300 will insert a gap
19+
* }
20+
*
21+
* Enjoy!
22+
*
423
* @author Joel Oughton
524
*/
625
(function($){

0 commit comments

Comments
 (0)
0