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

137
Views
react-chartjs-2 traza el eje x en un ángulo de 45°

Estoy intentando generar un sesgo con react-chartjs-2 usando el componente Scatter

un sesgo es un perfil meteorológico vertical https://www.weather.gov/jetstream/skewt

 import { Scatter } from 'react-chartjs-2';

hachas

  • isobaras : líneas de igual presión trazadas logarithmic a lo largo del eje y
  • isotermas : líneas de igual temperatura trazadas a 45° con valores de temperatura que aumentan desde la esquina superior izquierda hasta la esquina inferior derecha del gráfico.

Estoy atascado en las isotherms , ¿cómo puedo cambiar el ángulo de mi x axis ?

El component obtiene su configuración de un hook personalizado

 export default function Skewt(){ const { data, options, plugins, onEvent } = useChart(); return( <Scatter // data={data} options={options} plugins={plugins} getDatasetAtEvent={onEvent} getElementAtEvent={onEvent} getElementsAtEvent={onEvent} /> ) }

...el gancho

 const useChart = () => { const data = useMemo(()=>({...}),[]) const options = useMemo( () => ({ scales: { x: { id: 'isoTherm', type: 'linear', grid: {...} }, y: { id: 'isoBar', type: 'logarithmic', grid:{...}, }, }, }), [] ); ... return { data, options, plugins, onEvent }; };

react-chartjs-2 Dispersión

sesgado-t

about 4 years ago · Juan Pablo Isaza
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!