Skip to content

Commit 61a5121

Browse files
committed
fix: y channel in datakey problem
1 parent 9d9862f commit 61a5121

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vchart-extension/src/charts/ranking-list/ranking-list-transformer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ export class RankingListChartSpecTransformer extends CommonChartSpecTransformer
507507
{
508508
id: 'datas',
509509
values: pagerData[order].map(d => {
510-
return { ...d, [DATA_KEY]: d['y'] };
510+
return { ...d, [DATA_KEY]: d[spec.yField] };
511511
})
512512
},
513513
{

0 commit comments

Comments
 (0)