I am using JQPlot and I have many graphs on one HTML page. Each of the graphs has the same legend.
My question is this: Is it possible to display a legend totally outside of the graph with its own position on the HTML page or in its own div?
I am using JQPlot and I have many graphs on one HTML page. Each of the graphs has the same legend.
My question is this: Is it possible to display a legend totally outside of the graph with its own position on the HTML page or in its own div?
Maybe you could hide the legend of the 2nd to the last graph, like this:
and in the 1st graph, put something like:
This way you will only show one legend at the top of the graphs.
Are you looking for
title
? You can style .jqplot-title to appear differently. It appears outside of the graph by default.You could also restyle the legend. See
table.jqplot-table-legend
at http://www.jqplot.com/docs/files/jqPlotCssStyling-txt.htmlYou can use placement : "outside" like in the above code. And you can move it using marginTop,marginBottom,marginRight,marginLeft properties.