中心轴标记在flot中

时间:2014-05-13 13:17:35

标签: jquery css flot

如下图所示,我的yaxis标签显示在轴顶部不在中心,标签的一部分未显示

enter image description here

此处使用的选项:

var options = {
    series: {
        bars: {
            show: true
        }
    },
    bars:{
        align: "center",
        barWidth: 0.5
    },
    xaxis:{
        axisLabel:"YEARS",
        axisLabelUseCanvas: true,
        axisLabelFontSizePixels: 12,
        axisLabelFontFamily: 'Verdana, Arial',
        axisLabelPadding: 10,
        ticks: ticks
    },
    yaxis: {
        axisLabel: "Number of publications",
        axisLabelUseCanvas: true,
        axisLabelFontSizePixels: 12,
        axisLabelFontFamily: 'Verdana, Arial',
        axisLabelPadding: 3,

    },
    legend:{
        noColumns: 0,
        labelBoxBorderColor: "#000000",
        position: "nw"
    },
    grid:{
        hoverable: true,
        borderWidth: 2,
        backgroundColor: {colors: ["#ffffff", "#EDF5FF"]}
    }
  };

我如何集中标签"出版数量"在yaxis?

0 个答案:

没有答案