antvis/G2

饼图 legend 为日期类型,会缺失图例,也可能会出现NaN #4105

th-wu posted onGitHub

背景

思路

  • legend值识别为‘cat’而非‘timeCat’时,期望结果达成

识别类型根据数据和一些规则来的,可能会有失误的情况,可以手动设置为 timeCat

chart.scale('legend-field', { type: 'timeCat' });
posted by hustcc over 2 years ago

Fund this Issue

$0.00
Funded

Pull requests