Is it possible to center the labels and data points between the ticks in a datetime xAxis for Highcharts? -


i have fiddle http://jsfiddle.net/adaykin/qkw77/ uses datetime type xaxis. can see data points in line , labels on tick marks , not between them. how can change both data points , labels centered within tick mark?

var chart = new highcharts.chart({     chart: {         renderto: 'container'     },     xaxis: {                 type: 'datetime',         labels: {             format: "{value:%y-%m-%d}",          },         tickmarkplacement: 'between'     },     yaxis: {      },       series: [     {         data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6],         pointstart: date.utc(2014, 1, 3),         pointinterval: 24 * 3600 * 1000 * 7 // 1 day     },     {         data: [50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0],         pointstart: date.utc(2014, 1, 3),         pointinterval: 24 * 3600 * 1000 * 7     }     ] }); 

the data points , labels centered between tick marks when xaxis not using datetime type.

you can use startofweek

xaxis: {            startofweek: 5,     type: 'datetime',     labels: {         format: "{value:%y-%m-%d}",      }, }, 

http://jsfiddle.net/qkw77/2/


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -