Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple charts #15

Open
alexbuzzz opened this issue Oct 9, 2022 · 2 comments
Open

Multiple charts #15

alexbuzzz opened this issue Oct 9, 2022 · 2 comments

Comments

@alexbuzzz
Copy link

alexbuzzz commented Oct 9, 2022

Hi! Is it possible to create multiple charts on screen? I'm trying this code but only the first chart appears.

This is the view code:

<template>
  <div class="watchlist-container">
    <Chart ticker="BINANCE:ADAUSDTPERP" />
    <Chart ticker="BINANCE:BTCUSDTPERP" />
  </div>
</template>

This is the component:

<template>
  <Chart
    :options="{
      autosize: false,
      height: '600',
      width: '600',
      symbol: this.ticker,
      interval: '5',
      timezone: 'Etc/UTC',
      theme: 'dark',
      style: '1',
      locale: 'en',
      toolbar_bg: '#f1f3f6',
      enable_publishing: false,
      hide_legend: true,
      allow_symbol_change: true,
      save_image: false
    }"
  />
</template>

<script>
import { Chart } from 'vue-tradingview-widgets'

export default {
  name: 'App',
  props: {
    ticker: String
  },
  components: {
    Chart
  }
}
</script>
@maksalexsavchenko
Copy link

maksalexsavchenko commented Oct 25, 2022

Hello, i had the same problem and i have done with it, you can check on my git (without this lib)

@davidrevoledo
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

3 participants