Commit 7a799bae authored by David Schnur's avatar David Schnur

Updated NEWS for axis text changes.

parent 0df6bc4a
...@@ -17,12 +17,26 @@ standard strftime specifiers, plus one nonstandard specifier for quarters. ...@@ -17,12 +17,26 @@ standard strftime specifiers, plus one nonstandard specifier for quarters.
Additionally, if a strftime function is found in the Date object's prototype, Additionally, if a strftime function is found in the Date object's prototype,
it will be used instead of the built-in formatter. it will be used instead of the built-in formatter.
Axis labels are now drawn with canvas text with some parsing to support Axis tick labels now use the class 'flot-tick-label' instead of 'tickLabel'.
newlines. This solves various issues but also means that they no longer The text containers for each axis now use the classes 'flot-[x|y]-axis' and
support HTML markup, can be accessed as DOM elements or styled directly with 'flot-[x|y]#-axis' instead of '[x|y]Axis' and '[x|y]#Axis'. For compatibility
CSS. Some older browsers lack this function of the canvas API (this doesn't with Flot 0.7 and earlier text will continue to use the old classes as well,
affect IE); if this is a problem, either continue using an older version of but they are considered deprecated and will be removed in a future version.
Flot or try an emulation helper such as canvas-text or Flashcanvas.
A new plugin, jquery.flot.canvas.js, allows axis tick labels to be rendered
directly to the canvas, rather than using HTML elements. This feature can be
toggled with a simple option, making it easy to create interactive plots in the
browser using HTML, then re-render them to canvas for export as an image.
The plugin tries to remain as faithful as possible to the original HTML render,
and goes so far as to automatically extract styles from CSS, to avoid having to
provide a separate set of styles when rendering to canvas. Due to limitations
of the canvas text API, the plugin cannot reproduce certain features, including
HTML markup embedded in labels, and advanced text styles such as 'em' units.
The plugin requires support for canvas text, which may not be present in some
older browsers, even if they support the canvas tag itself. To use the plugin
with these browsers try using a shim such as canvas-text or FlashCanvas.
The base and overlay canvas are now using the CSS classes "flot-base" and The base and overlay canvas are now using the CSS classes "flot-base" and
"flot-overlay" to prevent accidental clashes (issue 540). "flot-overlay" to prevent accidental clashes (issue 540).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment