Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

269
Visualizações
Import Financial chartjs

I'm trying to implement the Financial 'candlestick' chart type from the Chartjs library (I'm using version 2.7.1).

I followed the steps of the example provided in the documentation, but I always get this error "chart.min.js: 10 Uncaught Error: 'candlestick' is not a chart type."

can anyone tell me how this type of extension is implemented?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

There is only 1 version of chart.js released and this version is for chart.js v3 since you are working with chart.js v2 you are not able to use this chart type so you will need to update to chart.js v3.

Chart.js v3 has some major breaking changes which you can read in the migration guide

Edit:

While using the financial lib with bundlers you will need to import and register everything like so:

import { OhlcElement, OhlcController, CandlestickElement, CandlestickController } from 'chartjs-chart-financial'
import Chart from 'chart.js/auto' // Easy way of importing everything

Chart.register(OhlcElement, OhlcController, CandlestickElement, CandlestickController)
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda