Ver*_*Lom 2 javascript jquery legend flot
默认情况下,flot生成了图例块(表格),如下所示([#] - 颜色框):
_________________
|_[#]_|_label_1_|
|_[#]_|_label_2_|
|_..._|_......._|
Run Code Online (Sandbox Code Playgroud)
我想要这样的横向传奇:
______________________________.______________________________
|_[#]_|_My_long_label_1_______|_[#]_|_My_another_label_2____|
|_[#]_|_Trololo_label_here____|_[#]_|_hell,_yeah!___________|
.............................................................
Run Code Online (Sandbox Code Playgroud)
我已经尝试过使用labelFormatter()但是失败=(
我为每个系列元素添加了订单号,可以在labelFormatter()中使用它(如... if(series.num%2 == 0){... next row ...}
小智 12
试试以下,
legend: {
show: true,
noColumns:2,
container:$("#graph_legend")
}
Run Code Online (Sandbox Code Playgroud)