score:2
Like @Strelok said, the code is in the <script>
tag if you right click the page and view source.
xAxis: [
{
type: 'datetime',
tickInterval: 6 * 3600 * 1000,
tickPosition: 'inside',
tickLength: 30,
gridLineWidth: 1,
gridLineColor: '#F0F0F0',
startOnTick: false,
endOnTick: false,
minPadding: 0,
maxPadding: 0,
offset: 30,
showLastLabel: true,
labels: {
formatter: function(){
return Highcharts.dateFormat('%H', this.value);
}
}
},
{
linkedTo: 0,
tickInterval: 24 * 3600 * 1000,
labels: {
formatter: function(){
return Highcharts.dateFormat(
'<span style="font-size: 12px; font-weight: bold">%a</span>, %b %e', this.value);
},
align: 'left',
x: 3
},
opposite: true,
tickLength: 20,
gridLineWidth: 1
}],
Top part is for bottom labels, bottom part is for top labels from the looks of it.
edit:
Give this a shot.
chart.getXAxis(1)
.setLinkedTo(0)
.setGridLineWidth(1)
.setOpposite(true)
.setTickInterval(24 * 3600 * 1000) // 24 hour tick intervals
.setCategories("Sat Nov13", "Sat Nov14", "Sat Nov15", "Sat Nov16");
chart.getXAxis(0)
.setGridLineWidth(1)
.setCategories("18","00","06","12","18","00","06","12","18","00","06","12","18","00","06","12","18");
.setTickInterval(6 * 3600 * 1000) // 6 hour tick intervals
.setTickPosition("inside")
.setStartOnTick(false)
.setEndOnTick(false)
.setOffset(30)
.setShowLastLabel(true)
score:0
in case you use unix epoch timestamps for your dates and if you need it the timestamp to be displayed in date format - just set the type of the axis to datetime
for example:
xAxis: {
type: 'datetime'
}
});
check this fiddle: http://jsfiddle.net/HnwbQ/1/
reference: http://www.highcharts.com/ref/#xAxis--type
Source: stackoverflow.com
Related Query
- GWT:creat a simple meteogram in GWTHighCharts
- Strange character in the Highstock source code
- How to make this code more simple or shorten?
- Highcharts percentage of total for simple bar chart
- Optimize JavaScript DrillDown code
- Replacing highcharts.each in my code as it is being deprecated
- Using PhantomJS to create HighCharts grahps server side for use in PDF creation (PHP) - results in exit code 11 from PHPs exec();
- Code works on fiddle but not when I do /show
- Highcharts - Global configuration with common code and unique data & Headings
- Simple bar chart in jQuery HighCharts and MVC 2 application?
- JavaScript code inside TypeScript file .ts not working
- HighCharts Stock Chart error code 18
- Getting the complete XML source out of an XML DOM object
- Highmaps: what is the code for a county?
- highcharts change rendered image source on click
- c# WPF Webbrowser with Highchart, Javascript from external source not working "An error has occurred in the script on this page"
- How do i add mouse wheel code in Angular2 highcharts in typescript
- how to display 2 same highcharts without duplicate the code
- High traffic solution for simple data graph website
- Use of DotNet HighCharts dll to make charts in code behind
- How to edit tooltip in Highcharts C# code
- what means ${demo.css} in example files of highcharts ? That piece of code seems to be literal
- Change color code on colum, depending on data value (highchartJS)
- passing json values to highcharts from .net code behind
- how to use highcharts tooltip formatter in python code
- Prevent source to load twice
- passing formatting JavaScript code to HighCharts with JSON
- Embed javascript code in a django template
- how to create simple schedule chart with highchart
- Drawing a simple graph using projected lines
More Query from same tag
- How to show 0 value infomation in treemap highcharts
- Call an angular component method when we click on highchart series
- How do I change a specific bar color in Highcharts Bar Chart?
- Highcharts label grouping
- Highcharts legend alignments
- Add data dynamicly with highcharts using reactjs
- stacked bar chart with separate label
- Responsive Highcharts not sizing correctly until window resize
- Building dynamic number of arrays to display in Highchart
- Highcharts - Keep Zero Centered on Y-Axis with Negative Values
- Change Highmaps map colour
- Highchart change the chart type in drilldown
- Highchart chart synchronisation showing console error while using highstock.js
- Highcharts update breaks previous layout
- Old highchart data in react component when going back and forward
- live chart for heartbeats
- Highcharts- show all days even if there are no values
- Update HighCharts chart when AJAX Updates my data on my page
- How to reset items in legend area in Highcharts?
- Basic Javascript: How can I link my HTML and Javascript on a Highcharts example?
- How can I add a Bar Chart to my Django based Database?
- HighCharts: Drilldown to a Stacked Column
- jQuery/Javascript Charting library
- Unable to set a format for values on a heatmap
- HighStocks Series Data format
- Highcarts Space between number If the value is exceed 1K
- Highcharts 's width is not correctly rendered at a hidden div
- Show only last 3 months data. other user can see on scrolling highcharts?
- Highcharts with shared and split tooptip, Is there any possible to style the hover xAxis labels?
- Highchart data each row on gridview to display different data on button click open modal