0.3.4 • Published 9 months ago

@jadesrochers/legends v0.3.4

Weekly downloads
21
License
MIT
Repository
github
Last release
9 months ago

legends

Just a barscale

It is a horizontal barscale.

Using it requires passing data

It takes the data, formatter, styling and tries to put together a decent
looking bar legend.
I was going to use d3 built in but found a lot of parts do not work
with react readily.

  <BarScale key='legend' 
    cssStyles={ props.legendstyle }
    data={ props.geodata } 
    formatter={ howtoformatlabelfcn }
    legendstyle={props.legendstyle}  
    offset="20%" {...pass}
  />

The built in demos demonstrate several variations

If you download the github repo you can use:

npm start

To start up a demo site accessible at 127.0.0.1 and check out several variations of how the barscale can be used with different formatting and scaling. The code for these is available in the /demo directory in the repo.

Could add vertical setup

Right now it is only a horizontal scale, but the underlying elements would
easily support a vertical scale.

0.3.0

9 months ago

0.3.2

9 months ago

0.3.1

9 months ago

0.3.4

9 months ago

0.2.1

1 year ago

0.2.0

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.4

1 year ago

0.1.14

3 years ago

0.1.13

4 years ago

0.1.12

4 years ago

0.1.11

4 years ago

0.1.10

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago