jquery スパークラインを使用しようとしています。これが私がやろうとしていることです。
var values = [{value:123}, {value:234}, {value:345}];
// Draw a sparkline for the #sparkline element
$('#sparkline').sparkline(values.value, {
type: "pie",
// Map the offset in the list of values to a name to use in the tooltip
tooltipFormat: '{{offset:offset}} ({{percent.1}}%)',
tooltipValueLookups: {
'offset': {
0: 'First',
1: 'Second',
2: 'Third'
}
},
});
ただし、このデータ形式では、スパークラインは描画できません。コードでどのような変更を行う必要があるか