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

201
Views
Por qué yAxis axisLabel se alinea a la izquierda es la etiqueta de posición resultante dentro de la barra en Apache ECharts

El resultado de la expectativa es como esta publicación: ¿Cómo configurar las etiquetas alineadas a la izquierda en la barra horizontal usando chart.js? pero está implementado en Apache ECharts

¿Alguna idea?

 var chartDom = document.getElementById('main'); var myChart = echarts.init(chartDom); var options = { color: ["#3398DB"], tooltip: { trigger: "axis", axisPointer: { type: "shadow" } }, grid: {}, xAxis: [{ type: "value", }], yAxis: [{ type: "category", axisLabel: { align: 'left', margin: 40 }, data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"] }], series: [{ name: "直接访问", type: "bar", barWidth: "60%", data: [10, 52, 200, 334, 390, 330, 220] }] }; myChart.setOption(options);
 #main { height: 400px; }
 <div id="main"></div> <p>Test</p> <script src="https://cdn.jsdelivr.net/npm/echarts@5.2.1/dist/echarts.min.js"></script>

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

0

Puede establecer el margin para axisLabel, para que las etiquetas sean visibles. Actualizaste tu fragmento de código

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!