- Fixed type for
autoresize
(again).
- Fixed style injection regression (#805).
- Fixed type for
autoresize
.
Other prerelease changes:
- Fixed types for events.
- Upgraded to ESM.
- Removed the
postinstall
script. - API remains the same.
- Peer deps for
echarts
is upgraded to^5.5.1
. - Dropped support for browsers without
ResizeObserver
. Can work with resize-observer-polyfill. - Dropped support for Vue < 2.7.
- Dropped CJS outputs.
- Dropped extra wrapper element so that you should no longer set
padding
on the component root. - For strict CSP usage,
vue-echarts/csp
should now be used as the entry point andvue-echarts/csp/style.css
should be included manually.
- Fixed that
padding
on the component root doesn't work.
- Fixed that charts inside
<keep-alive>
failed to display after activation.
- Fixed that native events won't actually trigger.
- Added supports for native DOM events binding with the
native:
prefix.
- Fixed that
autoresize
doesn't work when reducing the height or the root element.
- Fixed that the chart may not be the same size as the component root element (#761).
- Fixed the postinstall script to patch the correct
types
entry for Vue 2.7.
- Added missing type file for Vue 2.7.
- Fixed types for Vue < 2.7.
- Fixed type for
option
regressed in v6.6.2.
- Fixed style regression introduced by v6.6.3.
- Fixed inner wrapper styles.
- Fixed that tooltips may affected by internal styling by VueECharts.
- Make
padding
work out-of-the-box.
- Added support for
autoresize
accepting an options object to specify custom throttle delay or resize callback.
- Removed the custom element registration enhancement for strict CSP builds so that they won't contain
new Function
.
- Cleaned up the
console.log
call sneaked in by mistake.
- Fixed default behavior for
notMerge
option (#691).
- Added
dist/csp/*
to support strict CSP with extracted CSS file.
- Fixed types for mouse events.
- Use more precise typings for all event params.
- Updated peer deps for
echarts
to^5.4.1
.
- Improve typings for mouse event params.
- Delay the disposal of the ECharts instance to the moment the element is disconnected from the DOM if possible (#433).
- Make autoresize work for grid layout by default (#675).
- Added basic types for events (only event names).
- Revert the style change to prevent tooltips from being clipped.
- Injected values can now be wrapped in an object so that they can be reactive in Vue 2.
- Fixed that attributes were not outputted onto the chart root element for Vue 2 (#670).
- Fixed the problem that
v-on
stops working after upgrading to[email protected]
.
- Improve types for
update-options
.
- Improved types for provide/inject API.
- Added support for Vue 2.7+.
- Added support for
.once
event modifier.
- Improved typings for Vue 2 version.
- Make
notMerge
option still respectupdate-options
. - The default behavior of
notMerge
now revert to checking if there is a reference change for theoption
prop.
- Update should always be
notMerge: true
. - Update dependency version for vue-demi.
- Update dependency versions.
- Revert the change of
updateOptions.lazyUpdate
. It defaults tofalse
again. - Fixed the occasional error caused by the internal implementation of ECharts.
- Removed unexpected
console.log
call.
- Changed
updateOptions.lazyUpdate
totrue
by default. (#533) - Only perform an additional
resize
call after init within a task. (#533) - The
.chart
getter API now works for Vue 2. (#542)
- Fix type error for
Vue2
reference.
- Add missing types file for Vue 2.
- Fix postinstall script.
- Move inital resize timing earlier into microtasks so that minimize visual layout shift.
- Add a postinstall script to bail out type check for Vue 2 environment.
- Ensure charts fit to container after the next UI render. (#518)
- Ensure VCA is always installed.
- Remove deps for
mergeProps
as it's not yet implemented in@vue/composition-api
. (#519)
- Suppress native events and only handles chart events. (#516)
- Update
vue-demi
version to fix type error.
- Fix injection keys for UMD bundle.
- Add
vue-demi
to UMD bundle.
- Use a custom element for the root element to make default style less specific.
- Fix event support for Vue 2.
- Add missing injection key exports.
- Add missing dependencies for
vue-demi
andresize-detector
.
- Fix bundling for UMD build.
- Update peer dependency for
echarts
to^5.0.2
. - Update peer dependency for
vue
to^2.6.11 || ^3.0.0
. - Now
@vue/composition-api
is required to be installed to use Vue-ECharts with Vue 2. options
is renamed tooption
to align with ECharts itself.- Updating
option
will respectupdate-options
configs instead of checking reference change. watch-shallow
is removed. Usemanual-update
for performance critical scenarios.mergeOptions
is renamed tosetOption
to align with ECharts itself.showLoading
andhideLoading
is removed. Use theloading
andloading-options
props instead.appendData
is removed. (Due to ECharts 5's breaking change.)- All static methods are removed from
vue-echarts
. Use those methods fromecharts
directly. - Computed getters (
width
,height
,isDisposed
andcomputedOptions
) are removed. Use thegetWidth
,getHeight
,isDisposed
andgetOption
methods instead. - Now the root element of the component have
100%×100%
size by default, instead of600×400
.
- ECharts 5 support.
- Vue 3 support.
- TypeScript support.
- Add new
update-options
prop and support providing default from context. - Add new
loading
prop and support providing default from context. - Add new
loading-options
prop and support providing default from context. - Support providing default from context for the
theme
prop.
- Update peer dependency for
vue
to^2.4.0
. BREAKING
- Fix the problem that
mergeOptions
didn't use the correct options if the instance is inited on-the-fly. - Expose ZRender events via
zr:
prefixed events. - Update to
[email protected]
(only affects the bundled version).
- Update to
[email protected]
(only affects the bundled version).
- Update to
[email protected]
.
- Make
manual-update
truely responsive.
- Fix
legendscroll
event.
- Release 4.0.0.
- Fix autoresize.
- Move
echarts
intopeerDependencies
. BREAKING - Rename
auto-resize
toautoresize
. BREAKING - Point
module
entry to the source version. BREAKING - Switch to Vue CLI 3 for demo.
- Fix the problem that
setOption
is always called withnotMerge: true
.
- Fix the problem that
options
are not watched as expected.
- Add
manual-update
prop to handle performance critical scenarios. - Deprecate
watch-shallow
prop as it was actually not working as expected. - Fix the computed getters by using
Object.defineProperties
directly instead of Vue'scomputed
as it no longer works as expected after Vue 2.0. - Remove
chart
fromdata
to gain a performance boost.
- Update to
[email protected]
to better handle initial resize callback.
- Add new events and API to adapt the latest version of ECharts.
- Only apply optimization introduce in last version for charts resize from
0
area.
- Optimize
auto-resize
for initially hidden (display: none
) charts.
- Update to
[email protected]
.
- Fix misused
MutationObserver
(#200).
- Update to
[email protected]
.
- Update ECharts to
4.0.2
.
- Fix npm distribution.
- Added support for ECharts 4.
auto-resize
now listens to element size change instead of window.- Remove deprecated
chart
prefixed events.
- Added
watchShallow
prop to manually disable deep watch onoptions
to optimize performance for charts with large amout of data. - Made all props reactive.
- Updated ECharts dependency to
^3.8.5
.
- Updated ECharts dependency to
3.8.2
+ to fix module breaking change introduced in3.8.0
.
- Fixed collision with Vue's internal methods by removing
_
prefix. mergeOptions
now accept same arguments as ECharts'setOption
method.- Updated ECharts dependency to 3.7.2+.
- Made
theme
reactive. - Added
focusnodeadjacency
&unfocusnodeadjacency
events. - Fixed the problem that charts won't refresh after
keep-alive
components are activated.
- Add
computedOptions
.
- Replace publish npm scripts with shell commands to prevent failure upon npm install.
- Fixed the problem that styles are missing for precompiled version.
- Switch back to
Vue.util.warn
. - Switch build tool to rollup.
- Hot fix for last version. Use
console.warn
temporarily.
- Mark Vue as an external dependency in webpack config.
- Use
Vue.util.warn
directly.
- Fix NPM package.
- Fix the implementation of
disconnect
.
- Correctly dispose ECharts instance before component is destroyed.
- Fix the problem that
group
is not properly initialized.
- As native events are now not listened by
v-on
in Vue.js 2.0, change mouse events name to original ones (keeping emittingchart*
events for now). - Fix getter for
width
/height
/isDisposed
. options
is now optional to initialize the component and the chart will be initialized automatically whenoptions
is set.
- Add
auto-resize
. - Refined demo.
- Fix
disconnect
. - When importing
ECharts.vue
, only ECharts core will be imported instead of the whole ECharts bundle.
- Update Vue dependency to
2.0.1
. - Add support for new methods & events for ECharts.
- Fix missing arguments for some APIs.
- Update ECharts version.
- Remove unnecessary files from NPM package.
- Fix usage in README.
- First version.