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

361
Views
No se muestran todas las etiquetas en el eje x en los gráficos Vue Apex
xaxis: { type: this.domain_type, categories: this.domain, labels: { show: !this.isMobileOnly, style: { colors: this.range_color, }, formatter: (val) =>{ if(new Date(val).getMonth() === new Date().getMonth()) { // only those dates that includes May in their name // every label that I want is being shown except the May 2022 Label // May 2022 does get returned here but doesn't get shown as a label on x-axis return moment(val).format("MMM, YYYY"); } }, tickPlacement: 'on', axisBorder: { show: false, }, axisTicks: { show: this.range_ticks, }, tooltip: { enabled: this.range_tooltip, }, tickAmount: undefined, offsetX: 28, },

Quiero mostrar todas las etiquetas en el eje x en mi componente de gráfico de vértice. En mi método de formatter , verifico si los datos (que están en forma de fechas) incluyen el nombre del mes actual independientemente del año y, si es así, debe representarse como una etiqueta en el eje x. Todas las etiquetas se muestran en el eje x excepto la última que es May 2022 . ¿Por qué no se muestra la última etiqueta en el gráfico?

Etiquetas del eje X

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!