Note that there are some explanatory texts on larger screens.

plurals
  1. POchoose labels to show inside legend of jqplot
    primarykey
    data
    text
    <p>the jqPlot displays labels of ALL the series it has on the graph. I want to show only some of the series on the labels. The thing is that some of lines are just there to show proper limit for values (visually) - some points are above, some below. For now I simply put empty string for labels, but the label point in the label area is still there - it doesn't look good.</p> <p>Here is the code:</p> <pre><code> series:[ {lineWidth:1, color: '#d8d8d8', showMarker: false}, {lineWidth:0.5, color: 'red', showMarker: false}, {lineWidth:1, color: '#d8d8d8', showMarker: false}, {lineWidth:1, color: '#d8d8d8', showMarker: false}, {lineWidth:1, color: '#76a4e8', showMarker: false}, {lineWidth:1, color: '#d8d8d8', showMarker: false}, {lineWidth:0.5, color: 'red', showMarker: false}, {lineWidth:1, color: '#d8d8d8', showMarker: false}, {lineWidth:1, color: '#d8d8d8', showMarker: false}, { lineWidth:0.5, color: 'green', rendererOptions: {animation: {speed: 1500}}, markerOptions:{color: 'green', style:'filledSquare'}, }, //here are the series with real values - they come from php in red or orange ], legend:{ renderer: jQuery.jqplot.EnhancedLegendRenderer, show: true, hideZeros: true, location: 'e', //labele with names //labels: [ 'SD+4', 'SD+3', 'SD+2', 'SD+1','Perfect value', 'SD-1', 'SD-2', 'SD-3', 'SD-4', 'Real Values', 'Vales to high'], //labele with empty points labels: [ ' ', ' ', ' ', ' ','Perfect value', ' ', ' ', ' ', ' ', 'Real Values', 'Vales to high'], placement: 'outsideGrid' } </code></pre> <p><img src="https://i.stack.imgur.com/TRmIl.jpg" alt="enter image description here"></p> <p>As you see it doesn't look too good. Only Perfect value, real values, and values too high/low should be shown.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload