score:0
If you supply chart with enough labels then they will be used instead of numbers. Example: http://jsfiddle.net/z1yencny/2/
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec', 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug']
score:1
The axis max
property does not work the way you are thinking. It is not a cap value that will stop the values from going higher, it is the constant max value of the axis.
If you provide a max value, and you don't provide enough categories to reach the max, the chart fills in with the only thing it knows to do.
As mentioned in comments, you have a few options.
The most common and useful is to simply not specify a max; let your categories and data determine the max automatically.
score:1
Another solution is to simply play around with formatter: http://jsfiddle.net/z1yencny/4/
labels: {
formatter: function(){
var str = this.value;
if(!isNaN(str)){
str = '';
}
return str;
}
}
Of course, above solution won't work with numbers in categories. However, simply change condition to compare value with value under the category index.
Source: stackoverflow.com
Related Query
- Highcharts x axis shows numbers after max limit
- Limit ticks on X axis in highcharts with R
- Highcharts X axis categories name gets only shows 1 character
- Need to precisely set Highcharts axis min/max after chart creation
- Get max value and label in series after zoom in JS HighCharts
- Set max y axis point 10% greater than current max - Highcharts
- My Highcharts graph with multiple axis ignores the max value I set for the first yaxis
- Highcharts reflow() after moving Y Axis to the opposite side
- highcharts not displaying line when last point is before current x Axis minimum and next point is after current X Axis maximum
- Highcharts spiderweb chart resizes axis after calling series.setData
- Highcharts - Y axis always visible (even after horizontal scrolling)
- HighCharts y-Axis set min max with input field on rendered graph axis
- Highcharts export customize axis label and fontsize: No effect after migration
- Highcharts xrange chart is not respecting datetime xAxis min and max values - shows space on both sides
- Highcharts chart axis exceeding set min and max values
- min and max axis value not respected in HighCharts chart with a logarithmic axis
- Getting numbers on Y-axis to show up as percentages with code from a Highcharts code generator tool?
- How to make the selection of individual series dynamic in highcharts even after setting max and min?
- Highcharts axis labels cluttered but after a refresh, it'll be OK
- Updating the axis of a highcharts chart object using jquery after inital render (django)
- Highcharts custom indicator does not affect y axis range after zoom
- Get max of x axis in highcharts using react
- Highcharts calculated max value not working with 2+ Y axis
- Highcharts axis does not show properly values when numbers are so small
- Highcharts graph shows 265 series and no data after update to categories and series
- Hide axis and gridlines Highcharts
- Highcharts: Set y Axis Max and Min dynamically, and not at creation
- Python: Read data from Highcharts after setExtreme
- Change HighCharts axis title
- how to set the interval of points on Y - Axis highcharts
More Query from same tag
- How to set HighCharts dataGroup to a range/timeframe?
- Highcharts Maps - Displaying data on Highmaps
- Highcharts Is there a way to resize plotbands after zoom?
- Highchart series style on button click
- ASP NET MVC Highcharts null pointer when adding series
- if I add an update in drill up events it causes the labels to disappear on the highchart
- How to make highcharts stacked bar chart start from a specific date
- Get Highcharts width
- While loop not working in the series data highcharts - php
- Spiderweb Highcharts with multiple scales on multiple axes
- Loading Highcharts data via ajax removes Datalabels
- Colorize yAxis labels and chart lines in HighchartTable
- Highcharts and phantomjs error. Can't find variable Highcharts
- Framework for plotting latitude longitude in a map based on country, state and district depending on the zoom level
- Why would the label of the vertical axis only show after the button is clicked?
- How to render Xaxes with time in hours, days, ... from 0 to infinity
- Plot Y axis data based on x axis values from a csv file : Highcharts
- Problems with updating c# variables in javascript?
- Make Highchart and Highstock Have a Uniform Time X-Axis for Disparate Data Points
- Highcharts img in html title; onerror doesn't fire even with Highcharts Security AST set
- HighCharts: Is this.percentage accessible in the tooltip formatter?
- How to have legends in Pie charts as data labels in HighCharts
- How I can rotate a polar chart?
- Ajax Json Post Limit on PHP7 and IIS 7
- Highcharts data csv load
- HighCharts BoxPlot With Multiple Series Having Single Data
- Function to draw a polygon from a scatterplot with nested array data
- Highcharts - Customizing legend for treemap
- JS Highchart Import CSV data
- how to change color of line chart in highchart based on a categorical column in r?