vue-d3-charts is a charts library build with reusability in mind. It has evolved from a personal bl.ocks collection to a modular charts system, to allow quick implementation and customatization.
vue-d3-charts is built on top of d3.js and vue.js and is an open source project started by Saigesp under GNU General Public License v3.0. See contribution guide if you want to contribute.
<template><divclass="my-app"><!-- chart --><D3BarChart:config="chart_config":datum="chart_data":title="chart_title":source="chart_source"></D3BarChart><!-- value control --><selectv-model="config.values"><option:value="[d]"v-for="d in ['hours', 'production']">{{d}}</option></select><!-- current control --><selectv-model="config.currentKey"><option:value="d.year"v-for="d in data">{{d.year}}</option></select><!-- title control --><inputtype="text"v-model="chart_title"><!-- source control --><inputtype="text"v-model="chart_source"></div></template>