It is currently Fri Apr 25, 2014 7:27 am Advanced search

Force to grouping by 1 day

Technical support for the Highcharts Stock package

Force to grouping by 1 day

Postby trinhthanhdung » Wed Feb 08, 2012 10:44 am

Hi, please see my code
http://jsfiddle.net/boykocodon/3kJrF/6/
main serie is grouping by 1 week.
Now when i click button set, i want to force main serie grouping by 1 day.
So how can I do.
Please help me.
Thanks
trinhthanhdung
 
Posts: 118
Joined: Fri Jul 15, 2011 9:59 am

Re: Force to grouping by 1 day

Postby hfrntt » Fri Feb 10, 2012 3:58 pm

You can add second dataGrouping unit, like this:
Code: Select all
units: [
    ['day', [1]],
    ['week', [1]]
]
Slawek Kolodziej
Highcharts support team
hfrntt
 
Posts: 6394
Joined: Mon Aug 30, 2010 10:41 am

Re: Force to grouping by 1 day

Postby trinhthanhdung » Mon Feb 13, 2012 4:41 am

hfrntt wrote:You can add second dataGrouping unit, like this:
Code: Select all
units: [
    ['day', [1]],
    ['week', [1]]
]

But I only want when set xaxis range is Date.UTC(2008,1,1),Date.UTC(2009,1,1), i must group by 1 day.
Other else I must group by 1 week.
trinhthanhdung
 
Posts: 118
Joined: Fri Jul 15, 2011 9:59 am

Re: Force to grouping by 1 day

Postby hfrntt » Sun Feb 19, 2012 10:13 pm

Well, for now it's not possible.
Slawek Kolodziej
Highcharts support team
hfrntt
 
Posts: 6394
Joined: Mon Aug 30, 2010 10:41 am


Return to Highstock Usage

Who is online

Users browsing this forum: No registered users and 3 guests