@kevinburke/flot 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/CHANGELOG.md +1814 -0
  2. package/LICENSE.txt +22 -0
  3. package/README.md +119 -0
  4. package/dist/flot.js +9830 -0
  5. package/dist/flot.min.js +2 -0
  6. package/dist/flot.min.js.map +1 -0
  7. package/dist/flot.mjs +9805 -0
  8. package/dist/jquery.flot.js +9869 -0
  9. package/dist/jquery.flot.min.js +2 -0
  10. package/dist/jquery.flot.min.js.map +1 -0
  11. package/dist/plugins/jquery.flot.crosshair.js +207 -0
  12. package/dist/plugins/jquery.flot.crosshair.min.js +2 -0
  13. package/dist/plugins/jquery.flot.crosshair.min.js.map +1 -0
  14. package/dist/plugins/jquery.flot.image.js +261 -0
  15. package/dist/plugins/jquery.flot.image.min.js +2 -0
  16. package/dist/plugins/jquery.flot.image.min.js.map +1 -0
  17. package/dist/plugins/jquery.flot.pie.js +815 -0
  18. package/dist/plugins/jquery.flot.pie.min.js +2 -0
  19. package/dist/plugins/jquery.flot.pie.min.js.map +1 -0
  20. package/dist/plugins/jquery.flot.resize.js +62 -0
  21. package/dist/plugins/jquery.flot.resize.min.js +2 -0
  22. package/dist/plugins/jquery.flot.resize.min.js.map +1 -0
  23. package/dist/plugins/jquery.flot.threshold.js +148 -0
  24. package/dist/plugins/jquery.flot.threshold.min.js +2 -0
  25. package/dist/plugins/jquery.flot.threshold.min.js.map +1 -0
  26. package/docs/API.md +1767 -0
  27. package/docs/PLUGINS.md +143 -0
  28. package/docs/absRelTime.md +42 -0
  29. package/docs/browser.md +24 -0
  30. package/docs/canvaswrapper.md +116 -0
  31. package/docs/composeImages.md +32 -0
  32. package/docs/drawSeries.md +35 -0
  33. package/docs/hover.md +21 -0
  34. package/docs/interactions.md +57 -0
  35. package/docs/logaxis.md +27 -0
  36. package/docs/navigate.md +110 -0
  37. package/package.json +53 -0
  38. package/source/helpers.js +168 -0
  39. package/source/index.js +70 -0
  40. package/source/jquery-adapter.js +83 -0
  41. package/source/jquery.canvaswrapper.js +546 -0
  42. package/source/jquery.colorhelpers.js +198 -0
  43. package/source/jquery.flot.axislabels.js +214 -0
  44. package/source/jquery.flot.browser.js +53 -0
  45. package/source/jquery.flot.categories.js +202 -0
  46. package/source/jquery.flot.composeImages.js +327 -0
  47. package/source/jquery.flot.crosshair.js +203 -0
  48. package/source/jquery.flot.drawSeries.js +699 -0
  49. package/source/jquery.flot.errorbars.js +375 -0
  50. package/source/jquery.flot.fillbetween.js +254 -0
  51. package/source/jquery.flot.flatdata.js +47 -0
  52. package/source/jquery.flot.hover.js +354 -0
  53. package/source/jquery.flot.image.js +252 -0
  54. package/source/jquery.flot.js +2814 -0
  55. package/source/jquery.flot.legend.js +444 -0
  56. package/source/jquery.flot.logaxis.js +299 -0
  57. package/source/jquery.flot.navigate.js +842 -0
  58. package/source/jquery.flot.pie.js +811 -0
  59. package/source/jquery.flot.resize.js +57 -0
  60. package/source/jquery.flot.saturated.js +40 -0
  61. package/source/jquery.flot.selection.js +552 -0
  62. package/source/jquery.flot.stack.js +220 -0
  63. package/source/jquery.flot.symbol.js +98 -0
  64. package/source/jquery.flot.threshold.js +144 -0
  65. package/source/jquery.flot.time.js +584 -0
  66. package/source/jquery.flot.touch.js +320 -0
  67. package/source/jquery.flot.touchNavigate.js +357 -0
  68. package/source/jquery.flot.uiConstants.js +9 -0
  69. package/source/jquery.js +9473 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,1814 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ Starting with 5.0.0, this changelog tracks the @kevinburke/flot fork.
6
+ For earlier upstream history, see the [flot/flot repository](https://github.com/flot/flot).
7
+
8
+ ## [5.0.0] - 2026-04-14
9
+
10
+ First stable release of the @kevinburke/flot fork. The plotting API is
11
+ unchanged from flot 4.2.6; this release modernizes the build, removes
12
+ the jQuery requirement, and eliminates all vendored dependencies.
13
+
14
+ ### Breaking Changes
15
+
16
+ - **jQuery is no longer required.** The core library works standalone.
17
+ A jQuery adapter (`dist/jquery.flot.js`) is included for backwards
18
+ compatibility. Import the adapter if you need `$.plot()`.
19
+ - **Renamed** from `flot` to `@kevinburke/flot`.
20
+ - **Minimum browser target** is ES2019 (Chrome 73+, Firefox 67+,
21
+ Safari 12.1+, Edge 79+). IE is no longer supported.
22
+ - **Build output paths changed:**
23
+ - `dist/flot.js` / `dist/flot.min.js` — core (no jQuery)
24
+ - `dist/flot.mjs` — ES module
25
+ - `dist/jquery.flot.js` / `dist/jquery.flot.min.js` — jQuery adapter
26
+ - `dist/plugins/` — standalone plugins
27
+ - **Vendored libraries removed:** `jquery.event.drag.js` replaced with
28
+ native Pointer Events, `jquery.mousewheel.js` replaced with native
29
+ `wheel` event, `globalize.js` removed (was unused). The `lib/`
30
+ directory no longer exists.
31
+
32
+ ### Changed
33
+
34
+ - Build toolchain: Rollup replaces gulp 4 + babel 7 + uglify-js. All
35
+ source files are ES modules with explicit imports/exports.
36
+ - Test runner: Vitest (unit) + Playwright (browser) replace Karma +
37
+ Jasmine. All original assertions preserved.
38
+ - Linter: Biome 1.9 replaces eslint-config-standard 7.
39
+ - CI: GitHub Actions replaces Travis CI and CircleCI.
40
+ - Navigate and selection plugins use Pointer Events instead of the
41
+ vendored jquery.event.drag plugin.
42
+ - Dev dependency count reduced from ~1,000 packages to ~90.
43
+ - Canonical build interface is Make.
44
+
45
+ ### Added
46
+
47
+ - ES module output (`dist/flot.mjs`) with `package.json` `exports`
48
+ field for modern bundlers.
49
+ - jQuery-free API: `import { plot } from '@kevinburke/flot'`.
50
+ - `source/helpers.js` — vanilla DOM/utility functions replacing jQuery
51
+ internals.
52
+ - `source/jquery-adapter.js` — optional jQuery adapter.
53
+ - Bundle size budget: size-limit gates at 30 KB brotli.
54
+ - Example smoke tests via Playwright.
55
+ - Unit tests for `helpers.extend` edge cases.
56
+
57
+ ### Removed
58
+
59
+ - jQuery as a required dependency (now optional peer dep).
60
+ - `lib/` directory: `jquery.event.drag.js`, `jquery.mousewheel.js`,
61
+ `globalize.js`, `globalize.culture.en-US.js`.
62
+ - gulp, babel, uglify-js, karma, jasmine, eslint, and all related
63
+ plugins and configs.
64
+ - Travis CI and CircleCI configs.
65
+ - `flot-2.1.3.tgz`, `build.js`, `build.mjs`, `.npmignore`.
66
+
67
+ ## [5.0.0-alpha.0] - 2026-04-12
68
+
69
+ This is the first release of the @kevinburke/flot fork. The plotting API is
70
+ unchanged from flot 4.2.6; this release modernizes everything around it.
71
+
72
+ ### Breaking Changes
73
+
74
+ - **Renamed** from `flot` to `@kevinburke/flot`.
75
+ - **Minimum browser target** is now ES2019 (Chrome 73+, Firefox 67+,
76
+ Safari 12.1+, Edge 79+). IE is no longer supported.
77
+ - **Build output paths changed**. The minified bundle is now at
78
+ `dist/jquery.flot.min.js` (was `dist/es5/jquery.flot.js`).
79
+ - **Standalone plugins** are now built to `dist/plugins/` as individual
80
+ minified files (crosshair, image, pie, resize, threshold). The old
81
+ build did not produce these.
82
+
83
+ ### Changed
84
+
85
+ - Build toolchain: gulp 4 + babel 7 + uglify-js replaced with a single
86
+ `build.mjs` script using terser at ES2019. Produces unminified,
87
+ minified, and sourcemap outputs.
88
+ - Test runner: Karma + Jasmine replaced with Vitest (unit tests) and
89
+ Playwright (browser tests). All original Jasmine assertions are
90
+ preserved via a browser-side compatibility layer.
91
+ - Linter: eslint-config-standard 7 replaced with Biome 1.9.
92
+ - CI: Travis CI and CircleCI replaced with GitHub Actions.
93
+ - Dev dependency count reduced from ~1,000 packages to ~90.
94
+ - Canonical build interface is now Make (`make build`, `make test`,
95
+ `make ci`).
96
+
97
+ ### Added
98
+
99
+ - Bundle size budget: size-limit gates the main bundle at 30 KB brotli.
100
+ - Example smoke tests: Playwright loads 6 example pages and asserts no
101
+ JS errors.
102
+ - `dist/plugins/` directory with individually minified standalone plugins.
103
+
104
+ ### Removed
105
+
106
+ - gulp, babel, uglify-js, karma, jasmine, eslint, and all related
107
+ plugins and configs.
108
+ - Travis CI and CircleCI configs.
109
+ - `flot-2.1.3.tgz` (orphan tarball checked into the repo).
110
+ - `.npmignore` (replaced by `package.json` `files` field).
111
+ - `update_docs.js` (literate-js doc generator, unused).
112
+ - `build.js` (redundant alternate concatenation script).
113
+ - `dont-break` integration.
114
+
115
+ ## [4.2.6]
116
+
117
+ ### Changed
118
+
119
+ - Force new version for deployment.
120
+
121
+ ## [4.2.5]
122
+
123
+ ### Changed
124
+
125
+ - Test dependency updates and intermittent test fixes.
126
+
127
+ ## [4.2.4]
128
+
129
+ ### Bug Fixes
130
+
131
+ - Fix step rendering not connecting last point with line.
132
+
133
+ ## [4.2.3]
134
+
135
+ ### Bug Fixes
136
+
137
+ - Fix ticks not being generated in the right location.
138
+
139
+ ## [4.2.2]
140
+
141
+ ### Bug Fixes
142
+
143
+ - Fix computing auto-scaled range for horizontal bar series.
144
+
145
+ ## [4.2.1]
146
+
147
+ ### Bug Fixes
148
+
149
+ - Fix displaying y-axis endpoint ticks on horizontal bar graphs.
150
+
151
+ ## [4.2.0]
152
+
153
+ ### Changes
154
+
155
+ - No notable changes documented.
156
+
157
+ ## [4.1.1]
158
+
159
+ ### Bug Fixes
160
+
161
+ - Clear pie chart hover highlights on mouse leave.
162
+
163
+ ## [4.1.0]
164
+
165
+ ### Added
166
+
167
+ - New hook that allows users to extend the default behavior of the
168
+ `findNearbyItems` method.
169
+
170
+ ## [4.0.0]
171
+
172
+ ### Breaking Changes
173
+
174
+ - New major release requiring inclusion of a new script to maintain
175
+ correct behavior. Replaces the previous patch release from 3.2.11.
176
+
177
+ ### Bug Fixes
178
+
179
+ - Fix hover issue with bar plots.
180
+
181
+ ## [3.2.0]
182
+
183
+ ### Changes ###
184
+
185
+ - Removed CORS stylesheet support
186
+ - Added the category plugin back into the distribution
187
+ - [Changed how bar width is computed.](https://github.com/flot/flot/pull/1663) - We now will filter unique x-values and then sort them before computing bar width.
188
+
189
+ ### Bug Fixes ###
190
+
191
+ - [Issue 1645](https://github.com/flot/flot/issues/1645) (change [1656](https://github.com/flot/flot/pull/1656)) - Refactoring hover plugin so events get registered in proper order.
192
+ - [Issue 1642](https://github.com/flot/flot/issues/1642) (change [1657](https://github.com/flot/flot/pull/1657)) - Remove a canvas resizing implementation that doesn't support scaling.
193
+ - [Issue 1638](https://github.com/flot/flot/issues/1638) (change [1660](https://github.com/flot/flot/pull/1660)) - Fix overloading of date types to allow using methods like 'setFullYear()'
194
+ - [Issue 1664](https://github.com/flot/flot/issues/1664) (change [1665](https://github.com/flot/flot/pull/1665)) - Fix issue with fill when data has null values.
195
+
196
+ ## [3.1.0]
197
+
198
+ ### Changes ###
199
+
200
+ - We now are triggering a second onDrawingDone event on the placeholder object (in addition to the eventholder).
201
+ - Added support for loading stylesheets in cross origin scenarios (this has since been removed as this was deemed a bit of a hack and can still be accomplished by the user of flot through other means).
202
+
203
+ ## [3.0.0]
204
+
205
+ ### Breaking Change ###
206
+
207
+ - Setting 'pan: {enableTouch: true}' in the options will no longer automatically turn on pinch gestures for touch support. You must set 'zoom: {enableTouch: true}' in the options to enable pinch support (which was always a zoom operation).
208
+
209
+ ## [2.2.0]
210
+
211
+ ### Changes ###
212
+
213
+ - Added new pan modes for mouse and touch interactions.
214
+
215
+ ### Bug fixes ###
216
+
217
+ - Fixed issue with empty string tick label being replaced by auto-generated label.
218
+ - Fixed issue with hovering over bars no longer working.
219
+ - Fixed tracking example to update legend again.
220
+ - Fixed issue with tooltips not being correct for stacked graphs.
221
+
222
+ ## [2.0.1]
223
+
224
+ ## Notable Breaking Changes For Existing flot Users
225
+ ### Series Options:
226
+ Before:
227
+
228
+ var plot = $.plot(placeholder, data, {
229
+ bars: { show: true, barWidth: 0.5, fill: 0.9 },
230
+ xaxis: { ticks: [], autoscaleMargin: 0.02 },
231
+ yaxis: { min: -2, max: 2 },
232
+ grid: { markings: markings }
233
+ });
234
+
235
+ After:
236
+
237
+ var plot = $.plot(placeholder, data, {
238
+ series: {
239
+ bars: { show: true, barWidth: 0.5, fill: 0.9 }
240
+ },
241
+ xaxis: { show: false },
242
+ yaxis: { min: -2, max: 2, autoScale: "none" },
243
+ grid: { markings: markings }
244
+ });
245
+
246
+ Note: Backwards compatibility was removed such that we require series options to be encapsulated.
247
+
248
+ ### Time Formatting:
249
+ Before:
250
+
251
+ $.plot("#placeholder", [d], {
252
+ xaxis: {
253
+ mode: "time",
254
+ minTickSize: [1, "year"],
255
+ min: (new Date(1996, 0, 1)).getTime(),
256
+ max: (new Date(2000, 0, 1)).getTime()
257
+ }
258
+ });
259
+
260
+ After:
261
+
262
+ $.plot("#placeholder", [d], {
263
+ xaxis: {
264
+ mode: "time",
265
+ minTickSize: [1, "year"],
266
+ autoScale: "none",
267
+ min: (new Date(1996, 0, 1)).getTime(),
268
+ max: (new Date(2000, 0, 1)).getTime(),
269
+ timeBase: "milliseconds"
270
+ }
271
+ });
272
+
273
+ Note: A new capability allows for data (and min/max settings of axes) to be specified with a `timeBase` of either seconds or milliseconds. So, a range from 1-10 can either represent 9 milliseconds of data, or 9 seconds of data, depending on the setting of `timeBase` (whose default is "seconds").
274
+
275
+ ### Script Locations:
276
+
277
+ All scripts have been moved under the 'source' folder, so you will need to update all reference scripts to point to new location. Or you can use the file dist/es5/jquery.flot.js which is all source combined and minified.
278
+
279
+ ### SVG rendering:
280
+
281
+ We now render axes and the legend through SVG. Any CSS targeting specific DOM objects related to these will now be broken.
282
+
283
+ ## New Features:
284
+
285
+ ### Auto-scaling options (`autoScale` property of axes)
286
+ - Allows for various ways to auto-scale the axes in response to plotting new data (see API.md).
287
+ - The public method `setupGrid` now takes a boolean argument to indicate whether or not to perform an autoScale according to the current setting on the axes.
288
+
289
+ ### Tick Label visibility options
290
+ - Allows a user to specify whether to show tick labels on all major ticks, at endpoints only, all (major ticks and endpoints), or none at all.
291
+
292
+ ### Axis inversion
293
+ - An axis now be inverted (swap min/max positions) through the `inverted` option on the axes.
294
+
295
+ ### Axis grid lines
296
+ - Grid lines can now be turned off or on for individual axes.
297
+
298
+ ### Axis `boxPosition`
299
+ - Allows a user to specify the position an axis is rendered within its box.
300
+
301
+ ### New `barWidth` options
302
+
303
+ - Allows for the number supplied as the width to be treated either as a relative value related to the minimum distance between consecutive points, or as an absolute value in terms of units on the axis.
304
+
305
+ ### New logaxis plugin!
306
+ - Example is provided
307
+
308
+ ### Touch navigation!
309
+ - Use the touchNavigate plugin to access touch panning gestures
310
+
311
+ ## Numerous bug fixes
312
+
313
+ ## [1.1.5]
314
+
315
+ ### Bug fixes ###
316
+ interpolation should not occur outside the provided data
317
+
318
+ ## [1.1.4]
319
+
320
+ ### Changes ###
321
+ - making graph screen capture work for Safari
322
+
323
+ ## [1.1.3]
324
+
325
+ ### Changes ###
326
+ - document flot plugins
327
+ - refactor default tick generators and formatters and logaxis
328
+
329
+ ### Bug fixes ###
330
+ - Fixed some browser detection functions, which depend on other similar functions
331
+
332
+ ## [1.1.2]
333
+
334
+ ### Changes ###
335
+ - move backgroundColor and backgroundOpacity from legend settings to css
336
+
337
+ ## [1.1.0]
338
+
339
+ ### Changes ###
340
+ - getPixelRatio moved from the plot instance to $.plot.browser namespace
341
+ - Added 'onDrawingDone' custom event, dispatched by triggerRedrawOverlay.
342
+
343
+ ### Bug fixes ###
344
+ - Pinch events fired too fast and slowing down the drawing
345
+
346
+ ## [1.0.10]
347
+
348
+ ### Bug fixes ###
349
+ - Skipping the first point when looking for the nearest point
350
+ - Wrong coordinates when tapping a point
351
+
352
+ ## [1.0.9]
353
+
354
+ ### Bug fixes ###
355
+ - Panning the plot in Firefox using any mouse button
356
+ - Overlay canvas cleared too often
357
+ - Click or mouse wheel pressed while dragging will stop drag event
358
+
359
+ ## [1.0.8]
360
+
361
+ ### Bug fixes ###
362
+ - tspan leak for absolute time axis fix
363
+ - Fix snapshot image size for pixel ratios less than 1
364
+
365
+ ## [1.0.7]
366
+ ### Changes ###
367
+ - Generate plothover event for tap on point
368
+ - Support for mobile safari browser for snapshots
369
+
370
+ ### Bug fixes ###
371
+ - Fix legend background color
372
+
373
+ ## [1.0.6]
374
+ ### Bug fixes ###
375
+ - Hang caused by 'use' elements in SVGs when calling composeImages
376
+
377
+ ## [1.0.5]
378
+ ### Changes ###
379
+ - Activate graph navigation on double click
380
+
381
+ ### Bug fixes ###
382
+ - Wrong tick labels position
383
+
384
+ ## [1.0.4]
385
+ ### Changes ###
386
+ - New getPixelRatio() helper function
387
+
388
+ ### Bug fixes ###
389
+ - Multi lines labels
390
+
391
+
392
+ ## [1.0.3]
393
+ ### Changes ###
394
+
395
+ - Change jquery.flot.legend.js to use SVG and add it to the distribution
396
+
397
+ ### Bug fixes ###
398
+
399
+ - No minimum margin for axis tick labels
400
+ - Fixed pixel ratio for devices with a different pixel ratio than 1,
401
+ for creating graph snapshots
402
+
403
+
404
+ ## [1.0.2]
405
+ ### Changes ###
406
+
407
+ - Expose the composeImages as part of the plot instance
408
+
409
+ ### Bug fixes ###
410
+
411
+ - The speed of the zoom made on the Mac track pad
412
+ - Invalid SVG width and height values red by composeImages on Firefox
413
+
414
+
415
+ ## [1.0.1]
416
+ ### Changes ###
417
+
418
+ - Added jquery.flot.composeImages.js to distribution
419
+
420
+
421
+ ## [1.0.0]
422
+
423
+ ### Changes ###
424
+
425
+ - single file distribution: dist/es5/jquery.flot.js
426
+ - Edge and Safari support
427
+ - PhantomJS and IE are no longer supported
428
+ - the axis and tick labels are now rendered using SVG text and g nodes instead of div
429
+ - autoscale option from axis API renamed autoScale
430
+ - autoscaleMargin option for scale loose renamed autoScaleMargin
431
+ - changelog NEWS.md renamed to CHANGELOG.md
432
+
433
+ ## engineering-flot 0.6.0 ##
434
+
435
+ ### Changes ###
436
+
437
+ - change API by adding function to interpolate the position between nearest neighbors on OY axis
438
+
439
+ ## engineering-flot 0.5.7 ##
440
+
441
+ ### Changes ###
442
+
443
+ - three fingers pinch affects browser zoom
444
+ - consider axisZoom and plotZoom flags for enabling axis zooming, axisPan and plotPan for panning
445
+
446
+ ### Bug fixes ###
447
+
448
+ - touch pan for axis, zoom plot and zoom axis
449
+
450
+ ## engineering-flot 0.5.6 ##
451
+
452
+ ### Bug fixes ###
453
+
454
+ - touch pan plot
455
+ - call points decimation from webcharts before drawing series points
456
+
457
+ ## engineering-flot 0.5.5 ##
458
+
459
+ ### Changes ###
460
+
461
+ - order of default plot color
462
+
463
+ ### Bug fixes ###
464
+
465
+ - plot margins and axis position should be adjusted based on user's grid margin options
466
+
467
+ ## engineering-flot 0.5.4 ##
468
+
469
+ ### Bug fixes ###
470
+
471
+ - axis for bar plot with no data
472
+
473
+ ## engineering-flot 0.5.3 ##
474
+
475
+ ### Bug fixes ###
476
+
477
+ - panning log axes on x and y in the same time.
478
+ - endpoint tick labels for bars.
479
+
480
+ ## engineering-flot 0.5.2 ##
481
+
482
+ ### Bug fixes ###
483
+
484
+ - zoom out instead of zoom in after excesive scroll.
485
+ - loosing precition when panning on x and y in the same time.
486
+ - navigation close to 0 for log axis.
487
+
488
+ ## engineering-flot 0.5.1 ##
489
+
490
+ ### Bug fixes ###
491
+
492
+ - patching the pan jquery plugin to work with any jquery version.
493
+
494
+ ## engineering-flot 0.5.0 ##
495
+
496
+ ### Changes ###
497
+
498
+ - the pan and mouse wheel jquery plugin were moved in their own files.
499
+
500
+ ## engineering-flot 0.4.15 ##
501
+
502
+ ### Bug fixes ###
503
+
504
+ - bars width.
505
+
506
+ ## engineering-flot 0.4.14 ##
507
+
508
+ ### Bug fixes ###
509
+
510
+ - long tap.
511
+ - mouse pan.
512
+ - improved precision used by the tick formatter.
513
+
514
+ ## engineering-flot 0.4.10 ##
515
+
516
+ ### Changes ###
517
+
518
+ - basic touch support.
519
+
520
+ ### Bug fixes ###
521
+
522
+ - include absRelTime file in the package.
523
+ - fix for relative time.
524
+
525
+ ## engineering-flot 0.4.8 ##
526
+
527
+ ### Changes ###
528
+
529
+ - bar width is computed based on the distance between points.
530
+ - relative time axis.
531
+
532
+ ### Bug fixes ###
533
+
534
+ - any axis regardless its visibility has a tick formatter.
535
+
536
+ ## engineering-flot 0.4.7 ##
537
+
538
+ ### Changes ###
539
+
540
+ - fillTowards for bars.
541
+ - removing vertical bars.
542
+ - log axis improvements.
543
+
544
+ ## engineering-flot 0.4.6 ##
545
+
546
+ ### Changes ###
547
+
548
+ - scatter graph performance improvements.
549
+
550
+ ## engineering-flot 0.4.5 ##
551
+
552
+ ### Changes ###
553
+
554
+ - ability to reserve space to the left or right of the axis.
555
+
556
+ ### Bug fixes ###
557
+
558
+ - wrong buffer size when writing smaller data.
559
+
560
+ ## engineering-flot 0.4.4 ##
561
+
562
+ ### Changes ###
563
+
564
+ - zooming only the hovered axis.
565
+
566
+ ## engineering-flot 0.4.2 ##
567
+
568
+ ### Bug fixes ###
569
+
570
+ - memory leak caused by axis tick labels.
571
+
572
+ ## engineering-flot 0.4.1 ##
573
+
574
+ ### Changes ###
575
+
576
+ - ability to find the nearby item with a custom function.
577
+
578
+ ### Bug fixes ###
579
+
580
+ - memory leak caused by axis labels.
581
+
582
+ ## engineering-flot 0.4.0 ##
583
+
584
+ ### Changes ###
585
+
586
+ - sliding-window mode for auto scale.
587
+ - small navigation improvements.
588
+
589
+ ### Bug fixes ###
590
+
591
+ - precision of tick labels for large numbers.
592
+
593
+ ## engineering-flot 0.3.8 ##
594
+
595
+ ### Changes ###
596
+
597
+ - log axis now allow a custom formatter to be specified.
598
+
599
+ ## engineering-flot 0.3.5 ##
600
+
601
+ ### Changes ###
602
+
603
+ - add linter
604
+
605
+ ### Bug fixes ###
606
+
607
+ - fixes the computation of precission needed for the endpoint tick labels.
608
+
609
+ ## engineering-flot 0.3.4 ##
610
+
611
+ ### Bug fixes ###
612
+
613
+ - axis formatter fixes.
614
+
615
+ ## engineering-flot 0.3.2 ##
616
+
617
+ ### Bug fixes ###
618
+
619
+ - fix pan and zoom to work for all autoscale modes.
620
+
621
+ ## engineering-flot 0.3.1 ##
622
+
623
+ ### Changes ###
624
+
625
+ - engineering-flot should be consumed by loading the newly added dist/jquery.flot.js
626
+ file and the needed plugins.
627
+ - display the endpoint ticks with better precission.
628
+
629
+ ## engineering-flot 0.2.4 ##
630
+
631
+ ### Changes ###
632
+
633
+ - Axis range is between axis.min and axis.max if no data available
634
+
635
+ ## engineering-flot 0.2.3 ##
636
+
637
+ ### Changes ###
638
+
639
+ - add computeRangeForDataSeries and adjustSeriesDataRange methods to the plot
640
+ - add adjustSeriesDataRange hook.
641
+
642
+ ## engineering-flot 0.2.2 ##
643
+
644
+ ### Changes ###
645
+
646
+ - add new symbols to the symbols plugin
647
+ - Fix for autoScale=loose and stop generating endpoints when not needed
648
+ - make axilabels plugin strict
649
+ - use karma to run the (few) tests we have
650
+ - run the tests on TravisCI
651
+ - add coveralls support
652
+
653
+ ## engineering-flot 0.2.1 ##
654
+
655
+ ### Changes ###
656
+
657
+ - the axis autoscale option was a breaking change, increment the minor version
658
+ (late is better that never) and fix the examples.
659
+
660
+ ## engineering-flot 0.1.15 ##
661
+
662
+ ### Changes ###
663
+
664
+ - add the findNearbyItem method to the plot.
665
+ - add an axis autoscale option that is used to specify the desired autoscale mode.
666
+
667
+ ## engineering-flot 0.1.14 ##
668
+
669
+ ### Changes ###
670
+
671
+ - Performance: make the axislabels use the axisReserveSpace hook which results in
672
+ simpler, faster code for axis labels.
673
+
674
+ ## engineering-flot 0.1.12 ##
675
+
676
+ ### Bug fixes ###
677
+
678
+ - fixes for showTickLabels option introduced in 0.1.11
679
+
680
+ ## engineering-flot 0.1.11 ##
681
+
682
+ ### Changes ###
683
+
684
+ - add showTickLabels option that can be used to specify which ticks labels are visible:
685
+ +"none", "endpoints", "major" or "all". The default is "major".
686
+
687
+ - add fillTowards option, used to specify the baseline for area and bar fills. The
688
+ most usefull ones are 0 ,-Infiniy and +Infinity.
689
+
690
+ ## engineering-flot 0.1.10 ##
691
+
692
+ ### Changes ###
693
+
694
+ - add the ability to disable pan for a specific axis
695
+
696
+ ## engineering-flot 0.1.9 ##
697
+
698
+ ### Changes ###
699
+
700
+ Cosmetic: improve the way the navigation hints are drawn. Add ellipse to the
701
+ flot.symbols plugin.
702
+
703
+ ## engineering-flot 0.1.8 ##
704
+
705
+ ### Changes ###
706
+
707
+ - Don't compute datamin and datamax if not autoscaling, this improves the performance in some cases.
708
+
709
+ ## engineering-flot 0.1.7 ##
710
+
711
+ ### Changes ###
712
+
713
+ - implement grow-only autoscaling behaviour and add docs and example
714
+
715
+ ## engineering-flot 0.1.6 ##
716
+
717
+ ### Bug fixes ###
718
+
719
+ - make the text measurements cache more robust, cache the measurements for ticks
720
+ that were measured but not displayed too. This improves the performance a bit.
721
+
722
+ ## engineering-flot 0.1.5 ##
723
+
724
+ ### Changes ###
725
+
726
+ - Add tickmarks functionality. Tick marks support the following cases:
727
+
728
+ - Major Ticks Marks visible (showTicks : true, showMinorTicks : false)
729
+ - Major & Minor Ticks Marks visible (showTicks : true, showMinorTicks : true)
730
+ - All Tick Marks hidden (showTicks : false)
731
+
732
+ ## engineering-flot 0.1.4 ##
733
+
734
+ ### Changes ###
735
+
736
+ - fix examples
737
+
738
+ ## engineering-flot 0.1.3 ##
739
+
740
+ ### Changes ###
741
+
742
+ import the Axis Labels Plugin from http://github.com/markrcote/flot-axislabels
743
+
744
+ ## engineering-flot 0.1.2 ##
745
+
746
+ ### Changes ###
747
+
748
+ - add clearCache function that clears the measurements cache.
749
+
750
+ ## engineering-flot 0.1.1 ##
751
+
752
+ ### Changes ###
753
+
754
+ - Forked the Flot codebase into engineering flot
755
+
756
+ - add logaxis plugin
757
+ - add smart pan to the navigation plugin
758
+ - remove code for backwards compatibility
759
+ - remove excanvas support
760
+ - split Canvas wrapper into a separate file
761
+ - test infrastructure
762
+ - improve the performance by:
763
+ - add a flatdata plugin that enables passing data into a faster and memory
764
+ efficient format
765
+ - allow the use of a user specified decimation method
766
+ - reuse internal buffers if possible.
767
+
768
+ - add an svg layer to Flot
769
+
770
+
771
+
772
+ ## Flot 0.8.3 ##
773
+
774
+ ### Changes ###
775
+
776
+ - Updated example code to avoid encouraging unnecessary re-plots.
777
+ (patch by soenter, pull request #1221)
778
+
779
+ ### Bug fixes ###
780
+
781
+ - Added a work-around to disable the allocation of extra space for first and
782
+ last axis ticks, allowing plots to span the full width of their container.
783
+ A proper solution for this bug will be implemented in the 0.9 release.
784
+ (reported by Josh Pigford and andig, issue #1212, pull request #1290)
785
+
786
+ - Fixed a regression introduced in 0.8.1, where the last tick label would
787
+ sometimes wrap rather than extending the plot's offset to create space.
788
+ (reported by Elite Gamer, issue #1283)
789
+
790
+ - Fixed a regression introduced in 0.8.2, where the resize plugin would use
791
+ unexpectedly high amounts of CPU even when idle.
792
+ (reported by tommie, issue #1277, pull request #1289)
793
+
794
+ - Fixed the selection example to work with jQuery 1.9.x and later.
795
+ (reported by EGLadona and dmfalke, issue #1250, pull request #1285)
796
+
797
+ - Added a detach shim to fix support for jQuery versions earlier than 1.4.x.
798
+ (reported by ngavard, issue #1240, pull request #1286)
799
+
800
+ - Fixed a rare 'Uncaught TypeError' when using the resize plugin in IE 7/8.
801
+ (reported by tleish, issue #1265, pull request #1289)
802
+
803
+ - Fixed zoom constraints to apply only in the direction of the zoom.
804
+ (patch by Neil Katin, issue #1204, pull request #1205)
805
+
806
+ - Markings lines are no longer blurry when drawn on pixel boundaries.
807
+ (reported by btccointicker and Rouillard, issue #1210)
808
+
809
+ - Don't discard original pie data-series values when combining slices.
810
+ (patch by Phil Tsarik, pull request #1238)
811
+
812
+ - Fixed broken auto-scale behavior when using deprecated [x|y]2axis options.
813
+ (reported by jorese, issue #1228, pull request #1284)
814
+
815
+ - Exposed the dateGenerator function on the plot object, as it used to be
816
+ before time-mode was moved into a separate plugin.
817
+ (patch by Paolo Valleri, pull request #1028)
818
+
819
+
820
+ ## Flot 0.8.2 ##
821
+
822
+ ### Changes ###
823
+
824
+ - Added a plot.destroy method as a way to free memory when emptying the plot
825
+ placeholder and then re-using it for some other purpose.
826
+ (patch by Thodoris Greasidis, issue #1129, pull request #1130)
827
+
828
+ - Added a table of contents and PLUGINS link to the API documentation.
829
+ (patches by Brian Peiris, pull requests #1064 and #1127)
830
+
831
+ - Added Ruby code examples for time conversion.
832
+ (patch by Mike Połtyn, pull request #1182)
833
+
834
+ - Minor improvements to API.md and README.md.
835
+ (patches by Patrik Ragnarsson, pull requests #1085 and #1086)
836
+
837
+ - Updated inlined jQuery Resize to the latest version to fix errors.
838
+ (reported by Matthew Sabol and sloker, issues #997 ad #1081)
839
+
840
+ ### Bug fixes ###
841
+
842
+ - Fixed an unexpected change in behavior that resulted in duplicate tick
843
+ labels when using a plugin, like flot-tickrotor, that overrode tick labels.
844
+ (patch by Mark Cote, pull request #1091)
845
+
846
+ - Fixed a regression from 0.7 where axis labels were given the wrong width,
847
+ causing them to overlap at certain scales and ignore the labelWidth option.
848
+ (patch by Benjamin Gram, pull request #1177)
849
+
850
+ - Fixed a bug where the second axis in an xaxes/yaxes array incorrectly had
851
+ its 'innermost' property set to false or undefined, even if it was on the
852
+ other side of the plot from the first axis. This resulted in the axis bar
853
+ being visible when it shouldn't have been, which was especially obvious
854
+ when the grid had a left/right border width of zero.
855
+ (reported by Teq1, fix researched by ryleyb, issue #1056)
856
+
857
+ - Fixed an error when using a placeholder that has no font-size property.
858
+ (patch by Craig Oldford, pull request #1135)
859
+
860
+ - Fixed a regression from 0.7 where nulls at the end of a series were ignored
861
+ for purposes of determing the range of the x-axis.
862
+ (reported by Munsifali Rashid, issue #1095)
863
+
864
+ - If a font size is provided, base the default lineHeight on that size rather
865
+ that the font size of the plot placeholder, which may be very different.
866
+ (reported by Daniel Hoffmann Bernardes, issue #1131, pull request #1199)
867
+
868
+ - Fix broken highlighting for right-aligned bars.
869
+ (reported by BeWiBu and Mihai Stanciu, issues #975 and #1093, with further
870
+ assistance by Eric Byers, pull request #1120)
871
+
872
+ - Prevent white circles from sometimes showing up inside of pie charts.
873
+ (reported by Pierre Dubois and Jack Klink, issues #1128 and #1073)
874
+
875
+ - Label formatting no longer breaks when a page contains multiple pie charts.
876
+ (reported by Brend Wanders, issue #1055)
877
+
878
+ - When using multiple axes on opposite sides of the plot, the innermost axis
879
+ coming later in the list no longer has its bar drawn incorrectly.
880
+ (reported by ryleyb, issue #1056)
881
+
882
+ - When removing series labels and redrawing the plot, the legend now updates
883
+ correctly even when using an external container.
884
+ (patch by Luis Silva, issue #1159, pull request #1160)
885
+
886
+ - The pie plugin no longer ignores the value of the left offset option.
887
+ (reported by melanker, issue #1136)
888
+
889
+ - Fixed a regression from 0.7, where extra padding was added unnecessarily to
890
+ sides of the plot where there was no last tick label.
891
+ (reported by sknob001, issue #1048, pull request #1200)
892
+
893
+ - Fixed incorrect tooltip behavior in the interacting example.
894
+ (patch by cleroux, issue #686, pull request #1074)
895
+
896
+ - Fixed an error in CSS color extraction with elements outside the DOM.
897
+ (patch by execjosh, pull request #1084)
898
+
899
+ - Fixed :not selector error when using jQuery without Sizzle.
900
+ (patch by Anthony Ryan, pull request #1180)
901
+
902
+ - Worked around a browser issue that caused bars to appear un-filled.
903
+ (reported by irbian, issue #915)
904
+
905
+ ## Flot 0.8.1 ##
906
+
907
+ ### Bug fixes ###
908
+
909
+ - Fixed a regression in the time plugin, introduced in 0.8, that caused dates
910
+ to align to the minute rather than to the highest appropriate unit. This
911
+ caused many x-axes in 0.8 to have different ticks than they did in 0.7.
912
+ (reported by Tom Sheppard, patch by Daniel Shapiro, issue #1017, pull
913
+ request #1023)
914
+
915
+ - Fixed a regression in text rendering, introduced in 0.8, that caused axis
916
+ labels with the same text as another label on the same axis to disappear.
917
+ More generally, it's again possible to have the same text in two locations.
918
+ (issue #1032)
919
+
920
+ - Fixed a regression in text rendering, introduced in 0.8, where axis labels
921
+ were no longer assigned an explicit width, and their text could not wrap.
922
+ (reported by sabregreen, issue #1019)
923
+
924
+ - Fixed a regression in the pie plugin, introduced in 0.8, that prevented it
925
+ from accepting data in the format '[[x, y]]'.
926
+ (patch by Nicolas Morel, pull request #1024)
927
+
928
+ - The 'zero' series option and 'autoscale' format option are no longer
929
+ ignored when the series contains a null value.
930
+ (reported by Daniel Shapiro, issue #1033)
931
+
932
+ - Avoid triggering the time-mode plugin exception when there are zero series.
933
+ (reported by Daniel Rothig, patch by Mark Raymond, issue #1016)
934
+
935
+ - When a custom color palette has fewer colors than the default palette, Flot
936
+ no longer fills out the colors with the remainder of the default.
937
+ (patch by goorpy, issue #1031, pull request #1034)
938
+
939
+ - Fixed missing update for bar highlights after a zoom or other redraw.
940
+ (reported by Paolo Valleri, issue #1030)
941
+
942
+ - Fixed compatibility with jQuery versions earlier than 1.7.
943
+ (patch by Lee Willis, issue #1027, pull request #1027)
944
+
945
+ - The mouse wheel no longer scrolls the page when using the navigate plugin.
946
+ (patch by vird, pull request #1020)
947
+
948
+ - Fixed missing semicolons in the core library.
949
+ (reported by Michal Zglinski)
950
+
951
+
952
+ ## Flot 0.8.0 ##
953
+
954
+ ### API changes ###
955
+
956
+ Support for time series has been moved into a plugin, jquery.flot.time.js.
957
+ This results in less code if time series are not used. The functionality
958
+ remains the same (plus timezone support, as described below); however, the
959
+ plugin must be included if axis.mode is set to "time".
960
+
961
+ When the axis mode is "time", the axis option "timezone" can be set to null,
962
+ "browser", or a particular timezone (e.g. "America/New_York") to control how
963
+ the dates are displayed. If null, the dates are displayed as UTC. If
964
+ "browser", the dates are displayed in the time zone of the user's browser.
965
+
966
+ Date/time formatting has changed and now follows a proper subset of the
967
+ standard strftime specifiers, plus one nonstandard specifier for quarters.
968
+ Additionally, if a strftime function is found in the Date object's prototype,
969
+ it will be used instead of the built-in formatter.
970
+
971
+ Axis tick labels now use the class 'flot-tick-label' instead of 'tickLabel'.
972
+ The text containers for each axis now use the classes 'flot-[x|y]-axis' and
973
+ 'flot-[x|y]#-axis' instead of '[x|y]Axis' and '[x|y]#Axis'. For compatibility
974
+ with Flot 0.7 and earlier text will continue to use the old classes as well,
975
+ but they are considered deprecated and will be removed in a future version.
976
+
977
+ In previous versions the axis 'color' option was used to set the color of tick
978
+ marks and their label text. It now controls the color of the axis line, which
979
+ previously could not be changed separately, and continues to act as a default
980
+ for the tick-mark color. The color of tick label text is now set either by
981
+ overriding the 'flot-tick-label' CSS rule or via the axis 'font' option.
982
+
983
+ A new plugin, jquery.flot.canvas.js, allows axis tick labels to be rendered
984
+ directly to the canvas, rather than using HTML elements. This feature can be
985
+ toggled with a simple option, making it easy to create interactive plots in the
986
+ browser using HTML, then re-render them to canvas for export as an image.
987
+
988
+ The plugin tries to remain as faithful as possible to the original HTML render,
989
+ and goes so far as to automatically extract styles from CSS, to avoid having to
990
+ provide a separate set of styles when rendering to canvas. Due to limitations
991
+ of the canvas text API, the plugin cannot reproduce certain features, including
992
+ HTML markup embedded in labels, and advanced text styles such as 'em' units.
993
+
994
+ The plugin requires support for canvas text, which may not be present in some
995
+ older browsers, even if they support the canvas tag itself. To use the plugin
996
+ with these browsers try using a shim such as canvas-text or FlashCanvas.
997
+
998
+ The base and overlay canvas are now using the CSS classes "flot-base" and
999
+ "flot-overlay" to prevent accidental clashes (issue 540).
1000
+
1001
+ ### Changes ###
1002
+
1003
+ - Addition of nonstandard %q specifier to date/time formatting. (patch
1004
+ by risicle, issue 49)
1005
+
1006
+ - Date/time formatting follows proper subset of strftime specifiers, and
1007
+ support added for Date.prototype.strftime, if found. (patch by Mark Cote,
1008
+ issues 419 and 558)
1009
+
1010
+ - Fixed display of year ticks. (patch by Mark Cote, issue 195)
1011
+
1012
+ - Support for time series moved to plugin. (patch by Mark Cote)
1013
+
1014
+ - Display time series in different time zones. (patch by Knut Forkalsrud,
1015
+ issue 141)
1016
+
1017
+ - Added a canvas plugin to enable rendering axis tick labels to the canvas.
1018
+ (sponsored by YCharts.com, implementation by Ole Laursen and David Schnur)
1019
+
1020
+ - Support for setting the interval between redraws of the overlay canvas with
1021
+ redrawOverlayInterval. (suggested in issue 185)
1022
+
1023
+ - Support for multiple thresholds in thresholds plugin. (patch by Arnaud
1024
+ Bellec, issue 523)
1025
+
1026
+ - Support for plotting categories/textual data directly with new categories
1027
+ plugin.
1028
+
1029
+ - Tick generators now get the whole axis rather than just min/max.
1030
+
1031
+ - Added processOffset and drawBackground hooks. (suggested in issue 639)
1032
+
1033
+ - Added a grid "margin" option to set the space between the canvas edge and
1034
+ the grid.
1035
+
1036
+ - Prevent the pie example page from generating single-slice pies. (patch by
1037
+ Shane Reustle)
1038
+
1039
+ - In addition to "left" and "center", bars now recognize "right" as an
1040
+ alignment option. (patch by Michael Mayer, issue 520)
1041
+
1042
+ - Switched from toFixed to a much faster default tickFormatter. (patch by
1043
+ Clemens Stolle)
1044
+
1045
+ - Added to a more helpful error when using a time-mode axis without including
1046
+ the flot.time plugin. (patch by Yael Elmatad)
1047
+
1048
+ - Added a legend "sorted" option to control sorting of legend entries
1049
+ independent of their series order. (patch by Tom Cleaveland)
1050
+
1051
+ - Added a series "highlightColor" option to control the color of the
1052
+ translucent overlay that identifies the dataset when the mouse hovers over
1053
+ it. (patch by Eric Wendelin and Nate Abele, issues 168 and 299)
1054
+
1055
+ - Added a plugin jquery.flot.errorbars, with an accompanying example, that
1056
+ adds the ability to plot error bars, commonly used in many kinds of
1057
+ statistical data visualizations. (patch by Rui Pereira, issue 215)
1058
+
1059
+ - The legend now omits entries whose labelFormatter returns null. (patch by
1060
+ Tom Cleaveland, Christopher Lambert, and Simon Strandgaard)
1061
+
1062
+ - Added support for high pixel density (retina) displays, resulting in much
1063
+ crisper charts on such devices. (patch by Olivier Guerriat, additional
1064
+ fixes by Julien Thomas, maimairel, and Lau Bech Lauritzen)
1065
+
1066
+ - Added the ability to control pie shadow position and alpha via a new pie
1067
+ 'shadow' option. (patch by Julien Thomas, pull request #78)
1068
+
1069
+ - Added the ability to set width and color for individual sides of the grid.
1070
+ (patch by Ara Anjargolian, additional fixes by Karl Swedberg, pull requests #855
1071
+ and #880)
1072
+
1073
+ - The selection plugin's getSelection now returns null when the selection
1074
+ has been cleared. (patch by Nick Campbell, pull request #852)
1075
+
1076
+ - Added a new option called 'zero' to bars and filled lines series, to control
1077
+ whether the y-axis minimum is scaled to fit the data or set to zero.
1078
+ (patch by David Schnur, issues #316, #529, and #856, pull request #911)
1079
+
1080
+ - The plot function is now also a jQuery chainable property.
1081
+ (patch by David Schnur, issues #734 and #816, pull request #953)
1082
+
1083
+ - When only a single pie slice is beneath the combine threshold it is no longer
1084
+ replaced by an 'other' slice. (suggested by Devin Bayer, issue #638)
1085
+
1086
+ - Added lineJoin and minSize options to the selection plugin to control the
1087
+ corner style and minimum size of the selection, respectively.
1088
+ (patch by Ruth Linehan, pull request #963)
1089
+
1090
+ ### Bug fixes ###
1091
+
1092
+ - Fix problem with null values and pie plugin. (patch by gcruxifix,
1093
+ issue 500)
1094
+
1095
+ - Fix problem with threshold plugin and bars. (based on patch by
1096
+ kaarlenkaski, issue 348)
1097
+
1098
+ - Fix axis box calculations so the boxes include the outermost part of the
1099
+ labels too.
1100
+
1101
+ - Fix problem with event clicking and hovering in IE 8 by updating Excanvas
1102
+ and removing previous work-around. (test case by Ara Anjargolian)
1103
+
1104
+ - Fix issues with blurry 1px border when some measures aren't integer.
1105
+ (reported by Ara Anjargolian)
1106
+
1107
+ - Fix bug with formats in the data processor. (reported by Peter Hull,
1108
+ issue 534)
1109
+
1110
+ - Prevent i from being declared global in extractRange. (reported by
1111
+ Alexander Obukhov, issue 627)
1112
+
1113
+ - Throw errors in a more cross-browser-compatible manner. (patch by
1114
+ Eddie Kay)
1115
+
1116
+ - Prevent pie slice outlines from being drawn when the stroke width is zero.
1117
+ (reported by Chris Minett, issue 585)
1118
+
1119
+ - Updated the navigate plugin's inline copy of jquery.mousewheel to fix
1120
+ Webkit zoom problems. (reported by Hau Nguyen, issue 685)
1121
+
1122
+ - Axis labels no longer appear as decimals rather than integers in certain
1123
+ cases. (patch by Clemens Stolle, issue 541)
1124
+
1125
+ - Automatic color generation no longer produces only whites and blacks when
1126
+ there are many series. (patch by David Schnur and Tom Cleaveland)
1127
+
1128
+ - Fixed an error when custom tick labels weren't provided as strings. (patch
1129
+ by Shad Downey)
1130
+
1131
+ - Prevented the local insertSteps and fmt variables from becoming global.
1132
+ (first reported by Marc Bennewitz and Szymon Barglowski, patch by Nick
1133
+ Campbell, issues #825 and #831, pull request #851)
1134
+
1135
+ - Prevented several threshold plugin variables from becoming global. (patch
1136
+ by Lasse Dahl Ebert)
1137
+
1138
+ - Fixed various jQuery 1.8 compatibility issues. (issues #814 and #819,
1139
+ pull request #877)
1140
+
1141
+ - Pie charts with a slice equal to or approaching 100% of the pie no longer
1142
+ appear invisible. (patch by David Schnur, issues #444, #658, #726, #824
1143
+ and #850, pull request #879)
1144
+
1145
+ - Prevented several local variables from becoming global. (patch by aaa707)
1146
+
1147
+ - Ensure that the overlay and primary canvases remain aligned. (issue #670,
1148
+ pull request #901)
1149
+
1150
+ - Added support for jQuery 1.9 by removing and replacing uses of $.browser.
1151
+ (analysis and patch by Anthony Ryan, pull request #905)
1152
+
1153
+ - Pie charts no longer disappear when redrawn during a resize or update.
1154
+ (reported by Julien Bec, issue #656, pull request #910)
1155
+
1156
+ - Avoided floating-point precision errors when calculating pie percentages.
1157
+ (patch by James Ward, pull request #918)
1158
+
1159
+ - Fixed compatibility with jQuery 1.2.6, which has no 'mouseleave' shortcut.
1160
+ (reported by Bevan, original pull request #920, replaced by direct patch)
1161
+
1162
+ - Fixed sub-pixel rendering issues with crosshair and selection lines.
1163
+ (patches by alanayoub and Daniel Shapiro, pull requests #17 and #925)
1164
+
1165
+ - Fixed rendering issues when using the threshold plugin with several series.
1166
+ (patch by Ivan Novikov, pull request #934)
1167
+
1168
+ - Pie charts no longer disappear when redrawn after calling setData().
1169
+ (reported by zengge1984 and pareeohnos, issues #810 and #945)
1170
+
1171
+ - Added a work-around for the problem where points with a lineWidth of zero
1172
+ still showed up with a visible line. (reported by SalvoSav, issue #842,
1173
+ patch by Jamie Hamel-Smith, pull request #937)
1174
+
1175
+ - Pie charts now accept values in string form, like other plot types.
1176
+ (reported by laerdal.no, issue #534)
1177
+
1178
+ - Avoid rounding errors in the threshold plugin.
1179
+ (reported by jerikojerk, issue #895)
1180
+
1181
+ - Fixed an error when using the navigate plugin with jQuery 1.9.x or later.
1182
+ (reported by Paolo Valleri, issue #964)
1183
+
1184
+ - Fixed inconsistencies between the highlight and unhighlight functions.
1185
+ (reported by djamshed, issue #987)
1186
+
1187
+ - Fixed recalculation of tickSize and tickDecimals on calls to setupGrid.
1188
+ (patch by thecountofzero, pull request #861, issues #860, #1000)
1189
+
1190
+
1191
+ ## Flot 0.7 ##
1192
+
1193
+ ### API changes ###
1194
+
1195
+ Multiple axes support. Code using dual axes should be changed from using
1196
+ x2axis/y2axis in the options to using an array (although backwards-
1197
+ compatibility hooks are in place). For instance,
1198
+
1199
+ ```js
1200
+ {
1201
+ xaxis: { ... }, x2axis: { ... },
1202
+ yaxis: { ... }, y2axis: { ... }
1203
+ }
1204
+ ```
1205
+
1206
+ becomes
1207
+
1208
+ ```js
1209
+ {
1210
+ xaxes: [ { ... }, { ... } ],
1211
+ yaxes: [ { ... }, { ... } ]
1212
+ }
1213
+ ```
1214
+
1215
+ Note that if you're just using one axis, continue to use the xaxis/yaxis
1216
+ directly (it now sets the default settings for the arrays). Plugins touching
1217
+ the axes must be ported to take the extra axes into account, check the source
1218
+ to see some examples.
1219
+
1220
+ A related change is that the visibility of axes is now auto-detected. So if
1221
+ you were relying on an axis to show up even without any data in the chart, you
1222
+ now need to set the axis "show" option explicitly.
1223
+
1224
+ "tickColor" on the grid options is now deprecated in favour of a corresponding
1225
+ option on the axes, so:
1226
+
1227
+ ```js
1228
+ { grid: { tickColor: "#000" }}
1229
+ ```
1230
+
1231
+ becomes
1232
+
1233
+ ```js
1234
+ { xaxis: { tickColor: "#000"}, yaxis: { tickColor: "#000"} }
1235
+ ```
1236
+
1237
+ But if you just configure a base color Flot will now autogenerate a tick color
1238
+ by adding transparency. Backwards-compatibility hooks are in place.
1239
+
1240
+ Final note: now that IE 9 is coming out with canvas support, you may want to
1241
+ adapt the excanvas include to skip loading it in IE 9 (the examples have been
1242
+ adapted thanks to Ryley Breiddal). An alternative to excanvas using Flash has
1243
+ also surfaced, if your graphs are slow in IE, you may want to give it a spin:
1244
+
1245
+ http://code.google.com/p/flashcanvas/
1246
+
1247
+ ### Changes ###
1248
+
1249
+ - Support for specifying a bottom for each point for line charts when filling
1250
+ them, this means that an arbitrary bottom can be used instead of just the x
1251
+ axis. (based on patches patiently provided by Roman V. Prikhodchenko)
1252
+
1253
+ - New fillbetween plugin that can compute a bottom for a series from another
1254
+ series, useful for filling areas between lines.
1255
+
1256
+ See new example percentiles.html for a use case.
1257
+
1258
+ - More predictable handling of gaps for the stacking plugin, now all
1259
+ undefined ranges are skipped.
1260
+
1261
+ - Stacking plugin can stack horizontal bar charts.
1262
+
1263
+ - Navigate plugin now redraws the plot while panning instead of only after
1264
+ the fact. (raised by lastthemy, issue 235)
1265
+
1266
+ Can be disabled by setting the pan.frameRate option to null.
1267
+
1268
+ - Date formatter now accepts %0m and %0d to get a zero-padded month or day.
1269
+ (issue raised by Maximillian Dornseif)
1270
+
1271
+ - Revamped internals to support an unlimited number of axes, not just dual.
1272
+ (sponsored by Flight Data Services, www.flightdataservices.com)
1273
+
1274
+ - New setting on axes, "tickLength", to control the size of ticks or turn
1275
+ them off without turning off the labels.
1276
+
1277
+ - Axis labels are now put in container divs with classes, for instance labels
1278
+ in the x axes can be reached via ".xAxis .tickLabel".
1279
+
1280
+ - Support for setting the color of an axis. (sponsored by Flight Data
1281
+ Services, www.flightdataservices.com)
1282
+
1283
+ - Tick color is now auto-generated as the base color with some transparency,
1284
+ unless you override it.
1285
+
1286
+ - Support for aligning ticks in the axes with "alignTicksWithAxis" to ensure
1287
+ that they appear next to each other rather than in between, at the expense
1288
+ of possibly awkward tick steps. (sponsored by Flight Data Services,
1289
+ www.flightdataservices.com)
1290
+
1291
+ - Support for customizing the point type through a callback when plotting
1292
+ points and new symbol plugin with some predefined point types. (sponsored
1293
+ by Utility Data Corporation)
1294
+
1295
+ - Resize plugin for automatically redrawing when the placeholder changes
1296
+ size, e.g. on window resizes. (sponsored by Novus Partners)
1297
+
1298
+ A resize() method has been added to plot object facilitate this.
1299
+
1300
+ - Support Infinity/-Infinity for plotting asymptotes by hacking it into
1301
+ +/-Number.MAX_VALUE. (reported by rabaea.mircea)
1302
+
1303
+ - Support for restricting navigate plugin to not pan/zoom an axis. (based on
1304
+ patch by kkaefer)
1305
+
1306
+ - Support for providing the drag cursor for the navigate plugin as an option.
1307
+ (based on patch by Kelly T. Moore)
1308
+
1309
+ - Options for controlling whether an axis is shown or not (suggestion by Timo
1310
+ Tuominen) and whether to reserve space for it even if it isn't shown.
1311
+
1312
+ - New attribute $.plot.version with the Flot version as a string.
1313
+
1314
+ - The version comment is now included in the minified jquery.flot.min.js.
1315
+
1316
+ - New options.grid.minBorderMargin for adjusting the minimum margin provided
1317
+ around the border (based on patch by corani, issue 188).
1318
+
1319
+ - Refactor replot behaviour so Flot tries to reuse the existing canvas,
1320
+ adding shutdown() methods to the plot. (based on patch by Ryley Breiddal,
1321
+ issue 269)
1322
+
1323
+ This prevents a memory leak in Chrome and hopefully makes replotting faster
1324
+ for those who are using $.plot instead of .setData()/.draw(). Also update
1325
+ jQuery to 1.5.1 to prevent IE leaks fixed in jQuery.
1326
+
1327
+ - New real-time line chart example.
1328
+
1329
+ - New hooks: drawSeries, shutdown.
1330
+
1331
+ ### Bug fixes ###
1332
+
1333
+ - Fixed problem with findNearbyItem and bars on top of each other. (reported
1334
+ by ragingchikn, issue 242)
1335
+
1336
+ - Fixed problem with ticks and the border. (based on patch from
1337
+ ultimatehustler69, issue 236)
1338
+
1339
+ - Fixed problem with plugins adding options to the series objects.
1340
+
1341
+ - Fixed a problem introduced in 0.6 with specifying a gradient with:
1342
+
1343
+ ```{brightness: x, opacity: y }```
1344
+
1345
+ - Don't use $.browser.msie, check for getContext on the created canvas element
1346
+ instead and try to use excanvas if it's not found.
1347
+
1348
+ Fixes IE 9 compatibility.
1349
+
1350
+ - highlight(s, index) was looking up the point in the original s.data instead
1351
+ of in the computed datapoints array, which breaks with plugins that modify
1352
+ the datapoints, such as the stacking plugin. (reported by curlypaul924,
1353
+ issue 316)
1354
+
1355
+ - More robust handling of axis from data passed in from getData(). (reported)
1356
+ by Morgan)
1357
+
1358
+ - Fixed problem with turning off bar outline. (fix by Jordi Castells,
1359
+ issue 253)
1360
+
1361
+ - Check the selection passed into setSelection in the selection
1362
+ plugin, to guard against errors when synchronizing plots (fix by Lau
1363
+ Bech Lauritzen).
1364
+
1365
+ - Fix bug in crosshair code with mouseout resetting the crosshair even
1366
+ if it is locked (fix by Lau Bech Lauritzen and Banko Adam).
1367
+
1368
+ - Fix bug with points plotting using line width from lines rather than
1369
+ points.
1370
+
1371
+ - Fix bug with passing non-array 0 data (for plugins that don't expect
1372
+ arrays, patch by vpapp1).
1373
+
1374
+ - Fix errors in JSON in examples so they work with jQuery 1.4.2
1375
+ (fix reported by honestbleeps, issue 357).
1376
+
1377
+ - Fix bug with tooltip in interacting.html, this makes the tooltip
1378
+ much smoother (fix by bdkahn). Fix related bug inside highlighting
1379
+ handler in Flot.
1380
+
1381
+ - Use closure trick to make inline colorhelpers plugin respect
1382
+ jQuery.noConflict(true), renaming the global jQuery object (reported
1383
+ by Nick Stielau).
1384
+
1385
+ - Listen for mouseleave events and fire a plothover event with empty
1386
+ item when it occurs to drop highlights when the mouse leaves the
1387
+ plot (reported by by outspirit).
1388
+
1389
+ - Fix bug with using aboveData with a background (reported by
1390
+ amitayd).
1391
+
1392
+ - Fix possible excanvas leak (report and suggested fix by tom9729).
1393
+
1394
+ - Fix bug with backwards compatibility for shadowSize = 0 (report and
1395
+ suggested fix by aspinak).
1396
+
1397
+ - Adapt examples to skip loading excanvas (fix by Ryley Breiddal).
1398
+
1399
+ - Fix bug that prevent a simple f(x) = -x transform from working
1400
+ correctly (fix by Mike, issue 263).
1401
+
1402
+ - Fix bug in restoring cursor in navigate plugin (reported by Matteo
1403
+ Gattanini, issue 395).
1404
+
1405
+ - Fix bug in picking items when transform/inverseTransform is in use
1406
+ (reported by Ofri Raviv, and patches and analysis by Jan and Tom
1407
+ Paton, issue 334 and 467).
1408
+
1409
+ - Fix problem with unaligned ticks and hover/click events caused by
1410
+ padding on the placeholder by hardcoding the placeholder padding to
1411
+ 0 (reported by adityadineshsaxena, Matt Sommer, Daniel Atos and some
1412
+ other people, issue 301).
1413
+
1414
+ - Update colorhelpers plugin to avoid dying when trying to parse an
1415
+ invalid string (reported by cadavor, issue 483).
1416
+
1417
+
1418
+
1419
+ ## Flot 0.6 ##
1420
+
1421
+ ### API changes ###
1422
+
1423
+ Selection support has been moved to a plugin. Thus if you're passing
1424
+ selection: { mode: something }, you MUST include the file
1425
+ jquery.flot.selection.js after jquery.flot.js. This reduces the size of
1426
+ base Flot and makes it easier to customize the selection as well as
1427
+ improving code clarity. The change is based on a patch from andershol.
1428
+
1429
+ In the global options specified in the $.plot command, "lines", "points",
1430
+ "bars" and "shadowSize" have been moved to a sub-object called "series":
1431
+
1432
+ ```js
1433
+ $.plot(placeholder, data, { lines: { show: true }})
1434
+ ```
1435
+
1436
+ should be changed to
1437
+
1438
+ ```js
1439
+ $.plot(placeholder, data, { series: { lines: { show: true }}})
1440
+ ```
1441
+
1442
+ All future series-specific options will go into this sub-object to
1443
+ simplify plugin writing. Backward-compatibility code is in place, so
1444
+ old code should not break.
1445
+
1446
+ "plothover" no longer provides the original data point, but instead a
1447
+ normalized one, since there may be no corresponding original point.
1448
+
1449
+ Due to a bug in previous versions of jQuery, you now need at least
1450
+ jQuery 1.2.6. But if you can, try jQuery 1.3.2 as it got some improvements
1451
+ in event handling speed.
1452
+
1453
+ ## Changes ##
1454
+
1455
+ - Added support for disabling interactivity for specific data series.
1456
+ (request from Ronald Schouten and Steve Upton)
1457
+
1458
+ - Flot now calls $() on the placeholder and optional legend container passed
1459
+ in so you can specify DOM elements or CSS expressions to make it easier to
1460
+ use Flot with libraries like Prototype or Mootools or through raw JSON from
1461
+ Ajax responses.
1462
+
1463
+ - A new "plotselecting" event is now emitted while the user is making a
1464
+ selection.
1465
+
1466
+ - The "plothover" event is now emitted immediately instead of at most 10
1467
+ times per second, you'll have to put in a setTimeout yourself if you're
1468
+ doing something really expensive on this event.
1469
+
1470
+ - The built-in date formatter can now be accessed as $.plot.formatDate(...)
1471
+ (suggestion by Matt Manela) and even replaced.
1472
+
1473
+ - Added "borderColor" option to the grid. (patches from Amaury Chamayou and
1474
+ Mike R. Williamson)
1475
+
1476
+ - Added support for gradient backgrounds for the grid. (based on patch from
1477
+ Amaury Chamayou, issue 90)
1478
+
1479
+ The "setting options" example provides a demonstration.
1480
+
1481
+ - Gradient bars. (suggestion by stefpet)
1482
+
1483
+ - Added a "plotunselected" event which is triggered when the selection is
1484
+ removed, see "selection" example. (suggestion by Meda Ugo)
1485
+
1486
+ - The option legend.margin can now specify horizontal and vertical margins
1487
+ independently. (suggestion by someone who's annoyed)
1488
+
1489
+ - Data passed into Flot is now copied to a new canonical format to enable
1490
+ further processing before it hits the drawing routines. As a side-effect,
1491
+ this should make Flot more robust in the face of bad data. (issue 112)
1492
+
1493
+ - Step-wise charting: line charts have a new option "steps" that when set to
1494
+ true connects the points with horizontal/vertical steps instead of diagonal
1495
+ lines.
1496
+
1497
+ - The legend labelFormatter now passes the series in addition to just the
1498
+ label. (suggestion by Vincent Lemeltier)
1499
+
1500
+ - Horizontal bars (based on patch by Jason LeBrun).
1501
+
1502
+ - Support for partial bars by specifying a third coordinate, i.e. they don't
1503
+ have to start from the axis. This can be used to make stacked bars.
1504
+
1505
+ - New option to disable the (grid.show).
1506
+
1507
+ - Added pointOffset method for converting a point in data space to an offset
1508
+ within the placeholder.
1509
+
1510
+ - Plugin system: register an init method in the $.flot.plugins array to get
1511
+ started, see PLUGINS.txt for details on how to write plugins (it's easy).
1512
+ There are also some extra methods to enable access to internal state.
1513
+
1514
+ - Hooks: you can register functions that are called while Flot is crunching
1515
+ the data and doing the plot. This can be used to modify Flot without
1516
+ changing the source, useful for writing plugins. Some hooks are defined,
1517
+ more are likely to come.
1518
+
1519
+ - Threshold plugin: you can set a threshold and a color, and the data points
1520
+ below that threshold will then get the color. Useful for marking data
1521
+ below 0, for instance.
1522
+
1523
+ - Stack plugin: you can specify a stack key for each series to have them
1524
+ summed. This is useful for drawing additive/cumulative graphs with bars and
1525
+ (currently unfilled) lines.
1526
+
1527
+ - Crosshairs plugin: trace the mouse position on the axes, enable with
1528
+ crosshair: { mode: "x"} (see the new tracking example for a use).
1529
+
1530
+ - Image plugin: plot prerendered images.
1531
+
1532
+ - Navigation plugin for panning and zooming a plot.
1533
+
1534
+ - More configurable grid.
1535
+
1536
+ - Axis transformation support, useful for non-linear plots, e.g. log axes and
1537
+ compressed time axes (like omitting weekends).
1538
+
1539
+ - Support for twelve-hour date formatting (patch by Forrest Aldridge).
1540
+
1541
+ - The color parsing code in Flot has been cleaned up and split out so it's
1542
+ now available as a separate jQuery plugin. It's included inline in the Flot
1543
+ source to make dependency managing easier. This also makes it really easy
1544
+ to use the color helpers in Flot plugins.
1545
+
1546
+ ## Bug fixes ##
1547
+
1548
+ - Fixed two corner-case bugs when drawing filled curves. (report and analysis
1549
+ by Joshua Varner)
1550
+
1551
+ - Fix auto-adjustment code when setting min to 0 for an axis where the
1552
+ dataset is completely flat on that axis. (report by chovy)
1553
+
1554
+ - Fixed a bug with passing in data from getData to setData when the secondary
1555
+ axes are used. (reported by nperelman, issue 65)
1556
+
1557
+ - Fixed so that it is possible to turn lines off when no other chart type is
1558
+ shown (based on problem reported by Glenn Vanderburg), and fixed so that
1559
+ setting lineWidth to 0 also hides the shadow. (based on problem reported by
1560
+ Sergio Nunes)
1561
+
1562
+ - Updated mousemove position expression to the latest from jQuery. (reported
1563
+ by meyuchas)
1564
+
1565
+ - Use CSS borders instead of background in legend. (issues 25 and 45)
1566
+
1567
+ - Explicitly convert axis min/max to numbers.
1568
+
1569
+ - Fixed a bug with drawing marking lines with different colors. (reported by
1570
+ Khurram)
1571
+
1572
+ - Fixed a bug with returning y2 values in the selection event. (fix by
1573
+ exists, issue 75)
1574
+
1575
+ - Only set position relative on placeholder if it hasn't already a position
1576
+ different from static. (reported by kyberneticist, issue 95)
1577
+
1578
+ - Don't round markings to prevent sub-pixel problems. (reported by
1579
+ Dan Lipsitt)
1580
+
1581
+ - Make the grid border act similarly to a regular CSS border, i.e. prevent
1582
+ it from overlapping the plot itself. This also fixes a problem with anti-
1583
+ aliasing when the width is 1 pixel. (reported by Anthony Ettinger)
1584
+
1585
+ - Imported version 3 of excanvas and fixed two issues with the newer version.
1586
+ Hopefully, this will make Flot work with IE8. (nudge by Fabien Menager,
1587
+ further analysis by Booink, issue 133)
1588
+
1589
+ - Changed the shadow code for lines to hopefully look a bit better with
1590
+ vertical lines.
1591
+
1592
+ - Round tick positions to avoid possible problems with fractions. (suggestion
1593
+ by Fred, issue 130)
1594
+
1595
+ - Made the heuristic for determining how many ticks to aim for a bit smarter.
1596
+
1597
+ - Fix for uneven axis margins (report and patch by Paul Kienzle) and snapping
1598
+ to ticks. (report and patch by lifthrasiir)
1599
+
1600
+ - Fixed bug with slicing in findNearbyItems. (patch by zollman)
1601
+
1602
+ - Make heuristic for x axis label widths more dynamic. (patch by
1603
+ rickinhethuis)
1604
+
1605
+ - Make sure points on top take precedence when finding nearby points when
1606
+ hovering. (reported by didroe, issue 224)
1607
+
1608
+
1609
+
1610
+ ## Flot 0.5 ##
1611
+
1612
+ Timestamps are now in UTC. Also "selected" event -> becomes "plotselected"
1613
+ with new data, the parameters for setSelection are now different (but
1614
+ backwards compatibility hooks are in place), coloredAreas becomes markings
1615
+ with a new interface (but backwards compatibility hooks are in place).
1616
+
1617
+ ### API changes ###
1618
+
1619
+ Timestamps in time mode are now displayed according to UTC instead of the time
1620
+ zone of the visitor. This affects the way the timestamps should be input;
1621
+ you'll probably have to offset the timestamps according to your local time
1622
+ zone. It also affects any custom date handling code (which basically now
1623
+ should use the equivalent UTC date mehods, e.g. .setUTCMonth() instead of
1624
+ .setMonth().
1625
+
1626
+ Markings, previously coloredAreas, are now specified as ranges on the axes,
1627
+ like ```{ xaxis: { from: 0, to: 10 }}```. Furthermore with markings you can
1628
+ now draw horizontal/vertical lines by setting from and to to the same
1629
+ coordinate. (idea from line support patch by by Ryan Funduk)
1630
+
1631
+ Interactivity: added a new "plothover" event and this and the "plotclick"
1632
+ event now returns the closest data item (based on patch by /david, patch by
1633
+ Mark Byers for bar support). See the revamped "interacting with the data"
1634
+ example for some hints on what you can do.
1635
+
1636
+ Highlighting: you can now highlight points and datapoints are autohighlighted
1637
+ when you hover over them (if hovering is turned on).
1638
+
1639
+ Support for dual axis has been added (based on patch by someone who's annoyed
1640
+ and /david). For each data series you can specify which axes it belongs to,
1641
+ and there are two more axes, x2axis and y2axis, to customize. This affects the
1642
+ "selected" event which has been renamed to "plotselected" and spews out
1643
+ ```{ xaxis: { from: -10, to: 20 } ... },``` setSelection in which the
1644
+ parameters are on a new form (backwards compatible hooks are in place so old
1645
+ code shouldn't break) and markings (formerly coloredAreas).
1646
+
1647
+ ## Changes ##
1648
+
1649
+ - Added support for specifying the size of tick labels (axis.labelWidth,
1650
+ axis.labelHeight). Useful for specifying a max label size to keep multiple
1651
+ plots aligned.
1652
+
1653
+ - The "fill" option can now be a number that specifies the opacity of the
1654
+ fill.
1655
+
1656
+ - You can now specify a coordinate as null (like [2, null]) and Flot will
1657
+ take the other coordinate into account when scaling the axes. (based on
1658
+ patch by joebno)
1659
+
1660
+ - New option for bars "align". Set it to "center" to center the bars on the
1661
+ value they represent.
1662
+
1663
+ - setSelection now takes a second parameter which you can use to prevent the
1664
+ method from firing the "plotselected" handler.
1665
+
1666
+ - Improved the handling of axis auto-scaling with bars.
1667
+
1668
+ ## Bug fixes ##
1669
+
1670
+ - Fixed a bug in calculating spacing around the plot. (reported by
1671
+ timothytoe)
1672
+
1673
+ - Fixed a bug in finding max values for all-negative data sets.
1674
+
1675
+ - Prevent the possibility of eternal looping in tick calculations.
1676
+
1677
+ - Fixed a bug when borderWidth is set to 0. (reported by Rob/sanchothefat)
1678
+
1679
+ - Fixed a bug with drawing bars extending below 0. (reported by James Hewitt,
1680
+ patch by Ryan Funduk).
1681
+
1682
+ - Fixed a bug with line widths of bars. (reported by MikeM)
1683
+
1684
+ - Fixed a bug with 'nw' and 'sw' legend positions.
1685
+
1686
+ - Fixed a bug with multi-line x-axis tick labels. (reported by Luca Ciano,
1687
+ IE-fix help by Savage Zhang)
1688
+
1689
+ - Using the "container" option in legend now overwrites the container element
1690
+ instead of just appending to it, fixing the infinite legend bug. (reported
1691
+ by several people, fix by Brad Dewey)
1692
+
1693
+
1694
+
1695
+ ## Flot 0.4 ##
1696
+
1697
+ ### API changes ###
1698
+
1699
+ Deprecated axis.noTicks in favor of just specifying the number as axis.ticks.
1700
+ So ```xaxis: { noTicks: 10 }``` becomes ```xaxis: { ticks: 10 }```.
1701
+
1702
+ Time series support. Specify axis.mode: "time", put in Javascript timestamps
1703
+ as data, and Flot will automatically spit out sensible ticks. Take a look at
1704
+ the two new examples. The format can be customized with axis.timeformat and
1705
+ axis.monthNames, or if that fails with axis.tickFormatter.
1706
+
1707
+ Support for colored background areas via grid.coloredAreas. Specify an array
1708
+ of { x1, y1, x2, y2 } objects or a function that returns these given
1709
+ { xmin, xmax, ymin, ymax }.
1710
+
1711
+ More members on the plot object (report by Chris Davies and others).
1712
+ "getData" for inspecting the assigned settings on data series (e.g. color) and
1713
+ "setData", "setupGrid" and "draw" for updating the contents without a total
1714
+ replot.
1715
+
1716
+ The default number of ticks to aim for is now dependent on the size of the
1717
+ plot in pixels. Support for customizing tick interval sizes directly with
1718
+ axis.minTickSize and axis.tickSize.
1719
+
1720
+ Cleaned up the automatic axis scaling algorithm and fixed how it interacts
1721
+ with ticks. Also fixed a couple of tick-related corner case bugs (one reported
1722
+ by mainstreetmark, another reported by timothytoe).
1723
+
1724
+ The option axis.tickFormatter now takes a function with two parameters, the
1725
+ second parameter is an optional object with information about the axis. It has
1726
+ min, max, tickDecimals, tickSize.
1727
+
1728
+ ## Changes ##
1729
+
1730
+ - Added support for segmented lines. (based on patch from Michael MacDonald)
1731
+
1732
+ - Added support for ignoring null and bad values. (suggestion from Nick
1733
+ Konidaris and joshwaihi)
1734
+
1735
+ - Added support for changing the border width. (thanks to joebno and safoo)
1736
+
1737
+ - Label colors can be changed via CSS by selecting the tickLabel class.
1738
+
1739
+ ## Bug fixes ##
1740
+
1741
+ - Fixed a bug in handling single-item bar series. (reported by Emil Filipov)
1742
+
1743
+ - Fixed erratic behaviour when interacting with the plot with IE 7. (reported
1744
+ by Lau Bech Lauritzen).
1745
+
1746
+ - Prevent IE/Safari text selection when selecting stuff on the canvas.
1747
+
1748
+
1749
+
1750
+ ## Flot 0.3 ##
1751
+
1752
+ This is mostly a quick-fix release because jquery.js wasn't included in the
1753
+ previous zip/tarball.
1754
+
1755
+ ## Changes ##
1756
+
1757
+ - Include jquery.js in the zip/tarball.
1758
+
1759
+ - Support clicking on the plot. Turn it on with grid: { clickable: true },
1760
+ then you get a "plotclick" event on the graph placeholder with the position
1761
+ in units of the plot.
1762
+
1763
+ ## Bug fixes ##
1764
+
1765
+ - Fixed a bug in dealing with data where min = max. (thanks to Michael
1766
+ Messinides)
1767
+
1768
+
1769
+
1770
+ ## Flot 0.2 ##
1771
+
1772
+ The API should now be fully documented.
1773
+
1774
+ ### API changes ###
1775
+
1776
+ Moved labelMargin option to grid from x/yaxis.
1777
+
1778
+ ## Changes ##
1779
+
1780
+ - Added support for putting a background behind the default legend. The
1781
+ default is the partly transparent background color. Added backgroundColor
1782
+ and backgroundOpacity to the legend options to control this.
1783
+
1784
+ - The ticks options can now be a callback function that takes one parameter,
1785
+ an object with the attributes min and max. The function should return a
1786
+ ticks array.
1787
+
1788
+ - Added labelFormatter option in legend, useful for turning the legend
1789
+ labels into links.
1790
+
1791
+ - Reduced the size of the code. (patch by Guy Fraser)
1792
+
1793
+
1794
+
1795
+ ## Flot 0.1 ##
1796
+
1797
+ First public release.
1798
+
1799
+ [1.1.5]: https://github.com/ni-kismet/engineering-flot/compare/v1.1.4...v1.1.5
1800
+ [1.1.4]: https://github.com/ni-kismet/engineering-flot/compare/v1.1.3...v1.1.4
1801
+ [1.1.3]: https://github.com/ni-kismet/engineering-flot/compare/v1.1.2...v1.1.3
1802
+ [1.1.2]: https://github.com/ni-kismet/engineering-flot/compare/v1.1.0...v1.1.2
1803
+ [1.1.0]: https://github.com/ni-kismet/engineering-flot/compare/v1.0.10...v1.1.0
1804
+ [1.0.10]: https://github.com/ni-kismet/engineering-flot/compare/v1.0.9...v1.0.10
1805
+ [1.0.9]: https://github.com/ni-kismet/engineering-flot/compare/v1.0.8...v1.0.9
1806
+ [1.0.8]: https://github.com/ni-kismet/engineering-flot/compare/v1.0.7...v1.0.8
1807
+ [1.0.7]: https://github.com/ni-kismet/engineering-flot/compare/v1.0.6...v1.0.7
1808
+ [1.0.6]: https://github.com/ni-kismet/engineering-flot/compare/v1.0.5...v1.0.6
1809
+ [1.0.5]: https://github.com/ni-kismet/engineering-flot/compare/v1.0.4...v1.0.5
1810
+ [1.0.4]: https://github.com/ni-kismet/engineering-flot/compare/v1.0.3...v1.0.4
1811
+ [1.0.3]: https://github.com/ni-kismet/engineering-flot/compare/v1.0.2...v1.0.3
1812
+ [1.0.2]: https://github.com/ni-kismet/engineering-flot/compare/v1.0.1...v1.0.2
1813
+ [1.0.1]: https://github.com/ni-kismet/engineering-flot/compare/v1.0.0...v1.0.1
1814
+ [1.0.0]: https://github.com/ni-kismet/engineering-flot/compare/v0.6.0...v1.0.0