score:2
You can find the min
and max
of the axis through the formatter like this:
xAxis: {
type: 'datetime',
labels: {
formatter: function() {
console.log(this.axis.min);
console.log(this.axis.max);
return this.value; // Default. Return something relevant instead
},
}
}
See the API (or console.log
) for all values of this
in the formatter. The axis
might here be the y-axis as well. You can always access the x-axis through this.chart.xAxis[0]
if necessary.
Note however that unless you want to be very specific with your formatting you might want to consider customizing dateTimeLabelFormats
(API).
Source: stackoverflow.com
Related Query
- Highstock xAxis label formatting
- Strange character in the Highstock source code
- Highstock xAxis Label rotation
- Highstock chart - issue with xaxis label
- Set a custom rangeSelector and disable xAxis label on chart and on Navigator with Highstock
- How to change axis label size when exporting in Highcharts / Highstock
- Highcharts missing first date label on xAxis
- Highcharts - xAxis label for each point
- Adding vertical line on xAxis in HighStock
- How to change Highcharts xAxis label color individually?
- HighCharts Time-based Quarterly Data - xAxis Label Issue
- Show only first and last xAxis label in Highcharts
- Difference between highcharts and highstock during real time trace and xAxis with max value
- highchart position label on xAxis value
- Last label on xaxis disappears when resize
- how to add dynamic xaxis category label name in new point highchart
- HighCharts + xAxis label formatter
- Highchart xAxis label click jquery error
- In Highcharts drilldown charts, Custom Formatting of X-Axis label displays the label with underline even in the last level
- Highstock xAxis scaling
- Highstock Highcharts date time data on Xaxis
- Dynamically change datetime format of xAxis Tick Label in highchart
- passing formatting JavaScript code to HighCharts with JSON
- Highcharts - date on xAxis label difference on tooltip
- Highcharts custom xAxis label
- How to change Highcharts xAxis formatting from yearly to monthly?
- Highcharts: Add Dynamic Data to xAxis Label
- How to show xAxis label in tooltip in a Highcharts area chart?
- Not able to view the last label in xaxis
- High Charts Column Chart - Y axis Label Formatting
More Query from same tag
- How to import or load Dumbbell chart in react app
- "this.point.config" is not working anymore in highcharts tooltip
- Decimal values for yAxis categories in Highcharts
- HighCharts how to remove display on loading of piechart
- Can I enable scrollbar for datetime x axis in Highcharts columnrange chart
- Simultaneous actions on action event on one graph
- How can I reload chart following data update?
- Creating 100% stacked area graph for a website
- How do I add text to a gauge's ticks?
- How to format Highcharts to get specific json data?
- How to fade other yAxises in highchart when hover on marker?
- R Shiny - Highcharts: Tooltip delay before display
- Highstocks rounding values, and range not accurate for more then two hours of viewing
- How to add box on "plotLines text" of Highcharts
- TypeError: $(...).highcharts is not a function
- Highcharts: Only animate pie size with donut graph / prevent innersize animation
- Highchart: How to graph from Radio Button
- How do I display csv data in Highcharts?
- Live multiple series with highchart
- Prevent JSON.parse(data) from cutting off zero digit for String floats
- How to show correctly ticks to time data in a Pie chart label using highcharts?
- Why can't I click a point in an area chart if it is covered by another series?
- How to change DateTime format on Highcharts?
- How to debug a non-working AJAX-based HighChart?
- DataLabels hide themselves even after allowOverlap is set to true. How to fix it?
- jquery flip! component: highchart is no longer interactive?
- ColorAxis in percentage bar. Approach. Highcharts
- HighChart Sparkline Chart with dynamic data for the table
- I am getting same highchart in pdf using jspdf when I am downloading the pdf with dynamic ids on click
- XAxis tick interval doesn't change automatically in highcharts gantt