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

244
Views
Echarts cómo cambiar el color de fondo cuando la primera serie supera a la segunda

Quiero cambiar el color de fondo en echarts así:

ejemplo

La línea punteada es la serie promedio. Quiero colorear la primera serie cuando el valor supera el promedio, pero no encuentro qué usar en la documentación.

Mis opciones de opciones son así por ahora, pero de un solo color porque no sé cómo hacerlo.

 options() { return { xAxis: { type: 'time', zlevel: 2, boundaryGap: false, splitLine: { show: true, }, axisLabel: { formatter(value) { return format(new Date(value), "HH'h'mm", { locale: fr, }) }, inside: true, color: '#000', }, axisTick: { alignWithLabel: true, inside: true, }, min: startOfDay(new Date()), max: endOfDay(new Date()), interval: 3600000 * 3, // 3 hours in milliseconds }, yAxis: { show: false, type: 'value', }, series: [ { data: this.dataMeasures, type: 'line', smooth: true, areaStyle: { color: '#FDD835', }, lineStyle: { width: 0, }, }, { data: this.dataAverage, type: 'line', smooth: true, lineStyle: { color: '#000', type: 'dashed', }, }, ], grid: [ { left: 0, right: 50, bottom: 0, top: 0, containLabel: true, }, ], } }

¿Alguna idea para hacer eso?

Gracias !

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!