javascript - How to set PointIntervals per month in HighChart -


i used highcharts plot number of users created on monthly basis. managed show month in x-axis , set pointinterval below

pointinterval :24 * 3600 * 1000 * 31

but given blindly , won't plot points correctly. need plot points 1st of every month. above interval helps bind points on monthly basis not @ 1st day of month. example describes issue. tooltip gives clear idea. here code

series: [{         type: 'area',         name: 'cdp created',         pointinterval: 24 * 3600 * 1000 * 31,         pointstart: date.utc(2005, 0, 01),                   datagrouping: {             enabled: false         },         data: [0, 0, 0, 0, 0, 0, 0, 148.5, 216.4, 194.1, 95.6, 54.4]      }] 

is there anyway set pointinterval depends on month. because if given pointinterval above calculate every 31 days. creates problem when month has 28 or 30 days. how acheive it. adjusting width of container div makes x-axis values not displaying properly. in advance

unfortunately it's not possible - pointinterval increments given number, irregular value not possible. however, can set directly x-value, see: http://jsfiddle.net/kubdb/2/

the thing js that

date.utc(2007, 10, 10) == date.utc(2005,34, 10) 

returns true, can freely increment month one.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -