Horizontal legend at the bottom of the graph in jqplot

I can get the horizontal jqplot chart legend using the EnhancedLegendRenderer plugin. But I need a horizontal legend at the bottom of the graph. Any suggestion?

+5
source share
2 answers

You should always show some work when pushing the overflow stack. It helps us understand your problem.

I think you are having a problem with EnhancedLedgendRenderer based on your description.

This is what my code is like reaching 1 row, 3 columns.

          legend: {
        // This renderer is needed for advance legends.
        renderer: jQuery.jqplot.EnhancedLegendRenderer,
        show: true, 
        location: 's', 
        placement: 'outside',
        // Breaks the ledgend into horizontal.
        rendererOptions: {
          numberRows: '1',
          numberColumns: '3'
        },
        seriesToggle: true
      },

In addition, you are likely to lose votes due to punctuation and lack of capitalization.

+8
source

change the placement of the placement outward to an external grid

legend: {
    renderer: jQuery.jqplot.EnhancedLegendRenderer,
    show: true, 
    location: 's', 
    placement: 'outsideGrid',
    rendererOptions: {
      numberRows: '1',
    },
  },
0
source

All Articles