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

76
Visualizações
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 à 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