This question about Using an extension: Asked

Can I customize the legend position or visibility

(this is for the FlotchartPlugin)


I am finding the flotchart plugin convenient, because I can define it in a single line, without referencing to a table. Good plugin!

However, I am having trouble because the documentation does not say how to show or hide the legend, or change its position. currently the legend is in the NorthWest nw position, and in that area it is blocking the latest months data. When "better is good", usually the data points will be hidden under the legend.

In the API this is mentioned:

Customizing the legend ==================

legend: { show: boolean labelFormatter: null or (fn: string, series object -> string) labelBoxBorderColor: color noColumns: number position: "ne" or "nw" or "se" or "sw" margin: number of pixels or [x margin, y margin] backgroundColor: null or color backgroundOpacity: number between 0 and 1 container: null or jQuery object/DOM element/jQuery expression }

But I tried to use those names (such as show or position) within my chart definition and did not have any good results.

Is there a way to specify that? If so, how can I do it?


-- AlexWayne - 19 Jan 2012


QuestionForm edit

Subject Using an extension
Extension FlotChartPlugin
Version Foswiki 1.1.3
Status Asked
Related Topics
Topic revision: r2 - 19 Jan 2012, AlexWayne - This page was cached on 09 Jan 2018 - 10:41.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License