Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how i can install 'vx'? #54

Closed
jockw opened this issue Jun 8, 2017 · 4 comments
Closed

how i can install 'vx'? #54

jockw opened this issue Jun 8, 2017 · 4 comments

Comments

@jockw
Copy link

jockw commented Jun 8, 2017

when i install vx use 'npm install vx ' ,i am find that the 'vx' i had installed didn't your 'vx',so how can i install your 'vx'

@williaster
Copy link
Collaborator

Vx is broken down into multiple packages (@vx/axis, @vx/shape, etc.) with the idea that you install what you need and can minimize bundle size.

Also note that because these are all name-spaced packages you need a @ before vx. so something like npm install @vx/axis should work.

Flaque added a commit to Flaque/vx that referenced this issue Jun 8, 2017
We should add an example of how to install the individual packages on the front-facing README to account for issues like airbnb#54.
@hshoff
Copy link
Member

hshoff commented Jun 9, 2017

Hi @jockw thanks for checking out vx. As @williaster said, vx is a library of packages so you only need to install what you need.

I'll give this some thought. Going to close this in favor of #33

@hshoff hshoff closed this as completed Jun 9, 2017
@jockw
Copy link
Author

jockw commented Jun 15, 2017

thankyou

@hshoff
Copy link
Member

hshoff commented Aug 18, 2017

To lower the friction to get started with vx, there is now @vx/vx

npm install --save @vx/vx react react-dom
import { scaleLinear, AreaClosed, withTooltip } from '@vx/vx';
console.log(scaleBand);
console.log(AreaClosed);
console.log(withTooltip);

// or put everything under a vx namespace
import * as vx from '@vx/vx';
console.log(vx.scaleBand);
console.log(vx.AreaClosed);
console.log(vx.withTooltip);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants