jqPlot 能够为图表创建图例。这些示例仅显示垂直图例。我想做一个横向图例。例如,我想要:
X-Label1 X-Label2 X-Label3
并且不想:
X-Label1
X-Label2
X-Label3
谢谢
最佳答案
使用 EnhancedLegendRenderer plugin 很容易实现这一点.只需包含插件并使用与此类似的选项。
legend:{
renderer: $.jqplot.EnhancedLegendRenderer,
show: true,
rendererOptions: {
numberRows: 1
}
}
您只需将 numberRows
设置为 1,这样图例将只显示 1 行。
关于jquery - jqPlot - 水平图例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12351698/