• Stars
    star
    254
  • Rank 160,264 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐Ÿ“ˆ vue wrapper for plotly.js

vue-plotly

GitHub open issues CircleCI codecov Npm version MIT License

Thin vue wrapper for plotly.js

It provides:
  • all plotly.js methods and events
  • data reactivity
  • Redraw on resizing

example

Live example

https://david-desmaisons.github.io/vue-plotly/

Usage

<Plotly :data="data" :layout="layout" :display-mode-bar="false"></Plotly>
import { Plotly } from 'vue-plotly'

export default {
  components: {
    Plotly
  },
  data() {
    return {
      data:[{
        x: [1,2,3,4],
        y: [10,15,13,17],
        type:"scatter"
      }],
      layout:{
        title: "My graph"
      }
    }
  }
}

API

Props

  • data Array (optional)

    Data to be displayed

  • layout Object (optional)

    Graphic layout

  • id String (optional)

    Id of the root HTML element of the component.

  • Others:

    Plotly component implements the transparent wrapper pattern:
    All other props will be passed as plotly graphic option.

Installation

npm install vue-plotly

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Run your tests

npm run test

Lints and fixes files

npm run lint

Run your unit tests

npm run test:unit

Customize configuration

See Configuration Reference.

More Repositories

1

Vue.D3.tree

Vue component to display tree based on D3.js layout.
Vue
868
star
2

draggable-example

vue.draggable example
Vue
510
star
3

Vue.Isotope

๐Ÿ“ฑ Vue component for isotope filter & sort magical layouts
JavaScript
345
star
4

Vue.resize

Vue directive to detect resize events with deboucing and throttling capacity.
JavaScript
327
star
5

RateLimiter

C# rate limiting utility
C#
278
star
6

Vue.ImagesLoaded

Vue.js 2.0 directive to detect images loading
JavaScript
144
star
7

vue-cli-plugin-component

๐Ÿ› ๏ธ vue-cli 3 plugin to create component
JavaScript
88
star
8

Vue.D3.sunburst

Vue sunburst component based on D3.js
Vue
62
star
9

ComponentFixture

๐Ÿ› ๏ธInteractive sandox playground for vue components
Vue
51
star
10

Vue-Semantic-Modal

Vue modal component for Semantic-Ui no jquery
JavaScript
45
star
11

DiscogsClient

Discogs API C# Client
C#
41
star
12

CodeDependencyScanner

.Net assembly code depency inspector
JavaScript
37
star
13

ComposableAsync

Create, compose and inject asynchronous behaviors in .Net Framework and .Net Core.
C#
31
star
14

MVVM-for-awesomium

MVVM binding framework between C# ViewModel and awesomium HTLM-javascript view
C#
16
star
15

RestSharpHelper

Small library helper for RestSharp inclusing rate limit, OAuth, helper for async download among others
C#
7
star
16

Music.Cover.Finder

C# application that display music cover art
C#
7
star
17

MusicCollection

Music Library and Player
C#
6
star
18

Retlang

C#
5
star
19

vue-ajax-handler

Ultra minimal generic vue component to deal with ajax loading
JavaScript
2
star
20

datascience_detroit_bligth

Predicting Detroit Blight using Machine Learning
Jupyter Notebook
2
star
21

David-Desmaisons

1
star
22

tape-tests

Minimal repository to show problem with esm modules and windows
JavaScript
1
star
23

ScreenSaver

JavaScript
1
star
24

MovieExplorer

C#
1
star
25

ProxyDebugLogger

Create proxy that logs method call. For debug purpose.
JavaScript
1
star
26

MoreCollection

C# collection framework
C#
1
star