Code Monkey home page Code Monkey logo

Comments (4)

weepy3641 avatar weepy3641 commented on May 22, 2024

下个版本支持。

from bizcharts.

weepy3641 avatar weepy3641 commented on May 22, 2024

@a12366456
position 字段是用来指定 geom x、y属性所绑定的数据句字段,即数据决定了空间位置,具体的空间位置是由 G2 自适应布局计算出来的。
目前支持 sale * year 这样的写法,下个版本会支持 ['sale', 'year'] 数组形式的写法,你说的回调函数是怎样的? 是想要根据特定数据去返回空间坐标?

from bizcharts.

DuRunzhe avatar DuRunzhe commented on May 22, 2024

在空间位置x,y需要由多个字段决定时,数据类似[{year:2017,moth:1,count:10}],我需要x由year和month共同决定,期待的写法position={['year*month', (year,month)=>{return year+"年"+month+"月";},
count
]}

from bizcharts.

weepy3641 avatar weepy3641 commented on May 22, 2024

@a12366456
你说的这种写法支持不了哦, 首先G2 就是不支持的,bizcharts 的层面无法支持这种定制。

你可以去 g2 提个 issue,看看他们支不支持。

from bizcharts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.