125
rated 0 times
[
127]
[
2]
/ answers: 1 / hits: 26435
/ 13 Years ago, fri, october 14, 2011, 12:00:00
I would like to have just the first letter of each weekday as the x-axis, ie M T W T F S S repeated. Currently you can set dateTimeLabelFormats
, which I've set to use %a
, which is the dateFormat for short weekday (Mon Tues Wed etc). How can I just use the first letter?
Here's my code (I'm using Lazy Highcharts in rails)
f.xAxis({type: 'datetime', tickInterval: 24*3600*1000, dateTimeLabelFormats: {
day: '%a',
week: '%a'}
})
Thanks.
More From » ruby-on-rails