var startDateGlobalYYYY='2017'; var startDateGlobalM='9'; //0=jan var startDateGlobalD='18'; var startDateGlobalMasterYYYY='2015'; var startDateGlobalMasterM='10'; //0=jan var startDateGlobalMasterD='01'; var DataPersonal=[ {name:'17:04 - 4 ', x:Date.UTC(2017,8,30,12,00,00),y:4.0000},{name:' ', x:Date.UTC(2017,9,5,12,00,00),y:4.0000},{name:'17:04 - 2 ', x:Date.UTC(2017,9,6,12,00,00),y:2.0000},{name:'17:11 - 3 I have been feeling drained physically and mentally I wante
19:01 - 3 Feeling tearful
19:09 - 1 I have to leave the house as my son is coming home and doesn
19:50 - 1 Feeling really anxious
20:23 - 0 I\'ve left the house now I really don\'t know what to do I\'m
22:13 - 0 I\'m feeling so low
22:20 - 0 The people I\'ve asked for help are abandoning me
23:01 - 1 In pain physically and mentally My head hurts so much
23:19 - 1 Feeling tired and exhausted
23:36 - 2 I will attempt to sleep now', x:Date.UTC(2017,9,7,12,00,00),y:1.2000},{name:'08:45 - 4 Not a great sleep But my mood is better that it was
10:34 - 4 I\'m managing to do some work today after postponing it for 2
13:11 - 4 Feeling anxious Going to see a psychologist today Don\'t kno
13:44 - 3 Anxiety has kicked in Feeling lost
17:54 - 4 Not to sure what I\'m feeling Went to a psychologist today S
18:26 - 3 Feeling angry and upset
21:17 - 4 Every thing is going round and round in my head
23:06 - 0 My family have all left me now', x:Date.UTC(2017,9,8,12,00,00),y:3.2500},{name:'07:13 - 0 I have failed as a person Is there a point of me being here
13:39 - 3 Felt so low I had to speak to the crises team. Had some reas
13:46 - 3 Feeling totally exhausted and tired
17:54 - 4 Feeling sick norsia and dizzy
20:36 - 5 Haven\'t eaten for two days. Had a long hot shower that made
21:56 - 5 I think I\'m going to bed. Especially as my mood it ok..... G', x:Date.UTC(2017,9,9,12,00,00),y:3.3333},{name:'07:15 - 4 Woke up feeling sick, up most of the night with worry
09:32 - 5 Had things to do but just fell asleep on the sofa
13:36 - 7 Just had a chat with a friend that made me smile and laugh f
15:17 - 3 Feeling like shit again
16:20 - 3 Feeling sick🤢 I\'m tired of all of this I so much want to be
18:48 - 3 It\'s nearly 7pm I\'m so tired have been all day. I think I\'ll', x:Date.UTC(2017,9,10,12,00,00),y:4.1667},{name:'02:51 - 4 That\'s much sleep as I can get 2.30am and my mind is racing
06:28 - 3 Feeling totally alone
11:28 - 2 Why do I always feel like this 🙁😢
13:34 - 2 I\'ve looked up why I feel nausea and lack of appetite. It\'s
17:01 - 4 You lot are great 🐼 ♥️ I appreciate the Hugs comments and a
19:06 - 0 Fuck this I\'ve had enough Tried to pick my self up only to
20:19 - 0 As I sit here I\'m wondering if my suicide attempt worked I w
20:50 - 0 😢😢😢😢😢😭😭😭😭😭', x:Date.UTC(2017,9,11,12,00,00),y:1.8750},{name:'05:21 - 2 Woke up at 3am in physical pain. A constant reminder of my s
11:11 - 2 Fuck fuck fuck and fuck it
11:56 - 1 Fuck this shit The day is just getting worse This is totally
13:57 - 1 I think I\'m being played here
14:39 - 2 Note to self:- What do I do to make my self more happy? Do
17:05 - 1 Can\'t do this anymore
19:53 - 0 I think I\'ll end up crying my self to sleep tonight. I\'m so ', x:Date.UTC(2017,9,12,12,00,00),y:1.2857},{name:'03:17 - 2 Went bed in a low mood woke up in a low mood. Feeling reall
14:23 - 5 Feeling better today, yesterday was a real shit day
15:01 - 6 I\'m determined to keep my mood up for the rest of the day an
16:07 - 6 Right I\'m getting the crisps and popcorn ready. Who\'s watchi
22:23 - 6 Going to bed on a 6 😲 Good night everyone Sweet dreams', x:Date.UTC(2017,9,13,12,00,00),y:5.0000},{name:'07:45 - 5 Good morning everyone. Have a great Saturday.
15:54 - 4 Feel like I\'ve upset someone and I\'m not even sure if I have
18:34 - 2 Hi everyone I think I\'ll be setting my account to private', x:Date.UTC(2017,9,14,12,00,00),y:3.6667},{name:'19:32 - 0 Mood has got lower. So alone in my thoughts and feel so lone
21:19 - 1 Βαρέθηκα. Τι πρέπει να κάνω. Τι είναι αυτό η ζωή', x:Date.UTC(2017,9,15,12,00,00),y:0.5000},{name:'19:01 - 6 I drove to London this morning and have only just got back.
20:36 - 6 My lovely Pandas and you gorgeous people, I am shattered and', x:Date.UTC(2017,9,16,12,00,00),y:6.0000},{name:'17:29 - 4 Feeling drained. It\'s only 5.30pm in England and I\'m so tire
18:11 - 5 There\'s nothing like a cup of tea
21:08 - 5 Good night my lovelies. Have a great day or night where ever', x:Date.UTC(2017,9,17,12,00,00),y:4.6667},{name:'02:59 - 5 Good morning. Happy Wednesday Everyone
19:20 - 3 Been feeling drained so tired. Got a massive headache. Over
19:31 - 3 Has any one seen or heard from Sara P. She was on a low mood
21:37 - 4 Goodnight beautiful people. Have a great day or night where ', x:Date.UTC(2017,9,18,12,00,00),y:3.7500},{name:'09:35 - 2 I feel like shit. One text message and that person made me f', x:Date.UTC(2017,9,19,12,00,00),y:2.0000},{name:' ', x:Date.UTC(2017,9,22,12,00,00),y:2.0000},{name:'09:38 - 1 I feel like shit
10:12 - 1 I feel worthless I don\'t seem to say the right things I do', x:Date.UTC(2017,9,23,12,00,00),y:1.0000},{name:' ', x:Date.UTC(2017,9,24,12,00,00),y:1.0000},{name:'06:27 - 1 The last few days I\'ve been thing about suicide again. Tryin
13:36 - 0 I think I\'ve reached the final straw now. I can\'t go on.', x:Date.UTC(2017,9,25,12,00,00),y:0.5000},{name:' ', x:Date.UTC(2017,9,28,12,00,00),y:0.5000},{name:'21:20 - 5 Lonely but feeling ok', x:Date.UTC(2017,9,29,12,00,00),y:5.0000},{name:'17:13 - 1 I feel like I want to end it all. I feel like committing sui', x:Date.UTC(2017,9,30,12,00,00),y:1.0000},{name:' ', x:Date.UTC(2017,10,2,12,00,00),y:1.0000},{name:'14:44 - 5 What a week. So many ups and downs I couldn\'t keep up. I thi', x:Date.UTC(2017,10,3,12,00,00),y:5.0000},{name:' ', x:Date.UTC(2017,10,10,12,00,00),y:5.0000},{name:'02:10 - 2 I am totally drunk. I hate life', x:Date.UTC(2017,10,11,12,00,00),y:2.0000},{name:' ', x:Date.UTC(2017,10,12,12,00,00),y:2.0000},{name:'06:40 - 5 A mono tone feeling for the last few days', x:Date.UTC(2017,10,13,12,00,00),y:5.0000},{name:'15:34 - 5 I really am not into this mono tone feeling. These pills are', x:Date.UTC(2017,10,18,12,00,00),y:5.0000},{name:' ', x:Date.UTC(2017,10,18,23,38,00),y:5.0000} ]; var DataGlobal= [[Date.UTC(2015,10,2,12,00,00),4.59],[Date.UTC(2015,10,3,12,00,00),4.68],[Date.UTC(2015,10,4,12,00,00),4.60],[Date.UTC(2015,10,5,12,00,00),4.73],[Date.UTC(2015,10,6,12,00,00),4.89],[Date.UTC(2015,10,7,12,00,00),4.43],[Date.UTC(2015,10,8,12,00,00),4.39],[Date.UTC(2015,10,9,12,00,00),4.56],[Date.UTC(2015,10,10,12,00,00),4.97],[Date.UTC(2015,10,11,12,00,00),4.57],[Date.UTC(2015,10,12,12,00,00),5.03],[Date.UTC(2015,10,13,12,00,00),4.79],[Date.UTC(2015,10,14,12,00,00),5.05],[Date.UTC(2015,10,15,12,00,00),4.68],[Date.UTC(2015,10,16,12,00,00),4.85],[Date.UTC(2015,10,17,12,00,00),4.60],[Date.UTC(2015,10,18,12,00,00),4.62],[Date.UTC(2015,10,19,12,00,00),4.73],[Date.UTC(2015,10,20,12,00,00),4.69],[Date.UTC(2015,10,21,12,00,00),4.38],[Date.UTC(2015,10,22,12,00,00),4.37],[Date.UTC(2015,10,23,12,00,00),4.76],[Date.UTC(2015,10,24,12,00,00),4.71],[Date.UTC(2015,10,25,12,00,00),4.71],[Date.UTC(2015,10,26,12,00,00),4.81],[Date.UTC(2015,10,27,12,00,00),5.02],[Date.UTC(2015,10,28,12,00,00),4.58],[Date.UTC(2015,10,29,12,00,00),4.59],[Date.UTC(2015,10,30,12,00,00),4.42],[Date.UTC(2015,11,1,12,00,00),4.88],[Date.UTC(2015,11,2,12,00,00),4.67],[Date.UTC(2015,11,3,12,00,00),4.91],[Date.UTC(2015,11,4,12,00,00),4.79],[Date.UTC(2015,11,5,12,00,00),4.84],[Date.UTC(2015,11,6,12,00,00),4.57],[Date.UTC(2015,11,7,12,00,00),4.51],[Date.UTC(2015,11,8,12,00,00),4.71],[Date.UTC(2015,11,9,12,00,00),4.43],[Date.UTC(2015,11,10,12,00,00),4.77],[Date.UTC(2015,11,11,12,00,00),4.45],[Date.UTC(2015,11,12,12,00,00),5.01],[Date.UTC(2015,11,13,12,00,00),4.94],[Date.UTC(2015,11,14,12,00,00),4.63],[Date.UTC(2015,11,15,12,00,00),4.72],[Date.UTC(2015,11,16,12,00,00),4.91],[Date.UTC(2015,11,17,12,00,00),4.70],[Date.UTC(2015,11,18,12,00,00),5.02],[Date.UTC(2015,11,19,12,00,00),5.10],[Date.UTC(2015,11,20,12,00,00),4.86],[Date.UTC(2015,11,21,12,00,00),4.53],[Date.UTC(2015,11,22,12,00,00),4.96],[Date.UTC(2015,11,23,12,00,00),4.96],[Date.UTC(2015,11,24,12,00,00),4.83],[Date.UTC(2015,11,25,12,00,00),5.18],[Date.UTC(2015,11,26,12,00,00),4.91],[Date.UTC(2015,11,27,12,00,00),4.89],[Date.UTC(2015,11,28,12,00,00),4.75],[Date.UTC(2015,11,29,12,00,00),4.98],[Date.UTC(2015,11,30,12,00,00),5.06],[Date.UTC(2015,11,31,12,00,00),5.04],[Date.UTC(2016,0,1,12,00,00),4.95],[Date.UTC(2016,0,2,12,00,00),5.00],[Date.UTC(2016,0,3,12,00,00),4.98],[Date.UTC(2016,0,4,12,00,00),4.76],[Date.UTC(2016,0,5,12,00,00),4.62],[Date.UTC(2016,0,6,12,00,00),5.03],[Date.UTC(2016,0,7,12,00,00),4.84],[Date.UTC(2016,0,8,12,00,00),4.74],[Date.UTC(2016,0,9,12,00,00),4.84],[Date.UTC(2016,0,10,12,00,00),4.84],[Date.UTC(2016,0,11,12,00,00),4.73],[Date.UTC(2016,0,12,12,00,00),4.85],[Date.UTC(2016,0,13,12,00,00),4.75],[Date.UTC(2016,0,14,12,00,00),4.75],[Date.UTC(2016,0,15,12,00,00),4.87],[Date.UTC(2016,0,16,12,00,00),4.91],[Date.UTC(2016,0,17,12,00,00),5.01],[Date.UTC(2016,0,18,12,00,00),4.79],[Date.UTC(2016,0,19,12,00,00),4.65],[Date.UTC(2016,0,20,12,00,00),4.80],[Date.UTC(2016,0,21,12,00,00),4.71],[Date.UTC(2016,0,22,12,00,00),4.67],[Date.UTC(2016,0,23,12,00,00),4.98],[Date.UTC(2016,0,24,12,00,00),4.63],[Date.UTC(2016,0,25,12,00,00),4.45],[Date.UTC(2016,0,26,12,00,00),4.72],[Date.UTC(2016,0,27,12,00,00),4.92],[Date.UTC(2016,0,28,12,00,00),4.93],[Date.UTC(2016,0,29,12,00,00),5.13],[Date.UTC(2016,0,30,12,00,00),4.78],[Date.UTC(2016,0,31,12,00,00),4.76],[Date.UTC(2016,1,1,12,00,00),4.82],[Date.UTC(2016,1,2,12,00,00),4.78],[Date.UTC(2016,1,3,12,00,00),4.53],[Date.UTC(2016,1,4,12,00,00),4.62],[Date.UTC(2016,1,5,12,00,00),4.82],[Date.UTC(2016,1,6,12,00,00),4.91],[Date.UTC(2016,1,7,12,00,00),4.81],[Date.UTC(2016,1,8,12,00,00),4.81],[Date.UTC(2016,1,9,12,00,00),4.55],[Date.UTC(2016,1,10,12,00,00),4.33],[Date.UTC(2016,1,11,12,00,00),4.76],[Date.UTC(2016,1,12,12,00,00),4.76],[Date.UTC(2016,1,13,12,00,00),4.98],[Date.UTC(2016,1,14,12,00,00),4.81],[Date.UTC(2016,1,15,12,00,00),4.73],[Date.UTC(2016,1,16,12,00,00),4.80],[Date.UTC(2016,1,17,12,00,00),4.40],[Date.UTC(2016,1,18,12,00,00),4.68],[Date.UTC(2016,1,19,12,00,00),4.84],[Date.UTC(2016,1,20,12,00,00),4.80],[Date.UTC(2016,1,21,12,00,00),4.60],[Date.UTC(2016,1,22,12,00,00),4.75],[Date.UTC(2016,1,23,12,00,00),4.61],[Date.UTC(2016,1,24,12,00,00),4.58],[Date.UTC(2016,1,25,12,00,00),4.47],[Date.UTC(2016,1,26,12,00,00),4.75],[Date.UTC(2016,1,27,12,00,00),4.38],[Date.UTC(2016,1,28,12,00,00),4.67],[Date.UTC(2016,1,29,12,00,00),4.48],[Date.UTC(2016,2,1,12,00,00),4.49],[Date.UTC(2016,2,2,12,00,00),4.52],[Date.UTC(2016,2,3,12,00,00),4.40],[Date.UTC(2016,2,4,12,00,00),4.69],[Date.UTC(2016,2,5,12,00,00),4.75],[Date.UTC(2016,2,6,12,00,00),4.62],[Date.UTC(2016,2,7,12,00,00),4.55],[Date.UTC(2016,2,8,12,00,00),4.52],[Date.UTC(2016,2,9,12,00,00),4.83],[Date.UTC(2016,2,10,12,00,00),4.60],[Date.UTC(2016,2,11,12,00,00),4.67],[Date.UTC(2016,2,12,12,00,00),4.70],[Date.UTC(2016,2,13,12,00,00),4.73],[Date.UTC(2016,2,14,12,00,00),4.44],[Date.UTC(2016,2,15,12,00,00),4.67],[Date.UTC(2016,2,16,12,00,00),4.46],[Date.UTC(2016,2,17,12,00,00),4.31],[Date.UTC(2016,2,18,12,00,00),4.46],[Date.UTC(2016,2,19,12,00,00),4.58],[Date.UTC(2016,2,20,12,00,00),4.71],[Date.UTC(2016,2,21,12,00,00),4.44],[Date.UTC(2016,2,22,12,00,00),4.34],[Date.UTC(2016,2,23,12,00,00),4.28],[Date.UTC(2016,2,24,12,00,00),4.38],[Date.UTC(2016,2,25,12,00,00),4.51],[Date.UTC(2016,2,26,12,00,00),4.94],[Date.UTC(2016,2,27,12,00,00),4.89],[Date.UTC(2016,2,28,12,00,00),4.74],[Date.UTC(2016,2,29,12,00,00),4.70],[Date.UTC(2016,2,30,12,00,00),4.70],[Date.UTC(2016,2,31,12,00,00),4.85],[Date.UTC(2016,3,1,12,00,00),4.78],[Date.UTC(2016,3,2,12,00,00),4.56],[Date.UTC(2016,3,3,12,00,00),4.91],[Date.UTC(2016,3,4,12,00,00),4.78],[Date.UTC(2016,3,5,12,00,00),4.44],[Date.UTC(2016,3,6,12,00,00),4.60],[Date.UTC(2016,3,7,12,00,00),4.71],[Date.UTC(2016,3,8,12,00,00),4.99],[Date.UTC(2016,3,9,12,00,00),5.03],[Date.UTC(2016,3,10,12,00,00),4.86],[Date.UTC(2016,3,11,12,00,00),4.61],[Date.UTC(2016,3,12,12,00,00),4.72],[Date.UTC(2016,3,13,12,00,00),4.52],[Date.UTC(2016,3,14,12,00,00),4.75],[Date.UTC(2016,3,15,12,00,00),4.54],[Date.UTC(2016,3,16,12,00,00),4.84],[Date.UTC(2016,3,17,12,00,00),4.77],[Date.UTC(2016,3,18,12,00,00),4.76],[Date.UTC(2016,3,19,12,00,00),4.68],[Date.UTC(2016,3,20,12,00,00),4.59],[Date.UTC(2016,3,21,12,00,00),4.63],[Date.UTC(2016,3,22,12,00,00),4.81],[Date.UTC(2016,3,23,12,00,00),4.56],[Date.UTC(2016,3,24,12,00,00),4.87],[Date.UTC(2016,3,25,12,00,00),4.81],[Date.UTC(2016,3,26,12,00,00),4.86],[Date.UTC(2016,3,27,12,00,00),4.95],[Date.UTC(2016,3,28,12,00,00),4.53],[Date.UTC(2016,3,29,12,00,00),4.63],[Date.UTC(2016,3,30,12,00,00),4.88],[Date.UTC(2016,4,1,12,00,00),4.78],[Date.UTC(2016,4,2,12,00,00),4.80],[Date.UTC(2016,4,3,12,00,00),4.78],[Date.UTC(2016,4,4,12,00,00),4.83],[Date.UTC(2016,4,5,12,00,00),4.59],[Date.UTC(2016,4,6,12,00,00),4.87],[Date.UTC(2016,4,7,12,00,00),4.78],[Date.UTC(2016,4,8,12,00,00),4.73],[Date.UTC(2016,4,9,12,00,00),4.55],[Date.UTC(2016,4,10,12,00,00),4.59],[Date.UTC(2016,4,11,12,00,00),4.63],[Date.UTC(2016,4,12,12,00,00),4.79],[Date.UTC(2016,4,13,12,00,00),4.81],[Date.UTC(2016,4,14,12,00,00),4.99],[Date.UTC(2016,4,15,12,00,00),4.67],[Date.UTC(2016,4,16,12,00,00),4.74],[Date.UTC(2016,4,17,12,00,00),4.81],[Date.UTC(2016,4,18,12,00,00),4.61],[Date.UTC(2016,4,19,12,00,00),4.80],[Date.UTC(2016,4,20,12,00,00),4.85],[Date.UTC(2016,4,21,12,00,00),4.93],[Date.UTC(2016,4,22,12,00,00),4.61],[Date.UTC(2016,4,23,12,00,00),4.64],[Date.UTC(2016,4,24,12,00,00),4.69],[Date.UTC(2016,4,25,12,00,00),4.68],[Date.UTC(2016,4,26,12,00,00),4.88],[Date.UTC(2016,4,27,12,00,00),5.06],[Date.UTC(2016,4,28,12,00,00),5.26],[Date.UTC(2016,4,29,12,00,00),4.79],[Date.UTC(2016,4,30,12,00,00),4.90],[Date.UTC(2016,4,31,12,00,00),4.95],[Date.UTC(2016,5,1,12,00,00),4.79],[Date.UTC(2016,5,2,12,00,00),5.06],[Date.UTC(2016,5,3,12,00,00),5.22],[Date.UTC(2016,5,4,12,00,00),4.87],[Date.UTC(2016,5,5,12,00,00),5.11],[Date.UTC(2016,5,6,12,00,00),5.20],[Date.UTC(2016,5,7,12,00,00),5.08],[Date.UTC(2016,5,8,12,00,00),5.07],[Date.UTC(2016,5,9,12,00,00),4.74],[Date.UTC(2016,5,10,12,00,00),4.97],[Date.UTC(2016,5,11,12,00,00),4.70],[Date.UTC(2016,5,12,12,00,00),4.78],[Date.UTC(2016,5,13,12,00,00),4.62],[Date.UTC(2016,5,14,12,00,00),4.76],[Date.UTC(2016,5,15,12,00,00),4.95],[Date.UTC(2016,5,16,12,00,00),4.76],[Date.UTC(2016,5,17,12,00,00),4.90],[Date.UTC(2016,5,18,12,00,00),5.04],[Date.UTC(2016,5,19,12,00,00),4.56],[Date.UTC(2016,5,20,12,00,00),4.83],[Date.UTC(2016,5,21,12,00,00),5.03],[Date.UTC(2016,5,22,12,00,00),4.80],[Date.UTC(2016,5,23,12,00,00),5.39],[Date.UTC(2016,5,24,12,00,00),4.95],[Date.UTC(2016,5,25,12,00,00),4.88],[Date.UTC(2016,5,26,12,00,00),4.90],[Date.UTC(2016,5,27,12,00,00),4.97],[Date.UTC(2016,5,28,12,00,00),4.62],[Date.UTC(2016,5,29,12,00,00),4.90],[Date.UTC(2016,5,30,12,00,00),5.05],[Date.UTC(2016,6,1,12,00,00),5.10],[Date.UTC(2016,6,2,12,00,00),5.01],[Date.UTC(2016,6,3,12,00,00),5.15],[Date.UTC(2016,6,4,12,00,00),4.74],[Date.UTC(2016,6,5,12,00,00),4.90],[Date.UTC(2016,6,6,12,00,00),4.96],[Date.UTC(2016,6,7,12,00,00),4.97],[Date.UTC(2016,6,8,12,00,00),4.98],[Date.UTC(2016,6,9,12,00,00),4.90],[Date.UTC(2016,6,10,12,00,00),4.92],[Date.UTC(2016,6,11,12,00,00),4.90],[Date.UTC(2016,6,12,12,00,00),5.02],[Date.UTC(2016,6,13,12,00,00),5.18],[Date.UTC(2016,6,14,12,00,00),5.21],[Date.UTC(2016,6,15,12,00,00),4.94],[Date.UTC(2016,6,16,12,00,00),4.87],[Date.UTC(2016,6,17,12,00,00),5.15],[Date.UTC(2016,6,18,12,00,00),4.67],[Date.UTC(2016,6,19,12,00,00),4.83],[Date.UTC(2016,6,20,12,00,00),4.89],[Date.UTC(2016,6,21,12,00,00),5.08],[Date.UTC(2016,6,22,12,00,00),5.16],[Date.UTC(2016,6,23,12,00,00),4.80],[Date.UTC(2016,6,24,12,00,00),5.21],[Date.UTC(2016,6,25,12,00,00),4.86],[Date.UTC(2016,6,26,12,00,00),4.74],[Date.UTC(2016,6,27,12,00,00),4.87],[Date.UTC(2016,6,28,12,00,00),4.92],[Date.UTC(2016,6,29,12,00,00),4.81],[Date.UTC(2016,6,30,12,00,00),4.83],[Date.UTC(2016,6,31,12,00,00),4.95],[Date.UTC(2016,7,1,12,00,00),4.81],[Date.UTC(2016,7,2,12,00,00),4.85],[Date.UTC(2016,7,3,12,00,00),4.53],[Date.UTC(2016,7,4,12,00,00),4.62],[Date.UTC(2016,7,5,12,00,00),4.56],[Date.UTC(2016,7,6,12,00,00),4.83],[Date.UTC(2016,7,7,12,00,00),4.76],[Date.UTC(2016,7,8,12,00,00),4.93],[Date.UTC(2016,7,9,12,00,00),4.82],[Date.UTC(2016,7,10,12,00,00),4.83],[Date.UTC(2016,7,11,12,00,00),5.00],[Date.UTC(2016,7,12,12,00,00),5.18],[Date.UTC(2016,7,13,12,00,00),5.17],[Date.UTC(2016,7,14,12,00,00),4.95],[Date.UTC(2016,7,15,12,00,00),4.72],[Date.UTC(2016,7,16,12,00,00),4.86],[Date.UTC(2016,7,17,12,00,00),4.86],[Date.UTC(2016,7,18,12,00,00),4.97],[Date.UTC(2016,7,19,12,00,00),5.02],[Date.UTC(2016,7,20,12,00,00),4.70],[Date.UTC(2016,7,21,12,00,00),4.77],[Date.UTC(2016,7,22,12,00,00),4.75],[Date.UTC(2016,7,23,12,00,00),4.85],[Date.UTC(2016,7,24,12,00,00),5.24],[Date.UTC(2016,7,25,12,00,00),5.20],[Date.UTC(2016,7,26,12,00,00),5.10],[Date.UTC(2016,7,27,12,00,00),4.70],[Date.UTC(2016,7,28,12,00,00),5.07],[Date.UTC(2016,7,29,12,00,00),4.79],[Date.UTC(2016,7,30,12,00,00),4.88],[Date.UTC(2016,7,31,12,00,00),4.85],[Date.UTC(2016,8,1,12,00,00),4.87],[Date.UTC(2016,8,2,12,00,00),4.74],[Date.UTC(2016,8,3,12,00,00),4.85],[Date.UTC(2016,8,4,12,00,00),4.66],[Date.UTC(2016,8,5,12,00,00),4.70],[Date.UTC(2016,8,6,12,00,00),4.48],[Date.UTC(2016,8,7,12,00,00),4.98],[Date.UTC(2016,8,8,12,00,00),5.04],[Date.UTC(2016,8,9,12,00,00),4.86],[Date.UTC(2016,8,10,12,00,00),4.79],[Date.UTC(2016,8,11,12,00,00),4.74],[Date.UTC(2016,8,12,12,00,00),5.03],[Date.UTC(2016,8,13,12,00,00),4.77],[Date.UTC(2016,8,14,12,00,00),4.93],[Date.UTC(2016,8,15,12,00,00),4.57],[Date.UTC(2016,8,16,12,00,00),4.82],[Date.UTC(2016,8,17,12,00,00),4.74],[Date.UTC(2016,8,18,12,00,00),4.70],[Date.UTC(2016,8,19,12,00,00),4.51],[Date.UTC(2016,8,20,12,00,00),4.59],[Date.UTC(2016,8,21,12,00,00),4.87],[Date.UTC(2016,8,22,12,00,00),4.50],[Date.UTC(2016,8,23,12,00,00),4.84],[Date.UTC(2016,8,24,12,00,00),5.04],[Date.UTC(2016,8,25,12,00,00),4.72],[Date.UTC(2016,8,26,12,00,00),4.88],[Date.UTC(2016,8,27,12,00,00),4.80],[Date.UTC(2016,8,28,12,00,00),4.72],[Date.UTC(2016,8,29,12,00,00),5.00],[Date.UTC(2016,8,30,12,00,00),4.94],[Date.UTC(2016,9,1,12,00,00),5.18],[Date.UTC(2016,9,2,12,00,00),5.18],[Date.UTC(2016,9,3,12,00,00),4.74],[Date.UTC(2016,9,4,12,00,00),4.95],[Date.UTC(2016,9,5,12,00,00),4.88],[Date.UTC(2016,9,6,12,00,00),4.80],[Date.UTC(2016,9,7,12,00,00),4.98],[Date.UTC(2016,9,8,12,00,00),5.02],[Date.UTC(2016,9,9,12,00,00),4.67],[Date.UTC(2016,9,10,12,00,00),4.94],[Date.UTC(2016,9,11,12,00,00),4.83],[Date.UTC(2016,9,12,12,00,00),4.75],[Date.UTC(2016,9,13,12,00,00),4.76],[Date.UTC(2016,9,14,12,00,00),5.05],[Date.UTC(2016,9,15,12,00,00),4.96],[Date.UTC(2016,9,16,12,00,00),4.92],[Date.UTC(2016,9,17,12,00,00),4.70],[Date.UTC(2016,9,18,12,00,00),4.76],[Date.UTC(2016,9,19,12,00,00),4.73],[Date.UTC(2016,9,20,12,00,00),4.85],[Date.UTC(2016,9,21,12,00,00),4.93],[Date.UTC(2016,9,22,12,00,00),4.67],[Date.UTC(2016,9,23,12,00,00),5.02],[Date.UTC(2016,9,24,12,00,00),4.75],[Date.UTC(2016,9,25,12,00,00),4.80],[Date.UTC(2016,9,26,12,00,00),4.69],[Date.UTC(2016,9,27,12,00,00),4.62],[Date.UTC(2016,9,28,12,00,00),4.93],[Date.UTC(2016,9,29,12,00,00),4.56],[Date.UTC(2016,9,30,12,00,00),4.60],[Date.UTC(2016,9,31,12,00,00),4.54],[Date.UTC(2016,10,1,12,00,00),4.55],[Date.UTC(2016,10,2,12,00,00),4.79],[Date.UTC(2016,10,3,12,00,00),4.90],[Date.UTC(2016,10,4,12,00,00),4.68],[Date.UTC(2016,10,5,12,00,00),4.78],[Date.UTC(2016,10,6,12,00,00),4.54],[Date.UTC(2016,10,7,12,00,00),4.66],[Date.UTC(2016,10,8,12,00,00),4.63],[Date.UTC(2016,10,9,12,00,00),4.25],[Date.UTC(2016,10,10,12,00,00),4.36],[Date.UTC(2016,10,11,12,00,00),4.73],[Date.UTC(2016,10,12,12,00,00),4.94],[Date.UTC(2016,10,13,12,00,00),4.47],[Date.UTC(2016,10,14,12,00,00),4.74],[Date.UTC(2016,10,15,12,00,00),4.69],[Date.UTC(2016,10,16,12,00,00),4.70],[Date.UTC(2016,10,17,12,00,00),4.43],[Date.UTC(2016,10,18,12,00,00),4.80],[Date.UTC(2016,10,19,12,00,00),5.00],[Date.UTC(2016,10,20,12,00,00),4.73],[Date.UTC(2016,10,21,12,00,00),4.69],[Date.UTC(2016,10,22,12,00,00),4.56],[Date.UTC(2016,10,23,12,00,00),4.80],[Date.UTC(2016,10,24,12,00,00),4.47],[Date.UTC(2016,10,25,12,00,00),4.67],[Date.UTC(2016,10,26,12,00,00),4.44],[Date.UTC(2016,10,27,12,00,00),4.71],[Date.UTC(2016,10,28,12,00,00),4.67],[Date.UTC(2016,10,29,12,00,00),4.59],[Date.UTC(2016,10,30,12,00,00),4.61],[Date.UTC(2016,11,1,12,00,00),4.89],[Date.UTC(2016,11,2,12,00,00),4.92],[Date.UTC(2016,11,3,12,00,00),4.95],[Date.UTC(2016,11,4,12,00,00),4.51],[Date.UTC(2016,11,5,12,00,00),4.55],[Date.UTC(2016,11,6,12,00,00),4.64],[Date.UTC(2016,11,7,12,00,00),4.73],[Date.UTC(2016,11,8,12,00,00),4.62],[Date.UTC(2016,11,9,12,00,00),4.54],[Date.UTC(2016,11,10,12,00,00),4.84],[Date.UTC(2016,11,11,12,00,00),4.74],[Date.UTC(2016,11,12,12,00,00),4.70],[Date.UTC(2016,11,13,12,00,00),4.41],[Date.UTC(2016,11,14,12,00,00),4.49],[Date.UTC(2016,11,15,12,00,00),4.72],[Date.UTC(2016,11,16,12,00,00),4.77],[Date.UTC(2016,11,17,12,00,00),4.53],[Date.UTC(2016,11,18,12,00,00),4.73],[Date.UTC(2016,11,19,12,00,00),4.54],[Date.UTC(2016,11,20,12,00,00),4.42],[Date.UTC(2016,11,21,12,00,00),4.41],[Date.UTC(2016,11,22,12,00,00),4.64],[Date.UTC(2016,11,23,12,00,00),4.84],[Date.UTC(2016,11,24,12,00,00),4.78],[Date.UTC(2016,11,25,12,00,00),5.19],[Date.UTC(2016,11,26,12,00,00),4.51],[Date.UTC(2016,11,27,12,00,00),4.35],[Date.UTC(2016,11,28,12,00,00),4.48],[Date.UTC(2016,11,29,12,00,00),4.77],[Date.UTC(2016,11,30,12,00,00),4.88],[Date.UTC(2016,11,31,12,00,00),4.61],[Date.UTC(2017,0,1,12,00,00),4.69],[Date.UTC(2017,0,2,12,00,00),4.77],[Date.UTC(2017,0,3,12,00,00),4.66],[Date.UTC(2017,0,4,12,00,00),4.76],[Date.UTC(2017,0,5,12,00,00),4.84],[Date.UTC(2017,0,6,12,00,00),4.70],[Date.UTC(2017,0,7,12,00,00),5.04],[Date.UTC(2017,0,8,12,00,00),4.74],[Date.UTC(2017,0,9,12,00,00),4.59],[Date.UTC(2017,0,10,12,00,00),4.97],[Date.UTC(2017,0,11,12,00,00),4.83],[Date.UTC(2017,0,12,12,00,00),4.86],[Date.UTC(2017,0,13,12,00,00),4.85],[Date.UTC(2017,0,14,12,00,00),4.63],[Date.UTC(2017,0,15,12,00,00),4.74],[Date.UTC(2017,0,16,12,00,00),4.67],[Date.UTC(2017,0,17,12,00,00),4.58],[Date.UTC(2017,0,18,12,00,00),4.51],[Date.UTC(2017,0,19,12,00,00),4.39],[Date.UTC(2017,0,20,12,00,00),4.72],[Date.UTC(2017,0,21,12,00,00),4.72],[Date.UTC(2017,0,22,12,00,00),4.84],[Date.UTC(2017,0,23,12,00,00),4.66],[Date.UTC(2017,0,24,12,00,00),4.49],[Date.UTC(2017,0,25,12,00,00),4.64],[Date.UTC(2017,0,26,12,00,00),4.96],[Date.UTC(2017,0,27,12,00,00),4.71],[Date.UTC(2017,0,28,12,00,00),4.70],[Date.UTC(2017,0,29,12,00,00),4.52],[Date.UTC(2017,0,30,12,00,00),4.83],[Date.UTC(2017,0,31,12,00,00),4.66],[Date.UTC(2017,1,1,12,00,00),4.47],[Date.UTC(2017,1,2,12,00,00),4.77],[Date.UTC(2017,1,3,12,00,00),4.76],[Date.UTC(2017,1,4,12,00,00),4.63],[Date.UTC(2017,1,5,12,00,00),4.62],[Date.UTC(2017,1,6,12,00,00),4.73],[Date.UTC(2017,1,7,12,00,00),4.64],[Date.UTC(2017,1,8,12,00,00),4.55],[Date.UTC(2017,1,9,12,00,00),4.75],[Date.UTC(2017,1,10,12,00,00),4.94],[Date.UTC(2017,1,11,12,00,00),4.83],[Date.UTC(2017,1,12,12,00,00),5.02],[Date.UTC(2017,1,13,12,00,00),4.59],[Date.UTC(2017,1,14,12,00,00),4.71],[Date.UTC(2017,1,15,12,00,00),4.74],[Date.UTC(2017,1,16,12,00,00),4.83],[Date.UTC(2017,1,17,12,00,00),5.01],[Date.UTC(2017,1,18,12,00,00),4.59],[Date.UTC(2017,1,19,12,00,00),4.70],[Date.UTC(2017,1,20,12,00,00),4.66],[Date.UTC(2017,1,21,12,00,00),4.73],[Date.UTC(2017,1,22,12,00,00),4.70],[Date.UTC(2017,1,23,12,00,00),4.84],[Date.UTC(2017,1,24,12,00,00),5.09],[Date.UTC(2017,1,25,12,00,00),4.74],[Date.UTC(2017,1,26,12,00,00),4.64],[Date.UTC(2017,1,27,12,00,00),4.85],[Date.UTC(2017,1,28,12,00,00),4.67],[Date.UTC(2017,2,1,12,00,00),4.71],[Date.UTC(2017,2,2,12,00,00),4.93],[Date.UTC(2017,2,3,12,00,00),4.99],[Date.UTC(2017,2,4,12,00,00),4.96],[Date.UTC(2017,2,5,12,00,00),4.69],[Date.UTC(2017,2,6,12,00,00),4.72],[Date.UTC(2017,2,7,12,00,00),4.72],[Date.UTC(2017,2,8,12,00,00),4.80],[Date.UTC(2017,2,9,12,00,00),4.83],[Date.UTC(2017,2,10,12,00,00),4.89],[Date.UTC(2017,2,11,12,00,00),4.83],[Date.UTC(2017,2,12,12,00,00),4.81],[Date.UTC(2017,2,13,12,00,00),4.51],[Date.UTC(2017,2,14,12,00,00),4.77],[Date.UTC(2017,2,15,12,00,00),4.85],[Date.UTC(2017,2,16,12,00,00),4.98],[Date.UTC(2017,2,17,12,00,00),4.96],[Date.UTC(2017,2,18,12,00,00),5.07],[Date.UTC(2017,2,19,12,00,00),4.82],[Date.UTC(2017,2,20,12,00,00),4.78],[Date.UTC(2017,2,21,12,00,00),4.69],[Date.UTC(2017,2,22,12,00,00),4.56],[Date.UTC(2017,2,23,12,00,00),4.91],[Date.UTC(2017,2,24,12,00,00),4.93],[Date.UTC(2017,2,25,12,00,00),4.77],[Date.UTC(2017,2,26,12,00,00),4.77],[Date.UTC(2017,2,27,12,00,00),4.91],[Date.UTC(2017,2,28,12,00,00),4.94],[Date.UTC(2017,2,29,12,00,00),4.98],[Date.UTC(2017,2,30,12,00,00),5.06],[Date.UTC(2017,2,31,12,00,00),4.91],[Date.UTC(2017,3,1,12,00,00),4.69],[Date.UTC(2017,3,2,12,00,00),4.64],[Date.UTC(2017,3,3,12,00,00),4.54],[Date.UTC(2017,3,4,12,00,00),4.67],[Date.UTC(2017,3,5,12,00,00),4.84],[Date.UTC(2017,3,6,12,00,00),4.78],[Date.UTC(2017,3,7,12,00,00),4.71],[Date.UTC(2017,3,8,12,00,00),5.01],[Date.UTC(2017,3,9,12,00,00),4.93],[Date.UTC(2017,3,10,12,00,00),4.94],[Date.UTC(2017,3,11,12,00,00),4.85],[Date.UTC(2017,3,12,12,00,00),4.62],[Date.UTC(2017,3,13,12,00,00),5.02],[Date.UTC(2017,3,14,12,00,00),4.98],[Date.UTC(2017,3,15,12,00,00),5.16],[Date.UTC(2017,3,16,12,00,00),4.91],[Date.UTC(2017,3,17,12,00,00),4.56],[Date.UTC(2017,3,18,12,00,00),4.62],[Date.UTC(2017,3,19,12,00,00),4.78],[Date.UTC(2017,3,20,12,00,00),4.69],[Date.UTC(2017,3,21,12,00,00),4.80],[Date.UTC(2017,3,22,12,00,00),4.82],[Date.UTC(2017,3,23,12,00,00),4.72],[Date.UTC(2017,3,24,12,00,00),4.63],[Date.UTC(2017,3,25,12,00,00),4.86],[Date.UTC(2017,3,26,12,00,00),4.84],[Date.UTC(2017,3,27,12,00,00),4.60],[Date.UTC(2017,3,28,12,00,00),4.88],[Date.UTC(2017,3,29,12,00,00),4.69],[Date.UTC(2017,3,30,12,00,00),4.90],[Date.UTC(2017,4,1,12,00,00),4.58],[Date.UTC(2017,4,2,12,00,00),4.41],[Date.UTC(2017,4,3,12,00,00),4.56],[Date.UTC(2017,4,4,12,00,00),4.77],[Date.UTC(2017,4,5,12,00,00),4.68],[Date.UTC(2017,4,6,12,00,00),4.75],[Date.UTC(2017,4,7,12,00,00),4.79],[Date.UTC(2017,4,8,12,00,00),4.73],[Date.UTC(2017,4,9,12,00,00),4.48],[Date.UTC(2017,4,10,12,00,00),4.52],[Date.UTC(2017,4,11,12,00,00),4.79],[Date.UTC(2017,4,12,12,00,00),4.63],[Date.UTC(2017,4,13,12,00,00),4.51],[Date.UTC(2017,4,14,12,00,00),4.56],[Date.UTC(2017,4,15,12,00,00),4.57],[Date.UTC(2017,4,16,12,00,00),4.57],[Date.UTC(2017,4,17,12,00,00),4.68],[Date.UTC(2017,4,18,12,00,00),4.74],[Date.UTC(2017,4,19,12,00,00),4.97],[Date.UTC(2017,4,20,12,00,00),4.98],[Date.UTC(2017,4,21,12,00,00),4.83],[Date.UTC(2017,4,22,12,00,00),5.02],[Date.UTC(2017,4,23,12,00,00),4.78],[Date.UTC(2017,4,24,12,00,00),4.56],[Date.UTC(2017,4,25,12,00,00),4.68],[Date.UTC(2017,4,26,12,00,00),4.81],[Date.UTC(2017,4,27,12,00,00),4.94],[Date.UTC(2017,4,28,12,00,00),4.76],[Date.UTC(2017,4,29,12,00,00),4.68],[Date.UTC(2017,4,30,12,00,00),4.78],[Date.UTC(2017,4,31,12,00,00),4.85],[Date.UTC(2017,5,1,12,00,00),5.09],[Date.UTC(2017,5,2,12,00,00),5.17],[Date.UTC(2017,5,3,12,00,00),4.89],[Date.UTC(2017,5,4,12,00,00),5.02],[Date.UTC(2017,5,5,12,00,00),4.87],[Date.UTC(2017,5,6,12,00,00),4.71],[Date.UTC(2017,5,7,12,00,00),4.73],[Date.UTC(2017,5,8,12,00,00),4.84],[Date.UTC(2017,5,9,12,00,00),5.19],[Date.UTC(2017,5,10,12,00,00),4.83],[Date.UTC(2017,5,11,12,00,00),4.75],[Date.UTC(2017,5,12,12,00,00),4.61],[Date.UTC(2017,5,13,12,00,00),4.79],[Date.UTC(2017,5,14,12,00,00),4.71],[Date.UTC(2017,5,15,12,00,00),4.65],[Date.UTC(2017,5,16,12,00,00),4.75],[Date.UTC(2017,5,17,12,00,00),5.00],[Date.UTC(2017,5,18,12,00,00),4.67],[Date.UTC(2017,5,19,12,00,00),4.48],[Date.UTC(2017,5,20,12,00,00),4.46],[Date.UTC(2017,5,21,12,00,00),4.96],[Date.UTC(2017,5,22,12,00,00),5.00],[Date.UTC(2017,5,23,12,00,00),4.86],[Date.UTC(2017,5,24,12,00,00),4.66],[Date.UTC(2017,5,25,12,00,00),4.98],[Date.UTC(2017,5,26,12,00,00),4.62],[Date.UTC(2017,5,27,12,00,00),4.88],[Date.UTC(2017,5,28,12,00,00),4.95],[Date.UTC(2017,5,29,12,00,00),4.79],[Date.UTC(2017,5,30,12,00,00),4.90],[Date.UTC(2017,6,1,12,00,00),5.15],[Date.UTC(2017,6,2,12,00,00),4.74],[Date.UTC(2017,6,3,12,00,00),4.69],[Date.UTC(2017,6,4,12,00,00),4.80],[Date.UTC(2017,6,5,12,00,00),4.80],[Date.UTC(2017,6,6,12,00,00),4.54],[Date.UTC(2017,6,7,12,00,00),4.76],[Date.UTC(2017,6,8,12,00,00),4.72],[Date.UTC(2017,6,9,12,00,00),4.91],[Date.UTC(2017,6,10,12,00,00),4.74],[Date.UTC(2017,6,11,12,00,00),4.83],[Date.UTC(2017,6,12,12,00,00),4.67],[Date.UTC(2017,6,13,12,00,00),4.65],[Date.UTC(2017,6,14,12,00,00),4.93],[Date.UTC(2017,6,15,12,00,00),5.07],[Date.UTC(2017,6,16,12,00,00),4.94],[Date.UTC(2017,6,17,12,00,00),4.70],[Date.UTC(2017,6,18,12,00,00),4.64],[Date.UTC(2017,6,19,12,00,00),4.57],[Date.UTC(2017,6,20,12,00,00),4.76],[Date.UTC(2017,6,21,12,00,00),4.88],[Date.UTC(2017,6,22,12,00,00),4.80],[Date.UTC(2017,6,23,12,00,00),4.67],[Date.UTC(2017,6,24,12,00,00),4.74],[Date.UTC(2017,6,25,12,00,00),4.81],[Date.UTC(2017,6,26,12,00,00),4.86],[Date.UTC(2017,6,27,12,00,00),4.78],[Date.UTC(2017,6,28,12,00,00),4.80],[Date.UTC(2017,6,29,12,00,00),4.97],[Date.UTC(2017,6,30,12,00,00),4.80],[Date.UTC(2017,6,31,12,00,00),4.98],[Date.UTC(2017,7,1,12,00,00),4.63],[Date.UTC(2017,7,2,12,00,00),4.87],[Date.UTC(2017,7,3,12,00,00),4.97],[Date.UTC(2017,7,4,12,00,00),5.01],[Date.UTC(2017,7,5,12,00,00),4.89],[Date.UTC(2017,7,6,12,00,00),4.98],[Date.UTC(2017,7,7,12,00,00),4.72],[Date.UTC(2017,7,8,12,00,00),4.79],[Date.UTC(2017,7,9,12,00,00),4.99],[Date.UTC(2017,7,10,12,00,00),4.95],[Date.UTC(2017,7,11,12,00,00),4.82],[Date.UTC(2017,7,12,12,00,00),4.86],[Date.UTC(2017,7,13,12,00,00),5.02],[Date.UTC(2017,7,14,12,00,00),4.83],[Date.UTC(2017,7,15,12,00,00),4.99],[Date.UTC(2017,7,16,12,00,00),5.04],[Date.UTC(2017,7,17,12,00,00),4.93],[Date.UTC(2017,7,18,12,00,00),4.95],[Date.UTC(2017,7,19,12,00,00),4.94],[Date.UTC(2017,7,20,12,00,00),4.89],[Date.UTC(2017,7,21,12,00,00),4.69],[Date.UTC(2017,7,22,12,00,00),4.74],[Date.UTC(2017,7,23,12,00,00),4.95],[Date.UTC(2017,7,24,12,00,00),5.12],[Date.UTC(2017,7,25,12,00,00),4.97],[Date.UTC(2017,7,26,12,00,00),4.82],[Date.UTC(2017,7,27,12,00,00),5.15],[Date.UTC(2017,7,28,12,00,00),4.61],[Date.UTC(2017,7,29,12,00,00),4.59],[Date.UTC(2017,7,30,12,00,00),4.82],[Date.UTC(2017,7,31,12,00,00),4.82],[Date.UTC(2017,8,1,12,00,00),4.74],[Date.UTC(2017,8,2,12,00,00),4.98],[Date.UTC(2017,8,3,12,00,00),4.61],[Date.UTC(2017,8,4,12,00,00),4.62],[Date.UTC(2017,8,5,12,00,00),4.50],[Date.UTC(2017,8,6,12,00,00),4.55],[Date.UTC(2017,8,7,12,00,00),4.56],[Date.UTC(2017,8,8,12,00,00),4.76],[Date.UTC(2017,8,9,12,00,00),4.84],[Date.UTC(2017,8,10,12,00,00),4.89],[Date.UTC(2017,8,11,12,00,00),4.54],[Date.UTC(2017,8,12,12,00,00),4.60],[Date.UTC(2017,8,13,12,00,00),4.87],[Date.UTC(2017,8,14,12,00,00),4.74],[Date.UTC(2017,8,15,12,00,00),4.75],[Date.UTC(2017,8,16,12,00,00),4.70],[Date.UTC(2017,8,17,12,00,00),4.71],[Date.UTC(2017,8,18,12,00,00),4.66],[Date.UTC(2017,8,19,12,00,00),4.53],[Date.UTC(2017,8,20,12,00,00),4.80],[Date.UTC(2017,8,21,12,00,00),4.69],[Date.UTC(2017,8,22,12,00,00),4.67],[Date.UTC(2017,8,23,12,00,00),4.79],[Date.UTC(2017,8,24,12,00,00),4.72],[Date.UTC(2017,8,25,12,00,00),4.52],[Date.UTC(2017,8,26,12,00,00),4.71],[Date.UTC(2017,8,27,12,00,00),4.52],[Date.UTC(2017,8,28,12,00,00),4.46],[Date.UTC(2017,8,29,12,00,00),4.36],[Date.UTC(2017,8,30,12,00,00),4.83],[Date.UTC(2017,9,1,12,00,00),4.77],[Date.UTC(2017,9,2,12,00,00),4.38],[Date.UTC(2017,9,3,12,00,00),4.50],[Date.UTC(2017,9,4,12,00,00),4.62],[Date.UTC(2017,9,5,12,00,00),4.51],[Date.UTC(2017,9,6,12,00,00),4.87],[Date.UTC(2017,9,7,12,00,00),4.59],[Date.UTC(2017,9,8,12,00,00),4.78],[Date.UTC(2017,9,9,12,00,00),4.41],[Date.UTC(2017,9,10,12,00,00),4.47],[Date.UTC(2017,9,11,12,00,00),4.36],[Date.UTC(2017,9,12,12,00,00),4.06],[Date.UTC(2017,9,13,12,00,00),4.52],[Date.UTC(2017,9,14,12,00,00),4.62],[Date.UTC(2017,9,15,12,00,00),4.54],[Date.UTC(2017,9,16,12,00,00),4.52],[Date.UTC(2017,9,17,12,00,00),4.54],[Date.UTC(2017,9,18,12,00,00),4.32],[Date.UTC(2017,9,19,12,00,00),4.56],[Date.UTC(2017,9,20,12,00,00),4.82],[Date.UTC(2017,9,21,12,00,00),4.74],[Date.UTC(2017,9,22,12,00,00),4.77],[Date.UTC(2017,9,23,12,00,00),4.58],[Date.UTC(2017,9,24,12,00,00),4.31],[Date.UTC(2017,9,25,12,00,00),4.76],[Date.UTC(2017,9,26,12,00,00),4.89],[Date.UTC(2017,9,27,12,00,00),4.66],[Date.UTC(2017,9,28,12,00,00),5.09],[Date.UTC(2017,9,29,12,00,00),4.63],[Date.UTC(2017,9,30,12,00,00),4.54],[Date.UTC(2017,9,31,12,00,00),4.64],[Date.UTC(2017,10,1,12,00,00),4.64],[Date.UTC(2017,10,2,12,00,00),4.58],[Date.UTC(2017,10,3,12,00,00),4.90],[Date.UTC(2017,10,4,12,00,00),5.12],[Date.UTC(2017,10,5,12,00,00),4.68],[Date.UTC(2017,10,6,12,00,00),4.59],[Date.UTC(2017,10,7,12,00,00),4.77],[Date.UTC(2017,10,8,12,00,00),4.82],[Date.UTC(2017,10,9,12,00,00),4.95],[Date.UTC(2017,10,10,12,00,00),4.62],[Date.UTC(2017,10,11,12,00,00),4.84],[Date.UTC(2017,10,12,12,00,00),4.91],[Date.UTC(2017,10,13,12,00,00),4.55],[Date.UTC(2017,10,14,12,00,00),4.80],[Date.UTC(2017,10,15,12,00,00),4.87],[Date.UTC(2017,10,16,12,00,00),4.66],[Date.UTC(2017,10,17,12,00,00),4.77],[Date.UTC(2017,10,18,12,00,00),4.82] ]; var DataPersonal2= DataPersonal; var DataGlobal2= DataGlobal; var DataPersonalMonthly=[ {name:'No Reason', x:Date.UTC(2017,8,1,12,00,00),y:4.0000},{name:' ', x:Date.UTC(2017,8,30,12,00,00),y:4.0000},{name:'No Reason', x:Date.UTC(2017,9,1,12,00,00),y:2.7500},{name:' ', x:Date.UTC(2017,9,31,12,00,00),y:2.7500},{name:'No Reason', x:Date.UTC(2017,10,1,12,00,00),y:4.2500} ]; var DataGlobalMonthly= [[Date.UTC(2015,10,1,12,00,00),4.6826],[Date.UTC(2015,11,1,12,00,00),4.8118],[Date.UTC(2016,0,1,12,00,00),4.8183],[Date.UTC(2016,1,1,12,00,00),4.6794],[Date.UTC(2016,2,1,12,00,00),4.5889],[Date.UTC(2016,3,1,12,00,00),4.7269],[Date.UTC(2016,4,1,12,00,00),4.7790],[Date.UTC(2016,5,1,12,00,00),4.9126],[Date.UTC(2016,6,1,12,00,00),4.9469],[Date.UTC(2016,7,1,12,00,00),4.8744],[Date.UTC(2016,8,1,12,00,00),4.7875],[Date.UTC(2016,9,1,12,00,00),4.8296],[Date.UTC(2016,10,1,12,00,00),4.6460],[Date.UTC(2016,11,1,12,00,00),4.6574],[Date.UTC(2017,0,1,12,00,00),4.7156],[Date.UTC(2017,1,1,12,00,00),4.7444],[Date.UTC(2017,2,1,12,00,00),4.8359],[Date.UTC(2017,3,1,12,00,00),4.7850],[Date.UTC(2017,4,1,12,00,00),4.7053],[Date.UTC(2017,5,1,12,00,00),4.8223],[Date.UTC(2017,6,1,12,00,00),4.7907],[Date.UTC(2017,7,1,12,00,00),4.8787],[Date.UTC(2017,8,1,12,00,00),4.6663],[Date.UTC(2017,9,1,12,00,00),4.5836],[Date.UTC(2017,10,1,12,00,00),4.7677] ]; var masterChart, detailChart; var chart; function ShowGraph() { //y axis auto scale var yMin = null; var yMax = null; if(document.getElementById('SelectLimits').options[document.getElementById('SelectLimits').selectedIndex].value=='fixed') { yMin=0; yMax=10; } // create the master chart function createMaster(TimeScale) { if(TimeScale=='monthly') { DataPersonal = DataPersonalMonthly; DataGlobal = DataGlobalMonthly; startDateGlobalYYYY = 2016; startDateGlobalM = 10; startDateGlobalD = 18; } else { DataPersonal = DataPersonal2; DataGlobal = DataGlobal2; startDateGlobalYYYY = 2017; startDateGlobalM = 9; startDateGlobalD = 18; } masterChart && masterChart.destroy(); masterChart = null; masterChart = new Highcharts.Chart({ chart: { renderTo: 'master-container', reflow: false, borderWidth: 0, backgroundColor: null, marginLeft: 0, marginRight: 0, zoomType: 'x', events: { // listen to the selection event on the master chart to update the // extremes of the detail chart selection: function(event) { var extremesObject = event.xAxis[0], min = extremesObject.min, max = extremesObject.max, //detailData = [], xAxis = this.xAxis[0]; // move the plot bands to reflect the new detail span xAxis.removePlotBand('mask-before'); xAxis.addPlotBand({ id: 'mask-before', from: Date.UTC(1900, 11, 31), //if selecting a band, highlight above the band to massively in past to: min, color: 'rgba(0, 0, 0, 0.2)' }); xAxis.removePlotBand('mask-after'); xAxis.addPlotBand({ id: 'mask-after', from: max, to: Date.UTC(2199, 11, 31), //if selecting a band, highlight above the band to massively in future color: 'rgba(0, 0, 0, 0.2)' }); detailChart.xAxis[0].setExtremes(min, max, true, false); return false; } } }, title: { text: null }, xAxis: { type: 'datetime', showLastTickLabel: true, maxZoom: 14,// * 24 * 3600000, // 1 days //JG was 14 plotBands: [{ id: 'mask-before', from: Date.UTC(1900, 5, 1), //start highlight for the master JG to: Date.UTC(startDateGlobalYYYY,startDateGlobalM, startDateGlobalD), //end highlight for the master JG color: 'rgba(0, 0, 0, 0.2)' }], title: { text: null } }, yAxis: { gridLineWidth: 0, labels: { enabled: false }, title: { text: null }, min:0, max:10, showFirstLabel: false }, tooltip: { formatter: function() { return false; } }, legend: { enabled: false }, credits: { enabled: false }, plotOptions: { series: { fillColor: { linearGradient: [0, 0, 0, 70], stops: [ [0, '#AFD246'], [1, '#AFD246'] ] }, //negative red threshold:5, negativeFillColor:'rgba(249,122,122, 0.7)', //end negative red lineWidth: 1, marker: { enabled: false }, shadow: false, states: { hover: { lineWidth: 1 } }, enableMouseTracking: false } }, series: [{ type: 'area', name: '', pointInterval: 24 * 3600 * 1000, pointStart: Date.UTC(startDateGlobalMasterYYYY, startDateGlobalMasterM, startDateGlobalMasterD), //JG data: DataPersonal }, { name: '', data: DataGlobal }], exporting: { enabled: false } }, function(masterChart) { createDetail(masterChart); }); } // create the detail chart function createDetail(masterChart) { // prepare the detail chart var detailData = [], detailStart = Date.UTC(startDateGlobalYYYY,startDateGlobalM , startDateGlobalD); //when to start the detail JG masterChart.xAxis[0].removePlotBand('mask-before'); masterChart.xAxis[0].addPlotBand({ id: 'mask-before', from: Date.UTC(1900, 11, 31), //if selecting a band, highlight above the band to massively in past to: detailStart, color: 'rgba(0, 0, 0, 0.2)' }); jQuery.each(masterChart.series[0].data, function(i, point) { if (point.x >= detailStart) { detailData.push(point.y); } }); detailChart && detailChart.destroy(); detailChart = null; // create a detail chart referenced by a global variable detailChart = new Highcharts.Chart({ chart: { marginBottom: 150, renderTo: 'detail-container', reflow: false, marginLeft: 30, marginRight: 00, style: { position: 'absolute' }, animation: { easing: 'easeOutBounce' }, }, credits: { enabled: false }, title: { text: ' ' }, subtitle: { text: ' ' }, xAxis: { type: 'datetime', gridLineWidth: 1, min:detailStart, tickInterval: 24 * 3600 * 1000, labels: { rotation: -90,x:13 }, plotBands: [ { from: Date.UTC(2015, 9, 31), to: Date.UTC(2015, 9, 32), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2015, 10, 1), to: Date.UTC(2015, 10, 2), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2015, 10, 7), to: Date.UTC(2015, 10, 8), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2015, 10, 8), to: Date.UTC(2015, 10, 9), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2015, 10, 14), to: Date.UTC(2015, 10, 15), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2015, 10, 15), to: Date.UTC(2015, 10, 16), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2015, 10, 21), to: Date.UTC(2015, 10, 22), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2015, 10, 22), to: Date.UTC(2015, 10, 23), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2015, 10, 28), to: Date.UTC(2015, 10, 29), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2015, 10, 29), to: Date.UTC(2015, 10, 30), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2015, 11, 5), to: Date.UTC(2015, 11, 6), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2015, 11, 6), to: Date.UTC(2015, 11, 7), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2015, 11, 12), to: Date.UTC(2015, 11, 13), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2015, 11, 13), to: Date.UTC(2015, 11, 14), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2015, 11, 19), to: Date.UTC(2015, 11, 20), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2015, 11, 20), to: Date.UTC(2015, 11, 21), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2015, 11, 26), to: Date.UTC(2015, 11, 27), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2015, 11, 27), to: Date.UTC(2015, 11, 28), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 0, 2), to: Date.UTC(2016, 0, 3), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 0, 3), to: Date.UTC(2016, 0, 4), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 0, 9), to: Date.UTC(2016, 0, 10), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 0, 10), to: Date.UTC(2016, 0, 11), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 0, 16), to: Date.UTC(2016, 0, 17), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 0, 17), to: Date.UTC(2016, 0, 18), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 0, 23), to: Date.UTC(2016, 0, 24), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 0, 24), to: Date.UTC(2016, 0, 25), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 0, 30), to: Date.UTC(2016, 0, 31), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 0, 31), to: Date.UTC(2016, 0, 32), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 1, 6), to: Date.UTC(2016, 1, 7), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 1, 7), to: Date.UTC(2016, 1, 8), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 1, 13), to: Date.UTC(2016, 1, 14), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 1, 14), to: Date.UTC(2016, 1, 15), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 1, 20), to: Date.UTC(2016, 1, 21), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 1, 21), to: Date.UTC(2016, 1, 22), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 1, 27), to: Date.UTC(2016, 1, 28), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 1, 28), to: Date.UTC(2016, 1, 29), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 2, 5), to: Date.UTC(2016, 2, 6), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 2, 6), to: Date.UTC(2016, 2, 7), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 2, 12), to: Date.UTC(2016, 2, 13), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 2, 13), to: Date.UTC(2016, 2, 14), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 2, 19), to: Date.UTC(2016, 2, 20), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 2, 20), to: Date.UTC(2016, 2, 21), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 2, 26), to: Date.UTC(2016, 2, 27), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 2, 27), to: Date.UTC(2016, 2, 28), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 3, 2), to: Date.UTC(2016, 3, 3), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 3, 3), to: Date.UTC(2016, 3, 4), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 3, 9), to: Date.UTC(2016, 3, 10), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 3, 10), to: Date.UTC(2016, 3, 11), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 3, 16), to: Date.UTC(2016, 3, 17), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 3, 17), to: Date.UTC(2016, 3, 18), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 3, 23), to: Date.UTC(2016, 3, 24), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 3, 24), to: Date.UTC(2016, 3, 25), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 3, 30), to: Date.UTC(2016, 3, 31), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 4, 1), to: Date.UTC(2016, 4, 2), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 4, 7), to: Date.UTC(2016, 4, 8), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 4, 8), to: Date.UTC(2016, 4, 9), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 4, 14), to: Date.UTC(2016, 4, 15), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 4, 15), to: Date.UTC(2016, 4, 16), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 4, 21), to: Date.UTC(2016, 4, 22), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 4, 22), to: Date.UTC(2016, 4, 23), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 4, 28), to: Date.UTC(2016, 4, 29), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 4, 29), to: Date.UTC(2016, 4, 30), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 5, 4), to: Date.UTC(2016, 5, 5), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 5, 5), to: Date.UTC(2016, 5, 6), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 5, 11), to: Date.UTC(2016, 5, 12), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 5, 12), to: Date.UTC(2016, 5, 13), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 5, 18), to: Date.UTC(2016, 5, 19), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 5, 19), to: Date.UTC(2016, 5, 20), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 5, 25), to: Date.UTC(2016, 5, 26), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 5, 26), to: Date.UTC(2016, 5, 27), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 6, 2), to: Date.UTC(2016, 6, 3), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 6, 3), to: Date.UTC(2016, 6, 4), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 6, 9), to: Date.UTC(2016, 6, 10), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 6, 10), to: Date.UTC(2016, 6, 11), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 6, 16), to: Date.UTC(2016, 6, 17), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 6, 17), to: Date.UTC(2016, 6, 18), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 6, 23), to: Date.UTC(2016, 6, 24), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 6, 24), to: Date.UTC(2016, 6, 25), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 6, 30), to: Date.UTC(2016, 6, 31), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 6, 31), to: Date.UTC(2016, 6, 32), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 7, 6), to: Date.UTC(2016, 7, 7), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 7, 7), to: Date.UTC(2016, 7, 8), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 7, 13), to: Date.UTC(2016, 7, 14), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 7, 14), to: Date.UTC(2016, 7, 15), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 7, 20), to: Date.UTC(2016, 7, 21), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 7, 21), to: Date.UTC(2016, 7, 22), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 7, 27), to: Date.UTC(2016, 7, 28), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 7, 28), to: Date.UTC(2016, 7, 29), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 8, 3), to: Date.UTC(2016, 8, 4), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 8, 4), to: Date.UTC(2016, 8, 5), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 8, 10), to: Date.UTC(2016, 8, 11), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 8, 11), to: Date.UTC(2016, 8, 12), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 8, 17), to: Date.UTC(2016, 8, 18), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 8, 18), to: Date.UTC(2016, 8, 19), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 8, 24), to: Date.UTC(2016, 8, 25), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 8, 25), to: Date.UTC(2016, 8, 26), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 9, 1), to: Date.UTC(2016, 9, 2), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 9, 2), to: Date.UTC(2016, 9, 3), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 9, 8), to: Date.UTC(2016, 9, 9), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 9, 9), to: Date.UTC(2016, 9, 10), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 9, 15), to: Date.UTC(2016, 9, 16), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 9, 16), to: Date.UTC(2016, 9, 17), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 9, 22), to: Date.UTC(2016, 9, 23), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 9, 23), to: Date.UTC(2016, 9, 24), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 9, 29), to: Date.UTC(2016, 9, 30), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 9, 30), to: Date.UTC(2016, 9, 31), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 10, 5), to: Date.UTC(2016, 10, 6), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 10, 6), to: Date.UTC(2016, 10, 7), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 10, 12), to: Date.UTC(2016, 10, 13), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 10, 13), to: Date.UTC(2016, 10, 14), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 10, 19), to: Date.UTC(2016, 10, 20), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 10, 20), to: Date.UTC(2016, 10, 21), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 10, 26), to: Date.UTC(2016, 10, 27), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 10, 27), to: Date.UTC(2016, 10, 28), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 11, 3), to: Date.UTC(2016, 11, 4), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 11, 4), to: Date.UTC(2016, 11, 5), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 11, 10), to: Date.UTC(2016, 11, 11), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 11, 11), to: Date.UTC(2016, 11, 12), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 11, 17), to: Date.UTC(2016, 11, 18), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 11, 18), to: Date.UTC(2016, 11, 19), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 11, 24), to: Date.UTC(2016, 11, 25), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 11, 25), to: Date.UTC(2016, 11, 26), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2016, 11, 31), to: Date.UTC(2016, 11, 32), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 0, 1), to: Date.UTC(2017, 0, 2), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 0, 7), to: Date.UTC(2017, 0, 8), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 0, 8), to: Date.UTC(2017, 0, 9), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 0, 14), to: Date.UTC(2017, 0, 15), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 0, 15), to: Date.UTC(2017, 0, 16), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 0, 21), to: Date.UTC(2017, 0, 22), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 0, 22), to: Date.UTC(2017, 0, 23), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 0, 28), to: Date.UTC(2017, 0, 29), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 0, 29), to: Date.UTC(2017, 0, 30), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 1, 4), to: Date.UTC(2017, 1, 5), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 1, 5), to: Date.UTC(2017, 1, 6), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 1, 11), to: Date.UTC(2017, 1, 12), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 1, 12), to: Date.UTC(2017, 1, 13), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 1, 18), to: Date.UTC(2017, 1, 19), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 1, 19), to: Date.UTC(2017, 1, 20), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 1, 25), to: Date.UTC(2017, 1, 26), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 1, 26), to: Date.UTC(2017, 1, 27), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 2, 4), to: Date.UTC(2017, 2, 5), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 2, 5), to: Date.UTC(2017, 2, 6), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 2, 11), to: Date.UTC(2017, 2, 12), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 2, 12), to: Date.UTC(2017, 2, 13), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 2, 18), to: Date.UTC(2017, 2, 19), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 2, 19), to: Date.UTC(2017, 2, 20), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 2, 25), to: Date.UTC(2017, 2, 26), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 2, 26), to: Date.UTC(2017, 2, 27), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 3, 1), to: Date.UTC(2017, 3, 2), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 3, 2), to: Date.UTC(2017, 3, 3), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 3, 8), to: Date.UTC(2017, 3, 9), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 3, 9), to: Date.UTC(2017, 3, 10), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 3, 15), to: Date.UTC(2017, 3, 16), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 3, 16), to: Date.UTC(2017, 3, 17), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 3, 22), to: Date.UTC(2017, 3, 23), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 3, 23), to: Date.UTC(2017, 3, 24), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 3, 29), to: Date.UTC(2017, 3, 30), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 3, 30), to: Date.UTC(2017, 3, 31), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 4, 6), to: Date.UTC(2017, 4, 7), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 4, 7), to: Date.UTC(2017, 4, 8), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 4, 13), to: Date.UTC(2017, 4, 14), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 4, 14), to: Date.UTC(2017, 4, 15), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 4, 20), to: Date.UTC(2017, 4, 21), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 4, 21), to: Date.UTC(2017, 4, 22), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 4, 27), to: Date.UTC(2017, 4, 28), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 4, 28), to: Date.UTC(2017, 4, 29), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 5, 3), to: Date.UTC(2017, 5, 4), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 5, 4), to: Date.UTC(2017, 5, 5), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 5, 10), to: Date.UTC(2017, 5, 11), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 5, 11), to: Date.UTC(2017, 5, 12), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 5, 17), to: Date.UTC(2017, 5, 18), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 5, 18), to: Date.UTC(2017, 5, 19), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 5, 24), to: Date.UTC(2017, 5, 25), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 5, 25), to: Date.UTC(2017, 5, 26), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 6, 1), to: Date.UTC(2017, 6, 2), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 6, 2), to: Date.UTC(2017, 6, 3), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 6, 8), to: Date.UTC(2017, 6, 9), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 6, 9), to: Date.UTC(2017, 6, 10), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 6, 15), to: Date.UTC(2017, 6, 16), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 6, 16), to: Date.UTC(2017, 6, 17), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 6, 22), to: Date.UTC(2017, 6, 23), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 6, 23), to: Date.UTC(2017, 6, 24), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 6, 29), to: Date.UTC(2017, 6, 30), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 6, 30), to: Date.UTC(2017, 6, 31), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 7, 5), to: Date.UTC(2017, 7, 6), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 7, 6), to: Date.UTC(2017, 7, 7), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 7, 12), to: Date.UTC(2017, 7, 13), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 7, 13), to: Date.UTC(2017, 7, 14), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 7, 19), to: Date.UTC(2017, 7, 20), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 7, 20), to: Date.UTC(2017, 7, 21), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 7, 26), to: Date.UTC(2017, 7, 27), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 7, 27), to: Date.UTC(2017, 7, 28), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 8, 2), to: Date.UTC(2017, 8, 3), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 8, 3), to: Date.UTC(2017, 8, 4), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 8, 9), to: Date.UTC(2017, 8, 10), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 8, 10), to: Date.UTC(2017, 8, 11), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 8, 16), to: Date.UTC(2017, 8, 17), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 8, 17), to: Date.UTC(2017, 8, 18), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 8, 23), to: Date.UTC(2017, 8, 24), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 8, 24), to: Date.UTC(2017, 8, 25), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 8, 30), to: Date.UTC(2017, 8, 31), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 9, 1), to: Date.UTC(2017, 9, 2), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 9, 7), to: Date.UTC(2017, 9, 8), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 9, 8), to: Date.UTC(2017, 9, 9), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 9, 14), to: Date.UTC(2017, 9, 15), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 9, 15), to: Date.UTC(2017, 9, 16), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 9, 21), to: Date.UTC(2017, 9, 22), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 9, 22), to: Date.UTC(2017, 9, 23), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 9, 28), to: Date.UTC(2017, 9, 29), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 9, 29), to: Date.UTC(2017, 9, 30), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 10, 4), to: Date.UTC(2017, 10, 5), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 10, 5), to: Date.UTC(2017, 10, 6), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 10, 11), to: Date.UTC(2017, 10, 12), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 10, 12), to: Date.UTC(2017, 10, 13), color: 'rgba(0, 0, 0, .2)' }, { from: Date.UTC(2017, 10, 18), to: Date.UTC(2017, 10, 19), color: 'rgba(0, 0, 0, .2)' }, // { // visualize the weekend // from: Date.UTC(2011, 07, 12), // to: Date.UTC(2011, 07, 13), // color: 'rgba(255, 255, 255, .2)' // } // ,{ // visualize the weekend // from: Date.UTC(2011, 07, 05), // to: Date.UTC(2011, 07, 06), // color: 'rgba(255, 255, 255, .2)' // } // ,{ // visualize the weekend // from: Date.UTC(2011, 07, 19), // to: Date.UTC(2011, 07, 20), // color: 'rgba(255, 255, 255, .2)' // } ] }, yAxis: { title: null, maxZoom: 0.1, min:yMin, max:yMax, tickInterval: 1 , }, tooltip: { formatter: function() { //var pointers = this.points[0].point; if(this.point.name==null) { return 'World Mood: '+ Highcharts.numberFormat(this.point.y, 2) +'
'+ Highcharts.dateFormat('%A %B %e %Y ', this.x) + ':
'; } else { if(this.point.name!=' ') { return 'George S\'s Average Mood: '+ Highcharts.numberFormat(this.point.y, 2)+'
'+ Highcharts.dateFormat('%A %B %e %Y ', this.x) + '

'+ this.point.name + ''; } else { return 'George S\'s Average Mood: '+ Highcharts.numberFormat(this.point.y, 2)+'
'+ Highcharts.dateFormat('%A %B %e %Y ', this.x) ; } } }, shared: false }, legend: { enabled: true, align: 'right', verticalAlign: 'top' }, plotOptions: { series: { lineWidth: 4, //negative red threshold:5, negativeFillColor:'rgba(249,122,122, 0.7)', //end negative red marker: { enabled: true, radius: 5 , states: { hover: { enabled: true, radius: 7 } } } } }, series: [{ name: 'My Mood', type: 'area', fillOpacity: 0.3, pointStart: detailStart, pointInterval: 24 * 3600 * 1000, data: DataPersonal, color:'#99cc00' }, { name: 'Global Mood', data:DataGlobal, color:'#F39C12', marker: { enabled: false }, type: 'spline', pointStart: detailStart, //dashStyle: 'Dot' }], exporting: { enabled: true } }); } // make the container smaller and add a second container for the master chart var $container = $('#container') .css('position', 'relative'); $container.empty(); var $detailContainer = $('
') .css({ position: 'absolute', top: 0, height: 470, width: '100%' }) .appendTo($container); var $masterContainer = $('
') .css({ position: 'absolute', top: 370, height: 120, width: '100%' }) .appendTo($container); //get timescale hourly daily monthly var TimeScale = document.getElementById('SelectTimeScale').options[document.getElementById('SelectTimeScale').selectedIndex].value; // var TimeScale = document.getElementById('SelectTimeScale').selectedIndex; // create master and in its callback, create the detail chart createMaster(TimeScale); } //}); /////////////////// //FITBIT /** * Synchronize zooming through the setExtremes event handler. */ function syncExtremes(e) { var thisChart = this.chart; if (e.trigger !== 'syncExtremes') { // Prevent feedback loop Highcharts.each(Highcharts.charts, function (chart) { if (chart !== thisChart) { if (chart.xAxis[0].setExtremes) { // It is null while updating chart.xAxis[0].setExtremes(e.min, e.max, undefined, false, { trigger: 'syncExtremes' }); } } }); } } function showFitbitDays() { var dayLimit = document.getElementById('SelectFitbit').options[document.getElementById('SelectFitbit').selectedIndex].value; console.log(dayLimit); var dataSteps = [ ]; dataSteps=dataSteps.slice(dataSteps.length-dayLimit); var dataMoodPanda =[ ] dataMoodPanda=dataMoodPanda.slice(dataMoodPanda.length-dayLimit); var dataSleep=[ ]; dataSleep=dataSleep.slice(dataSleep.length-dayLimit); var dataCaloriesIn=[ ]; dataCaloriesIn=dataCaloriesIn.slice(dataCaloriesIn.length-dayLimit); var dataCaloriesOut=[ ]; dataCaloriesOut=dataCaloriesOut.slice(dataCaloriesOut.length-dayLimit); Highcharts.chart('containerFitbitSteps', { chart: { marginLeft: 55, marginRight: 55, zoomType: 'x', }, plotOptions: { series: { lineWidth: 4, //negative red //threshold:5, negativeColor:'rgba(249,122,122, 0.7)', //end negative red marker: { enabled: true, radius: 5 , states: { hover: { enabled: true, radius: 7 } } } } }, credits: { enabled: false }, title: { text: '' }, subtitle: { text: 'Source: Fitbit and MoodPanda' }, xAxis: [{ tickInterval: 24 * 3600 * 1000, type: 'datetime', dateTimeLabelFormats: { // don't display the dummy year month: '%e. %b', year: '%b' }, title: { text: '' }, crosshair: true, labels: { rotation: -90 }, }], yAxis: [{ min:0, labels: { format: '{value}k', style: { //color: Highcharts.getOptions().colors[0] } }, title: { text: 'Steps', style: { //color: Highcharts.getOptions().colors[0] } } }, { min:0, max:10, //minorTickInterval: 1, // //tickInterval:2, title: { text: 'Happiness', style: { color:'#99cc00', } }, labels: { format: '{value} ', style: { color:'#99cc00', } }, opposite: true }], tooltip: { shared: true }, series: [{ pointPadding: -0.2 , color:'#F39C12', name: 'Steps', type: 'column', data: dataSteps, tooltip: { valueSuffix: 'k steps' } }, { color:'#99cc00', name: 'Happiness', type: 'line', yAxis: 1, lineWidth: 4, data: dataMoodPanda, tooltip: { valueSuffix: '/10' } } ] }); Highcharts.chart('containerFitbitSleep', { chart: { zoomType: 'x', }, plotOptions: { series: { lineWidth: 4, //negative red //threshold:5, negativeColor:'rgba(249,122,122, 0.7)', //end negative red marker: { enabled: true, radius: 5 , states: { hover: { enabled: true, radius: 7 } } } } }, credits: { enabled: false }, title: { text: 'o' }, subtitle: { text: 'Source: Fitbit and MoodPanda' }, xAxis: [{ tickInterval: 24 * 3600 * 1000, type: 'datetime', dateTimeLabelFormats: { // don't display the dummy year month: '%e. %b', year: '%b' }, title: { text: '' }, crosshair: true, labels: { rotation: -90 }, }], yAxis: [{ min:0, labels: { format: '{value}', style: { //color: Highcharts.getOptions().colors[0] } }, title: { text: 'Hours sleep', style: { //color: Highcharts.getOptions().colors[0] } } }, { min:0, max:10, //minorTickInterval: 1, // //tickInterval:2, title: { text: 'Happiness', style: { color:'#99cc00', } }, labels: { format: '{value} ', style: { color:'#99cc00', } }, opposite: true }], tooltip: { shared: true }, series: [{ pointPadding: -0.2 , color:'#a1a3e7', name: 'Sleep', type: 'column', data: dataSleep, tooltip: { valueSuffix: ' hours' } }, { color:'#99cc00', name: 'Happiness', type: 'line', yAxis: 1, lineWidth: 4, data: dataMoodPanda, tooltip: { valueSuffix: '/10' } } ] }); Highcharts.chart('containerFitbitCaloriesOut', { chart: { zoomType: 'x', }, plotOptions: { series: { lineWidth: 4, //negative red //threshold:5, negativeColor:'rgba(249,122,122, 0.7)', //end negative red marker: { enabled: true, radius: 5 , states: { hover: { enabled: true, radius: 7 } } } } }, credits: { enabled: false }, title: { text: 'o' }, subtitle: { text: 'Source: Fitbit and MoodPanda' }, xAxis: [{ tickInterval: 24 * 3600 * 1000, type: 'datetime', dateTimeLabelFormats: { // don't display the dummy year month: '%e. %b', year: '%b' }, title: { text: '' }, crosshair: true, labels: { rotation: -90 }, }], yAxis: [{ min:0, labels: { format: '{value}k', style: { //color: Highcharts.getOptions().colors[0] } }, title: { text: 'Calories ', style: { //color: Highcharts.getOptions().colors[0] } } }, { min:0, max:10, //minorTickInterval: 1, // //tickInterval:2, title: { text: 'Happiness', style: { color:'#99cc00', } }, labels: { format: '{value} ', style: { color:'#99cc00', } }, opposite: true }], tooltip: { shared: true }, series: [ { pointPadding: 0 , color:'#F39C12', name: 'Calories burnt', type: 'column', data: dataCaloriesOut, tooltip: { valueSuffix: 'k calories' } }, { pointPadding: 0 , color:'#f97a7a', name: 'Calories consumed', type: 'column', data: dataCaloriesIn, tooltip: { valueSuffix: 'k calories' } }, { color:'#99cc00', name: 'Happiness', type: 'line', yAxis: 1, lineWidth: 4, data: dataMoodPanda, tooltip: { valueSuffix: '/10' } } ] }); } function showFitbitAdvanced() { Highcharts.chart('containerFitbitStepsGrouped', { chart: { marginLeft: 55, marginRight: 55, type: 'column' }, credits: { enabled: false }, title: { text: '' }, subtitle: { text: 'Source: Fitbit and MoodPanda' }, xAxis: { type: 'category', title:{text:'Daily steps'} }, yAxis: { min: 0, max:10, title: { text: 'Happiness', style: { color:'#99cc00', } } }, legend: { enabled: false }, tooltip: { pointFormat: 'Average happiness {point.y:.1f}' }, series: [{ name: 'Happiness', color: '#AFD246' , data: [ ], }] }); Highcharts.chart('containerFitbitCaloriesInGrouped', { chart: { marginLeft: 55, marginRight: 55, type: 'column' }, credits: { enabled: false }, title: { text: '' }, subtitle: { text: 'Source: Fitbit and MoodPanda' }, xAxis: { type: 'category', title:{text:'Daily calories consumed'} }, yAxis: { min: 0, max:10, title: { text: 'Happiness', style: { color:'#f97a7a', } } }, legend: { enabled: false }, tooltip: { pointFormat: 'Average happiness {point.y:.1f}' }, series: [{ name: 'Happiness', color: '#f97a7a' , data: [ ], }] }); Highcharts.chart('containerFitbitCaloriesOutGrouped', { chart: { marginLeft: 55, marginRight: 55, type: 'column' }, credits: { enabled: false }, title: { text: '' }, subtitle: { text: 'Source: Fitbit and MoodPanda' }, xAxis: { type: 'category', title:{text:'Daily calories burned'} }, yAxis: { min: 0, max:10, title: { text: 'Happiness', style: { color:'#F39C12', } } }, legend: { enabled: false }, tooltip: { pointFormat: 'Average happiness {point.y:.1f}' }, series: [{ name: 'Happiness', color: '#F39C12' , data: [ ], }] }); Highcharts.chart('containerFitbitSleepGrouped', { chart: { marginLeft: 55, marginRight: 55, type: 'column' }, credits: { enabled: false }, title: { text: '' }, subtitle: { text: 'Source: Fitbit and MoodPanda' }, xAxis: { type: 'category', title:{text:'Daily sleep hours'} }, yAxis: { min: 0, max:10, title: { text: 'Happiness', style: { color:'#a1a3e7', } } }, legend: { enabled: false }, tooltip: { pointFormat: 'Average happiness {point.y:.1f}' }, series: [{ name: 'Happiness', color: '#a1a3e7' , data: [ ], }] }); } /////////////////////// //HEATMAP //$(document).ready(function () { function showHeatmap() { chart = new Highcharts.Chart({ chart: { renderTo: 'containerHeatMap', type: 'heatmap', plotBackgroundColor: 'none', plotBorderWidth: 0, plotShadow: false }, title: { text: '' }, credits: { enabled: false }, subtitle: { text: '' }, exporting: { enabled: false }, xAxis: { categories: ['00', '01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23' ], title: 'Time (e.g 13:00)' }, yAxis: { categories: ['Sun', 'Sat', 'Fri', 'Thu', 'Wed', 'Tue', 'Mon','Sun'], title: null }, colorAxis: { min: 0, max:10, minColor: '#ff0000', maxColor:'#33ff00' }, legend: { align: 'right', layout: 'vertical', margin: 0, verticalAlign: 'top', y: 25, symbolHeight: 200 }, tooltip: { formatter: function () { return '' + this.series.yAxis.categories[this.point.y] + ' ' + this.series.xAxis.categories[this.point.x] + ':00 Average: ' + this.point.value; } }, series: [{ name: 'Avg Happiness', borderWidth: 1, data: [[2,1,2],[2,4,5],[3,2,2],[5,3,2],[6,4,2],[6,6,5],[7,1,5],[7,5,4],[7,6,0],[8,7,4],[9,3,2],[9,5,5],[9,6,1],[10,6,1],[10,7,4],[11,3,2],[11,4,2],[13,3,1],[13,4,1],[13,5,7],[13,6,3],[13,7,4],[14,2,5],[14,3,2],[15,1,5],[15,2,6],[15,5,3],[16,2,6],[16,5,3],[17,1,4],[17,2,2],[17,3,1],[17,4,4],[17,5,4],[17,6,3],[17,7,4],[18,1,2],[18,5,4],[18,7,3],[19,1,2],[19,3,0],[19,4,2],[19,6,6],[19,7,0],[20,1,0],[20,4,0],[20,6,6],[21,4,4],[21,5,5],[21,6,5],[21,7,3],[22,1,0],[22,2,6],[23,1,1],[23,7,0] ], dataLabels: { enabled: false, color: 'black', style: { textShadow: 'none', HcTextStroke: 'none' } } }] }); } //}); //END HEATMAP /////////////////////// function showAdvanced() { chart = new Highcharts.Chart({ chart: { renderTo: 'containerDonut', margin: [30, 0, 0, 0], plotBackgroundColor: 'none', plotBorderWidth: 0, plotShadow: false }, title: { text: '' }, credits: { enabled: false }, subtitle: { text: '' }, tooltip: { formatter: function() { return ''+ this.series.name +'
'+ this.point.name +': '+ this.y +' %'; } }, exporting: { enabled: false }, legend: { enabled: true, align: 'center', verticalAlign: 'top' }, series: [{ type: 'pie', name: 'Other People', size: '45%', innerSize: '20%', data: [ { name: 'Happy', y: 40.8, color: '#AFD246' }, { name: 'Ok', y:20.3, color: '#F39C12' }, { name: 'Unhappy', y: 38.9, color: '#f97a7a' }, ], dataLabels: { enabled: false }, showInLegend: true }, { type: 'pie', name: 'George S', innerSize: '45%', data: [ { name: 'Happy', y: 7.8, color: '#AFD246' }, { name: 'Ok', y:15.6, color: '#F39C12' }, { name: 'Unhappy', y: 76.6, color: '#f97a7a' }, ], dataLabels: { enabled: false }, showInLegend: false }] }); chart = new Highcharts.Chart({ chart: { renderTo: 'containerStacked', defaultSeriesType: 'area', }, title: { text: '' }, credits: { enabled: false }, subtitle: { text: '' }, xAxis: { categories: ['Mon', 'Tues', 'Wed', 'Thur', 'Fri', 'Sat', 'Sun'], tickmarkPlacement: 'on', title: { enabled: false } }, yAxis: { labels: { enabled: false }, title: { text: null }, }, legend: { enabled: true, align: 'center', verticalAlign: 'top' }, tooltip: { enabled: false }, plotOptions: { area: { stacking: 'percent', lineWidth: 2, } }, exporting: { enabled: false }, series: [{ name: 'Happy', data: [2, 1, 0, 0, 3, 0, 0], color:'#AFD246' }, { name: 'Ok', data: [3, 3, 1, 0, 2, 2, 1], color:'#F39C12' }, { name: 'Unhappy', data: [7, 5, 13, 8, 2, 14, 10], color:'#f97a7a' }] }); }