like the image below my xaxis
Code: Select all
xAxis: {
startOnTick: true,
endOnTick: true,
breaks:this.breaks,
type: 'datetime',
dateTimeLabelFormats: {
millisecond: '%H:%M:%S.%L',
second: '%H:%M:%S',
minute: '%H:%M',
hour: '%H:00',
day: '%m-%e',
month: '%Y-%m',
week: '%Y-%m',
year:'%Y-%m',
},
tickInterval : 60*1000,
ordinal:false,
},
Code: Select all
plotOptions: {
series: {
// general options for all series
// color: '#9dc8f1',
// upColor: 'green',
// negativeColor :'red'
// pointInterval: 3600*1000,
// pointStart:this.
// cropThreshold: 50,
pointPadding: 0.25,
marker:{
enabled:false,
states: {
hover: {
enabled: false
}
}
},
Code: Select all
this.$refs.charts.chart.xAxis[0].update({tickInterval:30*60*1000})
Code: Select all
this.$refs.charts.chart.series[0].update({pointStart:ohlc[0].x})
and the tick will shift when the width of the width of the browser changed
is there any proper way to display the latest 80 point with specific tickinterval and also what should i do if i want to display the datetime range like from 9:00-16:00
Sorry for the long question, Looking forward for some answers. Much thanks!!!