vue |
您所在的位置:网站首页 › vue-pivot-table › vue |
Vue Pivottable
It is a Vue port of the jQuery-based PivotTable.js
You can view the documentation at https://seungwoo321.github.io/vue-pivottable. It's also lighter by removing vue-plotly from the dependencies. Live Demolink Example Code # Clone the project git clone https://github.com/Seungwoo321/vue-pivottable.git # Go into the cloned directory cd vue-pivottable/example/ # npm install npm install # npm run serve npm run serveOpen browser to http://localhost:8080 Plotly renderer See docs import { VuePivottableUi } from 'vue-pivottable' import PlotlyRenderer from '@vue-pivottable/plotly-renderer' import 'vue-pivottable/dist/vue-pivottable.css' export default { components: { VuePivottableUi }, computed: { renderers () { return (() => ({ 'Grouped Column Chart': PlotlyRenderer['Grouped Column Chart'], 'Stacked Column Chart': PlotlyRenderer['Stacked Column Chart'], 'Grouped Bar Chart': PlotlyRenderer['Grouped Bar Chart'], 'Stacked Bar Chart': PlotlyRenderer['Stacked Bar Chart'], 'Line Chart': PlotlyRenderer['Line Chart'], 'Dot Chart': PlotlyRenderer['Dot Chart'], 'Area Chart': PlotlyRenderer['Area Chart'], 'Scatter Chart': PlotlyRenderer['Scatter Chart'], 'Multiple Pie Chart': PlotlyRenderer['Multiple Pie Chart'] }))() } } } ContributorsMIT |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |