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

209
Visualizações
Problem in creating candlestick with plotly in react js

Hello I'm trying to create plots like this image

enter image description here

in react js. So I have decided to use React Plotly

It provides me to create subplots but I've problems by creating these boxes I used this code for the first fig with fake data

 trace1 = {
            x: ['2017-01-04', '2017-01-05', '2017-01-06'], 
  
            close: [116.019997, 116.610001, 117.910004], 
            
            decreasing: {line: {color: '#7F7F7F'}}, 
            
            high: [116.510002, 116.860001, 118.160004], 
            
            increasing: {line: {color: '#17BECF'}}, 
            
            line: {color: 'rgba(31,119,180,1)'}, 
            
            low: [115.75, 115.809998, 116.470001, ], 
            
            open: [115.849998, 115.919998, 116.779999], 
            type: 'candlestick', 
            xaxis: 'x', 
            yaxis: 'y'
          };

and I get this result

no candlestick is shown

please tell me where is the bug

I've tried type: 'box' too and I got the same result

I imported the library

import Plotly from "plotly.js-basic-dist";
import createPlotlyComponent from "react-plotly.js/factory";
const Plot = createPlotlyComponent(Plotly);
.
.

and in the rendering section

<Plot
   data={data}
   layout={layout}
 />
about 4 years ago · Juan Pablo Isaza
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