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

84
Vistas
how to give string value on Yaxis of rechart

I want to give string values on the yaxis of this chart. if I give number its working. but string not working. this is react.js does rechart don't support string value.? i didn'tt get any answers from google so I opted here

const data=[{
  "timestamp": 1645727400000,
  "value": "test1"
  },
  {
  "timestamp": 1645790232297,
  "value": "test2"
  },
  {
  "timestamp": 1645790232297,
  "value": "test3"
  },
  {
  "timestamp": 1645790232297,
  "value": "test4"
  },
  {
  "timestamp": 1645790232297,
  "value": "test5"
  }]


  return (
   
      
      <XAxis style={{fontSize:"12px"}} dataKey="timestamp" />
      
      
      <YAxis />
      <Tooltip />
      <defs>
        <linearGradient id="splitColor" x1="0" y1="0" x2="0" y2="1">
          <stop offset={off} stopColor="green" stopOpacity={1} />
          <stop offset={off} stopColor="red" stopOpacity={1} />
        </linearGradient>
      </defs>
      <Area style={{fontSize:"12px"}}
        type="monotone"
        dataKey="value"
        stroke="#000"
        fill="url(#splitColor)"
      />
    </AreaChart>
    </ResponsiveContainer>
    </Container>
    
  );
}
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