antvis/G2

散点图展示图例不完整 #3568

wenbin-im posted onGitHub

  • I have searched the issues of this repository and believe that this is not a duplicate.

image

https://48ole.csb.app/

Steps to reproduce

  1. 打开demo
  2. 见图例
Environment Info
g2 4.1.23
System -
Browser -

数据中有‘2021-07-27’ ‘2021-07-29’ ‘2021-08-02’ ‘2021-08-04’,但是在图例中没有显示

<!-- generated by antv-issue-helper. DO NOT REMOVE -->


这个是因为你的日期格式不标准,你手动制动p_date为cat类型就好了,另外你的scale配置写的很奇怪,哪里来的width和height? https://codesandbox.io/s/brave-leakey-b60h6?file=/index.js

posted by wenjingyuer over 3 years ago

@wenbin-im

posted by wenjingyuer over 3 years ago

Fund this Issue

$0.00
Funded

Pull requests