Reputation: 11
Can I use Highstock do the following: Grouping by days, weeks, months, but to display all data. That is, make a button group, but that they did not zoom, and only group data (do approximation).
Upvotes: 1
Views: 993
Reputation: 71
I get similar results when clicking the button but only on like a 3M range. Strange, clicking button to go to "year" aggregation, it falls back to day (?). This surprised me, as it isn't even one of the aggregation options in the data series (possibly code falls back to default)? Once you've done this, if you then click to ALL or 1 year, it properly picks right back up to yearly aggregation...
Upvotes: 0
Reputation: 11
This works well when a lot of data, but when the data is small, such as a few months, the schedule is not grouped.
jsFiddle: http://jsfiddle.net/W7rTL/5/
Upvotes: 0
Reputation: 45079
This is how you can update dataGrouping:
$("#container").highcharts().series[0].update({
dataGrouping: {
units: [ ['year', [1]] ]
}
});
And jsFiddle: http://jsfiddle.net/W7rTL/1/
Upvotes: 1