Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

206
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda