I’m having an issue with highcharts displaying some of my datapoints with a duplicate label, then skipping subsequent labels, and I can’t figure out how to fix it.
I gather from reading various posts that this is an issue with the PointInterval option; I’d like to set its value to 1 month, but since months a different lengths, this is not simple.
I am not sure of what a proper solution is though. Here is my code:
The graph is displaying January and March twice, and skipping February.
The solution suggested in this thread ( http://highslide.com/forum/viewtopic.php?f=9&t=17269 ) seems to be what I need, but I can’t figure out how to implement it in the javascript that I currently have. This is the code that they suggest will fix the problem:
var data = [3,2,5,3,5,6,2,3,1];
var month = 4; // the first month
data = $.map(data, function(value) {
return {
x: Date.UTC(2000, month++, 1),
y: value
};
});
I’d really appreciate any assistance! Thanks.
Live Demo