Author: CSDN @ _乐多_
This article records the code of a draggable bar chart vue component. The code can be used at any time, and the component is plug-and-play.
Results as shown below,
Article directory
1. Environment configuration
Install nodejs, vue3, echarts.
2. Components
<template>
<div id="a" ref="draggableDiv" @mousedown