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

126
Views
Cargue eCharts Multiline con solo una serie seleccionada de forma predeterminada

Tengo un gráfico multilínea definido de la siguiente manera:

 { tooltip: { trigger: 'axis', }, legend: { data: ['A', 'B', 'C', 'D'], }, xAxis: { type: 'category', boundaryGap: false, data: labels, }, yAxis: { type: 'value', }, series: [ { type: 'line', symbol: 'circle', emphasis: { focus: 'series', blurScope: 'coordinateSystem', }, step: 'end', name: 'A', data: [1, 2, 3], }, ..., ], };

Al hacer clic en una leyenda, alterna la línea correspondiente. Me gustaría cargar este gráfico con una de las líneas desactivada mientras se muestran las demás.

¿Echarts soporta esa funcionalidad?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

legend: { data: ['A', 'B', 'C', 'D'], selected: { 'A': true, 'B': true, 'C': false, 'D': false } },

En su objeto de leyenda, cree el objeto 'seleccionado' con sus nombres de leyenda y configure los que desea mostrar como verdaderos y los que no desea mostrar como falsos

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