Curly diagram changes the position of legends

Is it possible to change the default position of legends left or right?

How can we implement a mouse cursor over the mouse pointer, i.e. the content should be displayed with the mouse pointer, and not with another DIV

+7
source share
2 answers

The legend parameter accepts the position attribute to indicate its location:

legend: { position: "ne" or "nw" or "se" or "sw" } 

What do you mean by "mouse pointer". Do you want the "content" to follow the pointer?

+9
source

Here is the library documentation that you are using:

https://github.com/flot/flot/blob/master/API.md#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 sorted: null/false, true, "ascending", "descending", "reverse", or a comparator } 
+5
source

All Articles