1.0.4 • Published 5 years ago

vue-trading-view2 v1.0.4

Weekly downloads
42
License
-
Repository
-
Last release
5 years ago

vue-trading-view2

Copy of vue-trading-view. Fixed invalid prop type.

VueJS component for rendering the TradingView Advanced Real-Time Chart Widget.

Install

yarn add vue-trading-view or npm install --save vue-trading-view

Usage

Basic example

import VueTradingView from 'vue-trading-view';

...
<template>
  <div class="hello">
    <VueTradingView />
  </div>
</template>

<script>
import VueTradingView from 'vue-trading-view';

export default {
  name: 'HelloWorld',
  props: {
    msg: String
  },
  components: {
    VueTradingView,
  }
}
</script>

All given props are passed on to the widget config. See this page for the TradingView Advanced Real-Time Chart API.

Advanced example

<template>
  <div class="hello">
    <VueTradingView :symbol="NASDAQ:AAPL" :options="{
      theme: 'dark',
    }" />
  </div>
</template>

<script>
import VueTradingView from 'vue-trading-view';

export default {
  name: 'HelloWorld',
  props: {
    msg: String
  },
  components: {
    VueTradingView,
  }
}
</script>
1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago