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

184
Views
Cómo eliminar valores decimales en el eje x de un gráfico de barras: Highcharts

Tengo problemas para establecer valores de solo números enteros en el eje x del gráfico de barras. Alguien me puede ayudar en como solucionar esto.

Esta es mi caja de arena: https://codesandbox.io/s/react-line-chart-forked-0409lk?file=/src/LineChart.js

Lo he intentado, allowDecimal: false, min:0, float:0 . Nada funcionó.

Se agradece la ayuda

 import * as React from "react"; import Highcharts from "highcharts"; import HighchartsReact from "highcharts-react-official"; import HC_exporting from "highcharts/modules/exporting"; HC_exporting(Highcharts); function Chart(props) { const chartOptions = { chart: { type: "bar", height: 250 }, xAxis: { type: "category", visible: true, gridLineWidth: 1, floor: 0, tickInterval: 1, min: 0 }, yAxis: { min: 0, title: { text: null } }, plotOptions: { column: { dataLabels: { enabled: true, crop: false, overflow: "none" } } }, series: [{ data: props.chartData }] }; return <HighchartsReact highcharts={Highcharts} options={chartOptions} />; } export default Chart;
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Debes poner el tickInterval: 1, en el yAxis

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!