遇到的问题是因为传入的x轴数据为连续性的日期,而图的类型想设置为并列分组


导致报错dodge is not support linear attribute, please use category attribute!

只要在scale中设置x轴字段值相应的type类型为非连续性即可。timeCat属性也可以,但如果X轴数据为年月格式,则会自动转化为年月日,并且为YYYY-MM-01格式
遇到的问题是因为传入的x轴数据为连续性的日期,而图的类型想设置为并列分组
导致报错dodge is not support linear attribute, please use category attribute!
只要在scale中设置x轴字段值相应的type类型为非连续性即可。timeCat属性也可以,但如果X轴数据为年月格式,则会自动转化为年月日,并且为YYYY-MM-01格式
本文标题:dodge is not support linear attr
本文链接:https://www.haomeiwen.com/subject/ddrogctx.html
网友评论