All Projects → haroutboujakjian → Vuesalize

haroutboujakjian / Vuesalize

Licence: MIT license
Component library dedicated to simplifying interactive visualization building in Vue.js.

Programming Languages

Vue
7211 projects
javascript
184084 projects - #8 most used programming language
stylus
462 projects

Projects that are alternatives of or similar to Vuesalize

D3 Es6
D3 力导向图 增删改动态更新数据 点击生成节点 拖拽生成连线...
Stars: ✭ 155 (+545.83%)
Mutual labels:  d3, d3js
d3-geomap
A library for creating geographical maps based on D3.js
Stars: ✭ 124 (+416.67%)
Mutual labels:  d3, d3js
D3 Geo Voronoi
Voronoi / Delaunay tessellations on the sphere
Stars: ✭ 155 (+545.83%)
Mutual labels:  d3, d3js
Eon Chart
Realtime animated graphs with PubNub and C3.
Stars: ✭ 121 (+404.17%)
Mutual labels:  d3, d3js
Gtr Cof
Interactive music theory dashboard for guitarists. http://guitardashboard.com/
Stars: ✭ 244 (+916.67%)
Mutual labels:  d3, d3js
Rid3
Reagent Interface to D3
Stars: ✭ 135 (+462.5%)
Mutual labels:  d3, d3js
V Chart Plugin
Easily bind a chart to the data stored in your Vue.js components.
Stars: ✭ 188 (+683.33%)
Mutual labels:  d3, d3js
Dex
Dex : The Data Explorer -- A data visualization tool written in Java/Groovy/JavaFX capable of powerful ETL and publishing web visualizations.
Stars: ✭ 1,238 (+5058.33%)
Mutual labels:  d3, d3js
Plotly Graphing Library For Matlab
Plotly Graphing Library for MATLAB®
Stars: ✭ 234 (+875%)
Mutual labels:  d3, d3js
Ssthouse Blog
个人博客仓库:前端 / 数据可视化 / D3.js
Stars: ✭ 231 (+862.5%)
Mutual labels:  d3, d3js
Just Dashboard
📊 📋 Dashboards using YAML or JSON files
Stars: ✭ 1,511 (+6195.83%)
Mutual labels:  d3, d3js
mastering-d3
Code examples for the book Mastering D3.js, published in August 2014 by Packt Publishing.
Stars: ✭ 56 (+133.33%)
Mutual labels:  d3, d3js
D3js doc
D3js中文文档 D3中文 📊 📈 🎉
Stars: ✭ 1,599 (+6562.5%)
Mutual labels:  d3, d3js
Scatterd3
R scatter plot htmlwidget based on D3.js
Stars: ✭ 135 (+462.5%)
Mutual labels:  d3, d3js
D3 Audio Spectrum
Spectrum analysis demo using D3 and HTML5 audio
Stars: ✭ 101 (+320.83%)
Mutual labels:  d3, d3js
D3tutorial
📊📈 A D3 v6 tutorial - interactive bar chart and multiple coordinated views (MCV)
Stars: ✭ 163 (+579.17%)
Mutual labels:  d3, d3js
Whom I Know
Looks for common users of vk.com [DEPRECATED]
Stars: ✭ 69 (+187.5%)
Mutual labels:  d3, d3js
D3blackbox
A simple React wrapper for any D3 code you want
Stars: ✭ 80 (+233.33%)
Mutual labels:  d3, d3js
Reaviz
📊 Data visualization library for React based on D3
Stars: ✭ 215 (+795.83%)
Mutual labels:  d3, d3js
ddplot
Create D3 based SVG graphics easily from R
Stars: ✭ 43 (+79.17%)
Mutual labels:  d3, d3js

Vuesalize

Visit our interactive docs page!

Weekly downloads

Bundle Size

What's the point?

Building interactive visualizations on the web can be hard, and it can be even harder when you would like to leverage existing visualization libraries inside of a Vue.js project. The goal of Vuesalize is to simplify this process by providing a set of chart components (and a couple others) that are commonly used in building interactive visualizations on the web. The charts are built using a combination of Vue.js and D3.js. The main rationale for this approach is to fully embrace the Vue paradigm and move the SVG definitions to the template (HTML), which allows Vue to handle creating and removing elements on the page. This is analogous to the "enter/update/exit" strategy used in D3 but specifically taking advantage of the virtual DOM. By building charts where the SVG is defined in Vue's template, we can not only send down props to update the chart, but can also emit events on interactions (e.g. click, mousover, etc.) and offer scoped slots for custom tooltips!

Installation

Any Vue.js based project will be able to take advantage of this library. The library is currently available on npm, and it is possible to use it with Vue CLI (recommended) or directly with the CDN version in a <script> tag.

Vue CLI

The steps to use is it in a project created using the Vue CLI are as follows:

  1. Install from npm using npm install vuesalize
  2. In main.js, add the components that are going to be used in the project. Here is an example below for a project using the BaseLegend and LoaderSpinning components
import LoaderSpinning from 'vuesalize'
import BaseLegend from 'vuesalize'
import 'vuesalize/dist/vuesalize.css'

Vue.use(LoaderSpinning, BaseLegend)
  1. Start using the components in templates. For example, if the BaseLegend and LoaderSpinning components were going to be used in a default App.vue file, this is how it would be setup:
<template>
   <div id="app">
      <BaseLegend :legend-data="sampleLegendData"></BaseLegend>
      <LoaderSpinning></LoaderSpinning>
   </div>
</template>

<script>
   export default {
      name: 'App',
      data() {
         return {
            sampleLegendData: [
               {name: 'finance', color: 'red'},
               {name: 'accounting', color: 'blue'}
            ],
         }
      }
   }
</script>

<style>
   #app {
      font-family: Avenir, Helvetica, Arial, sans-serif;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      text-align: center;
      color: #2c3e50;
      margin-top: 60px;
   }
</style>

CDN

It is quite simple to get started with the CDN. The vuesalize javascript and css files need to be linked (lines 5 and 7), and the components that will be used must be declared using Vue.use() (line 16). It is also necessary to link the official Vue package (line 6) before vuesalize since it relies on base Vue.

<html lang="en">
<head>
   <meta charset="utf-8">
   <title>Browser test</title>
   <link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/vuesalize.css">
   <script src="[email protected]_dist_vue.js"></script>
   <script src="https://unpkg.com/[email protected]/dist/vuesalize.umd.min.js"></script>
</head>
<body>
<div id="app">
   <loader-spinning></loader-spinning>
   <base-legend :legend-data="testlegend"></base-legend>
</div>

<script>
   Vue.use('loader-spinning', 'base-legend')

   new Vue({
      el: '#app',
      data() {
         return {
            sampleLegendData: [
               {name: 'finance', color: 'red'},
               {name: 'accounting', color: 'blue'}
            ],
         }
      }
   })
</script>
</body>
</html>

Copyright 2021 MITRE Corporation. Approved for Public Release - Distribution Unlimited. Case #21-0751

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].