注意:横坐标显示的名称为lx, data里的lx与findLegendItem方法中的lx保持一致
。
var data = [{
lx: 'Jon Nicoll',
score: 282,
avgScore: 94
}, {
lx: 'Aaron Maxwell',
score: 208,
avgScore: 41.6
}, {
lx: 'Warren Clunes',
score: 186,
avgScore: 46.5
}, {
lx: 'David Bolton',
score: 184,
avgScore: 30.67
}, {
lx: 'Joel Robindon',
score: 177,
avgScore: 44.25
}, {
lx: 'Kyle Buckley',
score: 150,
avgScore: 50
}, {
lx: 'Jordan Lawrence',
score: 148,
avgScore: 24.67
}, {
lx: 'Jack Carey',
score: 138,
avgScore: 34.5
}, {
lx: 'Kuldeep Pegu',
score: 130,
avgScore: 32.5
}, {
lx: 'Max Hillier',
score