score:2
use formatter, where you can determine if label is last. see: http://jsfiddle.net/3bqne/664/
var chart = new highcharts.chart({
chart: {
renderto: 'container'
},
xaxis: {
type:'datetime',
tickinterval: 24 * 3600 * 1000,
labels: {
overflow: 'justify',
formatter: function (){
if(this.islast){
return 'today ' + highcharts.dateformat('%h:%m', (new date().gettime()));
} else {
return highcharts.dateformat('%e of %b', this.value);
}
}
}
},
series: [{
pointstart: date.utc(2013, 10, 3),
pointinterval: 24 * 3600 * 1000,
data: [29.9, 71.5, 106.4]
}]
});
Source: stackoverflow.com
Related Query
- Highcharts.js How to put current time label in the end of xAxis
- How can I put xAxis in highcharts starting in the horizontal line when all values are in 0?
- Highcharts - How to hide the last category tick label on xAxis with scrollbar
- How can i hide all the Series in highcharts at a time
- How to change Highcharts xAxis label color individually?
- Highcharts: How to provide a custom stack label in highcharts bar graph from within the stackLabel formatter?
- Highcharts : How to fix labels to the top when xAxis rotation is 90°?
- Highcharts Bubble Chart - How to move an individual point's data label (dataLabel) to the front/top
- How to start and end a dynamically generetad datetime highchart's xAxis on the first and last tick
- How do I put Icons in the y Axis for a Dynamic Highcharts chart?
- how to display 2 same highcharts without duplicate the code
- Hide or Disable Legend or Label in the end Highcharts line
- How to show xAxis label in tooltip in a Highcharts area chart?
- HighCharts: How to put the xAxis category text inside the chart
- How to put highcharts symbols on xAxis formatter?
- Highcharts - XAxis Label with LineFeed - how to make smaller gap?
- How to tell Highcharts to set date on the x axis, and use a range of time (like 1 day)
- How to set Highcharts xAxis position on the yAxis zero value (negative/positive chart)?
- How to get current date and time on highcharts
- How to make hover effect for two bar in highcharts at the same time is there any way by using css or any inbuilt method to achieve this?
- In highcharts how can I provide data with values x, y, title so that I can put the title in the tooltip?
- Use the "step" label option in Highcharts, starting at the end of the xaxis
- How to add labels to the end of a highcharts line graph
- How to format the xAxis of Highcharts
- Highcharts xAxis doesn't get the right time format
- HighCharts - How can i use the period separator in xAxis
- Highcharts Highstock How do I change the label on top of tooltip for OHLC series data?
- The last label on xaxis disappears partly in Highcharts
- How to set the fixed xAxis value in Highcharts
- Highcharts - How to get the particular chart id on click of custom label in export options
More Query from same tag
- Highcharts chart not loading after AJAX call to insert partial containing chart
- Prevent JSON.parse(data) from cutting off zero digit for String floats
- highcharts - assign custom text using yaxis.stacklables.formatter to each bar
- High Charts show series maximums below chart
- MACD + High chart Graph plotting issue
- Highcharts, datetime, xAxis label. How to show all dates on x axis, not only even dates?
- How an I pass an array that is obtained within ngOnInti() to a graph that is outside of that function?
- How to plot stacked bar chart in highcharts with dynamic data?
- HighCharts: 3D Column Chart change borderColor on select
- HighChart irrgular Mapping
- highcharts v3.0Beta bubblechart not rendering. Possible bug?
- Highcharts as an Out-of-the-Office calendar
- HighCharts: How to aligned horizontal yAxis title
- highchart 3d column - show "beta axis title" and "beta axis label"
- Highchart chinese colon display incorrect when exporting
- React-highcharts: how do I stop the chart from re-animating when a certain prop changes?
- Displaying X-Axis as DD/MM/YY HH:MM:SS.mm on Highchart
- Highcharts: Context Menu Button, onclick function
- How to increase the height of the bands?
- Highchart Stock gui does not work in Angular 8
- Formatting the float numbers in Highcharts
- 3d chart for Highcharts with legends
- Highcharts contextButton color
- HighChart Bubble and Date / Tooltip
- How do I customize xAxis labels at start and at end?
- how to change color of line chart in highchart based on a categorical column in r?
- Highcharts multiple series json from php
- How do you get the mouse hovered label value with the highcharts custom event plugin?
- Why I cant put the highcharts.chart in render?
- Sample onLoad handler?