7.5.0 (2022-04-07)
7.4.4 (2021-08-27)
7.4.3 (2021-05-01)
7.4.2 (2020-11-10)
7.4.1 (2020-07-28)
- reexport types (dd4f409)
7.4.0 (2020-07-20)
7.3.0 (2020-03-22)
7.2.1 (2020-02-12)
7.2.0 (2020-02-06)
7.1.2 (2020-02-05)
- autosize fail sometimes(#78) (#80) (f580611)
- demo (dc32f61)
- replace any type with unknown (#93) (0f16622)
- use chaining (1d78394)
7.1.1 (2019-11-19)
7.1.0 (2019-10-18)
7.0.1 (2019-09-25)
7.0.0 (2019-09-20)
- improve perf and avoid updating data or view when not necessary (#58) (20d99ca)
- log parse error by default and catch more errors (#56) (c01862d)
7.0.0-alpha.0 (2019-09-15)
6.1.0 (2019-07-10)
6.0.1 (2019-04-03)
6.0.0 (2019-04-03)
- lint (669df11)
- discontinue bower support (e30dca6)
- add storybook (b4f1ecc)
- discontinue bower support
5.0.0 (2019-04-02)
7.4.4 (2021-08-27)
7.4.3 (2021-05-01)
7.4.2 (2020-11-10)
7.4.1 (2020-07-28)
- reexport types (dd4f409)
7.4.0 (2020-07-20)
7.3.0 (2020-03-22)
7.2.1 (2020-02-12)
7.2.0 (2020-02-06)
7.1.2 (2020-02-05)
- autosize fail sometimes(#78) (#80) (f580611)
- demo (dc32f61)
- replace any type with unknown (#93) (0f16622)
- use chaining (1d78394)
7.1.1 (2019-11-19)
7.1.0 (2019-10-18)
7.0.1 (2019-09-25)
7.0.0 (2019-09-20)
- improve perf and avoid updating data or view when not necessary (#58) (20d99ca)
- log parse error by default and catch more errors (#56) (c01862d)
7.0.0-alpha.0 (2019-09-15)
6.1.0 (2019-07-10)
6.0.1 (2019-04-03)
6.0.0 (2019-04-03)
- lint (669df11)
- discontinue bower support (e30dca6)
- add storybook (b4f1ecc)
- discontinue bower support
5.0.0 (2019-04-02)
4.0.2 (2018-07-31)
4.0.1 (2018-07-28)
4.0.0 (2018-07-25)
3.1.2 (2018-01-11)
3.1.1 (2017-06-22)
3.1.0 (2017-06-22)
7.2.0 (2020-02-06)
7.1.2 (2020-02-05)
- autosize fail sometimes(#78) (#80) (f580611)
- replace any type with unknown (#93) (0f16622)
- use chaining (1d78394)
7.1.1 (2019-11-19)
7.1.0 (2019-10-18)
7.0.1 (2019-09-25)
7.0.0 (2019-09-20)
- improve perf and avoid updating data or view when not necessary (#58) (20d99ca)
- log parse error by default and catch more errors (#56) (c01862d)
7.0.0-alpha.0 (2019-09-15)
- Some props of
<Vega />
are changed. react-vega-lite
package is deprecated.
<Vega enableHover />
changes to<Vega hover />
<Vega onParseError={} />
changes to<Vega onError={} />
Vega
'sonSignalXXX
signal listeners has been changed.
<Vega onSignalHover={handleHover} />
// key is signal name
const signalListeners = { hover: handleHover } />
<Vega signalListeners={signalListeners} />
Please use react-vega
instead of react-vega-lite
.
import { Vega, VegaLite, createClassFromSpec } from 'react-vega';
// Option 1. When spec has $schema field that is a valid vega-lite schema url. Vega will automatically parse vega-lite spec.
<Vega spec={spec} />
// Option 2. Enforce mode manually.
<Vega mode="vega-lite" spec={spec} />
// Option 3. The new VegaLite component in react-vega is just a syntactic sugar of option 3.
<VegaLite spec={spec} />
6.1.0 (2019-07-10)
6.0.1 (2019-04-03)
- add
react-vega-lite
(87b3512)
- add
react-vega-lite
storybook (4e8793f)
6.0.0 (2019-04-03)
- linting (669df11)
- add storybook (b4f1ecc)
- output are now in
lib
andesm
directories instead ofdist
- discontinue
bower
support
5.0.0 (2019-04-02)
- Switch from
vega-lib
back to `vega.
4.0.2 (2018-07-31)
- Fix webpack config for amd/commonjs
4.0.1 (2018-07-28)
- Fix wrong webpack config that cause
react-vega
to accidentally bundlevega-lib
inside it. (Issue #20)
4.0.0 (2018-07-25)
- Switch from
vega
tovega-lib
- Add tooltip handler support. Thanks @mdelrossi1.
- Fix bug #14
3.1.2 (2018-01-11)
- Expand version to support React 16
3.1.1 (2017-06-22)
- Also add
vega
to devDependencies
3.1.0 (2017-06-22)
- Move
vega
to peerDependencies
3.0.1 (2017-05-09)
3.0.0 (2017-05-09)
- Support Vega 3 API changes (Issue #6)
- Remove props
viewport
fromVega
- Add props
updateOptions
- Support props
className
andstyle
- Makes
createClassFromSpec(name, spec)
works when name is omitted (createClassFromSpec(spec)
). This is for backward compatibility.
- Fix eslint complaints
- Implement
shouldComponentUpdate
to check if anything was changed. - Add static functions
isSamePadding
andisSameViewport
toVega
class.
Very likely to work fine if you are upgrading from 1.x.x. There are breaking changes (of the features nobody seems to use) and I almost rewrite the whole thing so I think it is worth being considered a major version. Here are the list of changes:
- Rewrite using preferred method recommended by React.
Vega
component now extendsReact.Component
and useref
as a function instead of string. - Add check for props/data changes and only update when necessary.
- Refactor code for clarity
- Remove support for spec as a function
- Add static functions
isSameData
,isSameSpec
andlistenerName
toVega
class.
- Fix bug to call
vis.update()
before setting new data
- Support function as data and add static
getSpec()
- Avoid clearing data when that field is not set in the input.
- Change global export name to
ReactVega
instead ofreactVega
- Fix bug with umd export when using global
- Fix bug with umd export when using global
- Add support for dynamic spec via
<Vega>
component.
- Fix external lib bug
- First release