Giter Club home page Giter Club logo

g2x's Introduction

g2x

React component wrapper for @antv/g2.

NPM Package NPM Downloads MIT License

demo

function App() {

  return (
    <>
      <Chart width={640} height={480} onBeforeRender={e => console.log('before render', e)} onElementClick={e => console.log('element click',e)} onIntervalClick={e => console.log('Interval click', e)} onAfterChangeData={e => console.log('before change data', e)}>
        <SpaceLayer>
          <FetchData value="https://gw.alipayobjects.com/os/bmw-prod/fb9db6b7-23a5-4c23-bbef-c54a55fee580.csv" format="csv" />
          <Interval>
            <Title title="test title" align="center" />
            <Encode name="x" value="letter" />
            <Encode name="y" value="frequency" />
            <FieldEncode name="color" value="letter" />
            <SortX reverse={true} by="y" />
          </Interval>
          <Interval x={300} y={65} width={300} height={300} legend={false}>
            <FieldEncode name="y" value="frequency" />
            <Encode name="color" value="letter" />
            <StackY />
            <ThetaCoordinate />
          </Interval>
        </SpaceLayer>
      </Chart>
    </>
  )
}

image

g2x's People

Contributors

lloydzhou avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

g2x's Issues

一些开发计划

antvis/G2#5772

其实这个库,还没有完善,在我看来,还没到一半,最多30%-40%

  1. 当前只是处理了一些通过react组件来组织spec的配置项,其实还有一些,需要花时间,慢慢对照g2的文档,以及代码仓库去找出来
  2. 还有一个重要的点是,没有处理事件监听相关的逻辑
  3. 有可能还需要提供几个hook帮助处理一些常见的逻辑(主要是这个没有使用到真实的业务场景,所以还不知道怎么去抽象)
  4. 最后才是周边的,推广相关的,例如做官网,补充文档之类的

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.