github flot/flot v0.4.0
0.4.0

latest releases: v4.2.6, v4.2.5, v4.2.4...
10 years ago

API changes

Deprecated axis.noTicks in favor of just specifying the number as axis.ticks.
So xaxis: { noTicks: 10 } becomes xaxis: { ticks: 10 }.

Time series support. Specify axis.mode: "time", put in Javascript timestamps
as data, and Flot will automatically spit out sensible ticks. Take a look at
the two new examples. The format can be customized with axis.timeformat and
axis.monthNames, or if that fails with axis.tickFormatter.

Support for colored background areas via grid.coloredAreas. Specify an array
of { x1, y1, x2, y2 } objects or a function that returns these given
{ xmin, xmax, ymin, ymax }.

More members on the plot object (report by Chris Davies and others).
"getData" for inspecting the assigned settings on data series (e.g. color) and
"setData", "setupGrid" and "draw" for updating the contents without a total
replot.

The default number of ticks to aim for is now dependent on the size of the
plot in pixels. Support for customizing tick interval sizes directly with
axis.minTickSize and axis.tickSize.

Cleaned up the automatic axis scaling algorithm and fixed how it interacts
with ticks. Also fixed a couple of tick-related corner case bugs (one reported
by mainstreetmark, another reported by timothytoe).

The option axis.tickFormatter now takes a function with two parameters, the
second parameter is an optional object with information about the axis. It has
min, max, tickDecimals, tickSize.

Changes

  • Added support for segmented lines. (based on patch from Michael MacDonald)
  • Added support for ignoring null and bad values. (suggestion from Nick
    Konidaris and joshwaihi)
  • Added support for changing the border width. (thanks to joebno and safoo)
  • Label colors can be changed via CSS by selecting the tickLabel class.

Bug fixes

  • Fixed a bug in handling single-item bar series. (reported by Emil Filipov)
  • Fixed erratic behaviour when interacting with the plot with IE 7. (reported
    by Lau Bech Lauritzen).
  • Prevent IE/Safari text selection when selecting stuff on the canvas.

Don't miss a new flot release

NewReleases is sending notifications on new releases.