score:1
Accepted answer
indeed, you can use two xaxes, just like this: http://jsfiddle.net/21g0hfo1/1/
xaxis: [{
type: 'datetime',
labels: {
formatter: function () {
return highcharts.dateformat("%e", this.value);
}
}
}, {
linkedto: 0,
type: 'datetime',
ticklength: 0,
linewidth: 0,
tickinterval: 30 * 24 * 3600 * 1000,
labels: {
formatter: function () {
return highcharts.dateformat("%b %e", this.value);
}
}
}],
i just connected second xaxis to the first one and each of them has different label formatter.
score:1
i'm not sure you want multiple xaxis but rather a tick label formatter that'll change the label for the start of each month:
var lastmonth = null;
$('#container').highcharts({
xaxis: {
type: 'datetime',
labels: {
formatter: function () {
var thismonth = highcharts.dateformat("%b", this.value);
if (lastmonth != thismonth){
lastmonth = thismonth;
return highcharts.dateformat("%b %e", this.value);
} else {
return highcharts.dateformat("%e", this.value);
}
}
}
},
....
produces an axis like this (fiddle here):
Source: stackoverflow.com
Related Query
- Highcharts problem with xAxis using multiple series
- Highcharts plotLines with multiple xAxis and yAxis
- How to have multiple highcharts with different series data in vuejs without repeating code
- Multiple xAxis on Highcharts
- Highcharts data labels not showing on multiple xAxis and yAxis
- Highcharts multiple data points between xAxis
- Highcharts series bars - multiple series, same xAxis
- Highcharts - How to have multiple datapoints per xAxis label?
- Highcharts gantt - show multiple xAxis rows, one for year and one for month
- Highcharts xAxis has extra gap when multiple yAxis
- Multiple xAxis line on Highcharts
- Highcharts multiple series force xAxis start point
- Highcharts Column type visualization: multiple data points for the same Xaxis label
- Highcharts xAxis multiple colors
- highcharts pass multiple values to tooltip
- How can I force multiple y-axis in Highcharts to have a common zero
- HighCharts show datetime format on xAxis
- HighCharts is undefined because multiple Html pages in Javascript file
- Highcharts - drill down to multiple series
- Highcharts - remove times between dates on a datetime xaxis type
- Javascript Highcharts v3.0.5 - How to hide Y Axis Title when using multiple Y Axis
- Dynamic update of multiple series in highcharts
- HighCharts - show last labels in xAxis
- highcharts - chart names for multiple pie chart series in one chart
- Highcharts Custom tooltips for multiple series
- Link multiple chart controls in HighCharts
- Loading multiple Highcharts with jquery.load
- Highcharts polar spider with multiple y-axis scale
- Highcharts chart with 'datetime' xAxis - use categories on drilldown
- display content on highcharts Xaxis and Yaxis title in form of subscript and superscript
More Query from same tag
- colors for single series in highcharts
- How to make color fill area between 2 points at HighCharts
- Highcharts dataLabels shadows
- Sql query to populate 0's for missing data
- Binding Data to Asp.net HighCharts using Jquery Json
- Highcharts Tooltip - Returns unwanted empty string causing render problems
- Unpredictable behavior of y-axis labels of Highchart
- Highcharts - Add more drill downs to large tree map
- how to update renderer.text() in highcharts after a graph has been drawn?
- highcharts remove gap (column) with zero value
- How to enable Highcharts marker clipping
- How center the value 0[threshold], the line which separates positive and negative value?
- Add Y axis to highchart dynamically at bottom of the 1st chart without reducing the size of the previous chart
- Highcharts load series data problem in Angular
- Highcharts - Issue with the chart reflow function
- How to place x axis labels on top of horizontal bar chart
- stacked column charts appearing too thin
- Highcharts don't render in Internet Explorer 11
- Show the series in the navigation regardless it's hidden or shown in highcharts.js?
- Stacked highchart graph not working correctly for 0 values
- Html5 line chart with a different color when out of area range
- rCharts shows limited functionality when used with Shiny 0.8.0.99
- Action doesn't execute after ajax post
- Pop up informations on a drilldown chart using Highcharts
- Point title in bubble chart (Highcharts)
- highcharts changing dial value interactive with mouse events
- Highcharts column chart with two different scales
- Second time ajax call not working
- highcharts legend overlapping
- Pass vales from Javascript back to C# function