【发布时间】:2013-02-22 17:15:22
【问题描述】:
我有一个图表 (http://jsfiddle.net/CfVZP/12/) 有几个系列,其中 y 轴数据在两个不同的尺度上。我将 yaxis 用于一个比例,将 y2axis 用于另一个比例。我希望能够使用图表左侧的 y 轴(位置:'nw')显示系列的图例,并使用右侧的 y2 轴(位置:'ne')显示系列的图例)。有没有办法为不同的系列设置不同的图例属性?
类似:
{series: [
showMarker: true,
color: "#00FF00",
legend: { // This doesn't actually work.
location: 'ne', // I'm looking for a substitute
} // for this functionality.
],
// Additional series with different legend locations
}
使用标准图例选项似乎无法做到这一点(我尝试使用位置和 EnhancedLegendRenderere 列选项),但我想知道是否有不同的插件可以做到这一点,或其他可以更改以产生相同结果的选项。
【问题讨论】:
标签: javascript jquery jqplot