All Projects → panteng → Vue Echarts

panteng / Vue Echarts

A simple yet flexible custom directive for using Echarts in Vue.js(v2.x.x) apps.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Vue Echarts

Patentcrawler
scrapy专利爬虫(停止维护)
Stars: ✭ 114 (-40.93%)
Mutual labels:  echarts
Vue3 Bigdata
一个基于vue3.0的大数据分析系统,包含各种echarts和vue3.0新API
Stars: ✭ 139 (-27.98%)
Mutual labels:  echarts
Jeecg
JEECG是一款基于代码生成器的J2EE快速开发平台,开源界“小普元”超越传统商业企业级开发平台。引领新的开发模式(Online Coding模式(自定义表单) - > 代码生成器模式 - > 手工MERGE智能开发), 可以帮助解决Java项目90%的重复工作,让开发更多关注业务逻辑。既能快速提高开发效率,帮助公司节省人力成本,同时又不失灵活性。具备:表单配置能力(无需编码)、移动配置能力、工作流配置能力、报表配置能力(支持移动端)、插件开发能力(可插拔)
Stars: ✭ 2,027 (+950.26%)
Mutual labels:  echarts
Datavisualization
😈 by vue2.x with echarts3.3.2
Stars: ✭ 1,641 (+750.26%)
Mutual labels:  echarts
Django Echarts
A django app for Echarts integration using pyecharts library as chart builder.
Stars: ✭ 138 (-28.5%)
Mutual labels:  echarts
Vuedraggable
公司有个项目需要用到拖拽,无奈百度了一番,却发现并没有类似拖拽图表的插件,那就只有自己撸起袖子干了。
Stars: ✭ 148 (-23.32%)
Mutual labels:  echarts
Ng Deerway
鹿途后台管理系统
Stars: ✭ 108 (-44.04%)
Mutual labels:  echarts
Echarts Gl
Extension pack for Apache ECharts, providing globe visualization and 3D plots.
Stars: ✭ 2,227 (+1053.89%)
Mutual labels:  echarts
Lovinghome Real Estate Platform
⚡️基于springboot+MyBatis+FreeMarker+redis+nginx+Echarts+druid等技术的JavaWeb项目------恋家房产平台(采用B/S架构,项目包含前后台,分为前台展示系统及后台管理系统。前台系统包含首页门户、登录注册、房产推荐、房产详情、热门房产、房产及小区搜索、经纪人列表及经纪机构创建、创建房产、房产百科、地图找房、用户个人中心、房产评论、房产打分等模块。 后台管理系统包含房产信息管理、用户管理、管理员管理、小区信息管理、博客管理、评论管理、经纪人管理、系统统计与多种图表展示、数据报表导入导出等模块。系统介绍及详细功能点、技术点见项目内文档描述)
Stars: ✭ 140 (-27.46%)
Mutual labels:  echarts
Echarts Doc
Official repository of Apache ECharts documentation
Stars: ✭ 163 (-15.54%)
Mutual labels:  echarts
Hotel Management System
宾馆管理系统。可以订房、续费、退房、订单管理、员工管理以及业务数据统计可视化展示等
Stars: ✭ 126 (-34.72%)
Mutual labels:  echarts
Pyecharts
🎨 Python Echarts Plotting Library
Stars: ✭ 11,804 (+6016.06%)
Mutual labels:  echarts
Echarts For Taro
📜Echarts component library for taro
Stars: ✭ 151 (-21.76%)
Mutual labels:  echarts
Vue Expenses
A simple expense tracking application
Stars: ✭ 117 (-39.38%)
Mutual labels:  echarts
Vue Tiny Code
这里有一个仿 Chrome 调色盘,有一个拖动排版的页面,还有一些新奇的小点子。
Stars: ✭ 170 (-11.92%)
Mutual labels:  echarts
Krisk
Statistical Interactive Visualization with pandas+Jupyter integration on top of Echarts.
Stars: ✭ 111 (-42.49%)
Mutual labels:  echarts
Ve Charts
📈 ECharts 4.x for Vue.js 2.x.
Stars: ✭ 142 (-26.42%)
Mutual labels:  echarts
Jest Canvas Mock
🌗 A module used to mock canvas in Jest.
Stars: ✭ 189 (-2.07%)
Mutual labels:  echarts
React Component Echarts
React component echarts. 组件式百度图表。
Stars: ✭ 175 (-9.33%)
Mutual labels:  echarts
Vue Admin Manager
整合 vue,element,echarts,video,bootstrap(AdminLTE),admin等,搭建的后台管理系统
Stars: ✭ 153 (-20.73%)
Mutual labels:  echarts

Vue-Echarts

A simple yet flexible custom directive for using Echarts in Vue.js(v2.x.x) apps.

banner

Demo

Click Here

Usage

  1. Install via npm:

     npm install vue-echarts-directive --save
    
  2. Register Vue-Echarts as a directive in your Vue.js app:

     // this is your main.js file
    
     import Vue from 'vue';
     import V_Echarts from 'vue-echarts-directive';
    
     const App = new Vue({
         ...
         directives: {
             'echarts': V_Echarts
         }
         ...
     }
    
  3. Echarts need a dom element to draw charts. You can use a <div> for that. Make sure you give a proper width and height for this <div>.

     // this is your index.html file
     <div id="this-is-bar-chart" class="chart"></div>
    
     // this is your style.css file
     .chart {
         width: 100%;
         height: 400px;
     }
    
  4. Add v-echarts directive to this div. And assign an object of Echarts options to v-echarts. This object should be defined in your main.js file.

     // this is your index.html file
     <div id="this-is-bar-chart" class="chart" v-echarts="barChartOptions"></div>
    
     // this is your main.js file
     ...
     const App = new Vue({
         ...
         data: {
             barChartOptions: {
                 tooltip: {},
                 xAxis: {
                     data: ['A', 'B', 'C', 'D', 'E']
                 },
                 yAxis: {},
                 series: [
                     {
                         name: 'Num',
                         type: 'bar',
                         data: [5, 20, 36, 10, 10]
                     }
                 ]
             }
         }
         ...
     }
    

    At this point, you should see a beautiful bar chart in your browser.

  5. For dynamic data updating, you need to reassign a new object of Echarts options to the variable barChartOptions, EVERY TIME when there's an update in data. Don't modify the old barChartOptions object, that won't trigger reactivity in Vue, thus Echarts won't update the chart. See the code in main.js file of this repo for more details.

  6. If you need to access an Echarts instance, you can do it by:

     // this is your main.js file
    
     ...
     mounted: function () {
         const barChartElement = document.querySelector('#this-is-bar-chart');
         console.log(barChartElement.echartsInstance);
         // you can access an Echarts instance at the `mounted` stage of the parent VM,
         // by accessing the `echartsInstance` property of the element
         // that v-echarts directive is bind with
     }
     ...
    

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].