Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

267
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!