markrcote / flot-axislabels

Axis Labels Plugin for Flot. This repo is unmaintained in part due to flot being in a similar situation.
95 stars 71 forks source link

Axis Labels show up in a separate legend block instead of around the graph #45

Closed dennis-fedco closed 6 years ago

dennis-fedco commented 6 years ago

For some reason my axis labels show up in the separate legend block and not left/right of the graph... Is this a known issue? image

yaxes : [{
            tickFormatter : function(val, axis)
            {

                return Math.round(val * 100) / 100 + ' ' + axisUnit[1];
            },
            tickColor : "#6A6A6A",
            color : axisColor[1],
            position : "left",
            min : arrayMin(axisValues[1]),
            max : arrayMax(axisValues[1]),
            labelWidth : 60,
            axisLabel : "WRONG PLACE",
            axisLabelUseCanvas : true,
            axisLabelFontSizePixels : 40,
            axisLabelPadding : -15,
            axisLabelColour : axisColor[1]
        }
dennis-fedco commented 6 years ago

I did not include jquery.flot.axislabels.js in the right place, and my script was failing silently. Including the file started showing the labels.

(note that the spill of the label into axislabel was due to my custom programming)