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

107
Views
Echarts Apache - div arrastrable

Necesito implementar la función de arrastre para los echarts.

CÓDIGO HTML:

 <div class="maindash"> <div class="cardchart" id="barchart" ></div> <div class="cardchart" id="piechart" ></div> <div class="cardchart" id="areachart" ></div> <div class="cardchart" id="baranimchart" ></div> </div> <style> .maindash { display: flex; flex-wrap: wrap; justify-content: space-evenly; flex-grow: 0; margin: 10px; gap: 5px; overflow: auto; height: 100%; } .cardchart { box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); margin:13px; width: 400px; height: 300px; background-color: #fff; } </style>

CÓDIGO JS:

 function dragndrop() { $( ".cardchart" ).sortable({ revert: true }); }

Por alguna razón, solo puedo arrastrar el gráfico y no el div. He seleccionado (.cardchart) pero continúa arrastrando solo el gráfico. Yo quiero arrastrar el div completo.

ingrese la descripción de la imagen aquí

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!