Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-vis

Package Overview
Dependencies
Maintainers
1
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-vis - npm Package Compare versions

Comparing version 0.8.0 to 0.8.1

dist/lib/plot/series/label-series.js

3

dist/lib/plot/series/area-series.js

@@ -111,3 +111,4 @@ 'use strict';

var fill = this._getAttributeValue('fill') || this._getAttributeValue('color');
var opacity = this._getAttributeValue('opacity') || _theme.DEFAULT_OPACITY;
var newOpacity = this._getAttributeValue('opacity');
var opacity = Number.isFinite(newOpacity) ? newOpacity : _theme.DEFAULT_OPACITY;
var d = this._renderArea(data, x, y0, y, curve);

@@ -114,0 +115,0 @@ return _react2.default.createElement('path', {

@@ -130,3 +130,4 @@ 'use strict';

var stroke = this._getAttributeValue('stroke') || this._getAttributeValue('color');
var opacity = this._getAttributeValue('opacity') || _theme.DEFAULT_OPACITY;
var newOpacity = this._getAttributeValue('opacity');
var opacity = Number.isFinite(newOpacity) ? newOpacity : _theme.DEFAULT_OPACITY;
var d = this._renderLine(data, x, y, curve);

@@ -133,0 +134,0 @@

{
"name": "react-vis",
"version": "0.8.0",
"version": "0.8.1",
"license": "MIT",

@@ -5,0 +5,0 @@ "author": "Anton Bulyenov <antonb@uber.com>",

@@ -23,3 +23,3 @@ # react-vis ![Build Status](https://travis-ci.org/uber/react-vis.svg?branch=master)

```shell
npm install react-vis
npm install react-vis --save
```

@@ -87,2 +87,14 @@

### v0.8.0
This release adds two new props (and set of illustrative examples) to Hint component: ```align``` and ```getAlignStyle```. ```align``` (replacing ```orientation``` prop) is an object with two props &mdash; ```horizontal``` and ```vertical``` &mdash; and set of values that support existing and new hint placement:
a) around a data point in one of four quadrants (imagine the point bisected by two axes &mdash; vertical, horizontal &mdash; creating 4 quadrants around a data point).
b) **New**: pin to an edge of chart/plot area and position along that edge using data point's other dimension value.
Developers wanting total control can use the ```getAlignStyle(align, x, y)``` function that returns an inline style object with one or more of the following props (```left, right, top, bottom```).
The ```orientation``` prop is supported for backwards compatibility but will be deprecated in future release.
See the following figure explaining the two props (```horizontal, vertical```) for the ```align``` prop object.
![react-vis-hint](https://cloud.githubusercontent.com/assets/2983206/21572148/f1529198-ce8a-11e6-8dc3-ef5f320ab9a1.png)
### v0.7.0

@@ -89,0 +101,0 @@ This release adds a new series: rectSeries. Rect series operates similarly to barSeries: they consist of a series of rectangles of various size that be stacked, but with one key difference. Where the bar series operates on the assumption of an ordinal axis, rect series operates on an assumption of a continuous one. This allows users to specify the positions of the edges of their rectangles!

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc