Sunday 15 April 2012

javascript - Wrong date in tooltip in charts with daylight savings time in highcharts -



javascript - Wrong date in tooltip in charts with daylight savings time in highcharts -

i have chart dates 1 of days daylight saving day. days after day have there date in tooltip shifted minus 1 day.

$(function () { highcharts.setoptions({ global: { useutc: false } }); $('#container').highcharts({ xaxis: { type: 'datetime' }, chart: { type: "column" }, plotoptions: { series: { stacking: "normal" } }, series: [{ data: [{ y: 10 }, { y: 20 }, { y: 10 }], pointinterval: 86400000, pointstart: 1414274400000 //sun oct 26 2014 00:00:00 gmt+0200 (cest) }] }); });

example: http://jsfiddle.net/bmmg8jnx/

what date saving day?

do mean daylight savings time?

that create sense, if sending time stamp of midnight, , loses hour, read previous day. can work around sending stamp later in morning, or @ noon, or whatever point not @ start/end of day, , hence won't affected shifts of 1 hour.

{{edit reflect comments:

1) tooltip reflect value of x axis. notice point not on tickmark. tickmarks not placed match info points, placed @ set intervals. info behind interval hour, , hence tooltip reflecting date of info point.

2) offset of nature doesn't impact anything. unless info points representing happens every night @ midnight, case in info i've seen or used.

if info sending off hour, it's going off hour, , if hr pushes time previous day, date going off day. chart handling correctly based on have provided it.

share|improve answer edited nov 5 '14 @ 20:36 answered nov 5 '14 @ 19:56 jlbriggs 9,08121130      yes, daylight savings time. adding offset not option. tooltip should reflect value of xaxis. – andreas köberle nov 5 '14 @ 20:12      1) tooltip reflect value of x axis. notice point not on tickmark. tickmarks not placed match info points, placed @ set intervals. info behind interval hour, , hence tooltip reflecting date of info point. 2) offset of nature doesn't impact anything. unless info points representing happens every night @ midnight, case in info i've seen or used. – jlbriggs nov 5 '14 @ 20:35 add comment |  your answer stackexchange.ifusing("editor", function () { stackexchange.using("externaleditor", function () { stackexchange.using("snippets", function () { stackexchange.snippets.init(); }); }); }, "code-snippets"); stackexchange.ready(function() { inittagrenderer("".split(" "), "".split(" ")); stackexchange.using("externaleditor", function() { // have fire editor after snippets, if snippets enabled if (stackexchange.options.snippets.enabled) { stackexchange.using("snippets", function() { createeditor(); }); } else { createeditor(); } }); function createeditor() { prepareeditor({ heartbeattype: 'answer', convertimagestolinks: true, reputationtopostimages: 10, bindnavprevention: true, postfix: "", ondemand: true, discardselector: ".discard-answer" ,immediatelyshowmarkdownhelp:true }); } });   draft saved draft discarded sign or log in stackexchange.ready(function () { stackexchange.helpers.onclickdraftsave('#login-link'); });

sign using google

sign using facebook

sign using email , password

post guest name email stackexchange.ready( function () { stackexchange.openid.initpostlogin('.new-post-login', 'http%3a%2f%2fstackoverflow.com%2fquestions%2f26735520%2fwrong-date-in-tooltip-in-charts-with-daylight-savings-time-in-highcharts%23new-answer', 'question_page'); } ); post guest name email discard

posting answer, agree privacy policy , terms of service.

not reply you're looking for? browse other questions tagged javascript date highcharts or ask own question.

asked

1 year ago

viewed

185 times

active

1 year ago

var ados = ados || {}; ados.run = ados.run || []; ados.run.push(function () { ados_add_placement(22,8277,"adzerk1865877210",[5,17,2221]).setzone(45); }); ;"use strict";var _extends=object.assign||function(n){for(var i,r,t=1;t0&&(n.tags=i.join(";"))),n}function k(n){return n.innerhtml.replace(/\s+$/g,"")}function st(n,t,i,u){var c=r(n);if(c===null)return function(){};var h=null,e=null,l=f(),a=function a(){k(c)?(s(h),u(!1,f()-l)):e=o(a,t)};return e=o(a,t),i&&(h=o(function(){s(e);u(!0,f()-l)},i)),function(){s(e);s(h)}}function ht(){var t="careers1",i="careers3",u=e.hash.indexof("large=1")!==-1||!g()||r("#careersadsdoublehigh"),f=u?1:2,n=[f+"=hireme"];return r("#"+t)&&n.push("5="+t),r("#"+i)&&n.push("6="+i),n.join("&")}function d(n,i){var r=ot(_extends({},nt,{zones:ht()})),u,e;n&&(r.azt=1);i&&(r.lw=i);typeof t.innerwidth=="number"&&(r.bw=t.innerwidth);u=["zones","ip","ac","eng","prov","tags","theme","at","remote","seed","lw","azt","sysadmin","bw","nocpm","jobview","cpview"];e=l+"?"+ft(r,u);c=f();p(e)}function ct(n){function h(){u.foreach(w);e.foreach(function(n){lt(n,i[n],s,o)});typeof t.clc_after_load=="function"&&t.clc_after_load()}var i=n.cr,r=n.h,u=n.st,e=object.keys(i),o=c?f()-c:0,s="//"+r+"/ct";h()}function lt(n,t,i,f){var h=t.cl,c=t.cn,o=t.an,l=t.utm,s=(h||[]).join(" "),e=r("#"+n);e&&(s&&(e.classname+=" "+s),e.innerhtml=c.replace("&pt=0","&pt="+(f||0)),e.onmousedown=function(n){for(var t=n.target,r,f,s;t.tagname!=="a"&&t!==e;)t=t.parentnode;t!==e&&(r=[],o&&r.push("an="+o),f=[].filter.call(t.attributes,function(n){return/^data-/.test(n.name)}),f.length>0&&f.foreach(function(n){var t=n.name.replace(/^data-/,"");r.push(u(t)+"="+u(n.value))}),r.push("utm="+u(rt+l)),s="",r.length>0&&(s="?"+r.join("&")),t.href=i+s)})}function g(){return y(h).length>0}function at(n){var t=i.createelement("a");return t.href=n,t.host}function vt(){var t,n;g()?(n=st(h,20,t,d),o(function(){var u=r(h),t;k(u)||(u.parentnode.removechild(u),typeof n=="function"&&n(),t=i.createelement("img"),t.src="//"+at(l)+"/to.gif",t.style.display="none",i.body.appendchild(t))},2e3)):d()}var l=n.u,a=n.o,nt=a===undefined?{}:a,t=window,e=t.location,u=t.encodeuricomponent,v=t.decodeuricomponent,i=t.document,tt=i.body,it=i.getelementsbytagname("head")[0],o=t.settimeout,s=t.cleartimeout,rt="&utm_source="+e.hostname+"&utm_medium=ad&utm_campaign=",h="#sidebar [id^=adzerk].everyonelovesstackoverflow",c=0;t.clc={init:ct,load:vt,ls:p,as:w,tags:b}}).call(null, {"u":"//clc.stackoverflow.com/p.js"});"use strict";var allowedhosts=["stackoverflow.com","serverfault.com"];(allowedhosts[0]==="*"||allowedhosts.indexof(location.hostname)!==-1)&&window.clc.load(); related 1 highcharts area chart lazy_chart ruby gem 2 highcharts - wrong date in tooltip 0 highcharts tooltips flickering on ie8 0 strange tooltip behavior long series in highcharts 0 convert date miliseconds highchart date 1 highchart tooltip issue 0 xaxis highcharts info loading issue 0 highcharts: problem using grouping date in chart 0 high charts – how show axis time 0 dynamic date in highcharts tooltip hot network questions how identify key given chord progression making acronym martian, radiation shielding did marty wipe children existence? tikz: missing parts of flow chart purpose of loki's conquest of earth? how english language , french armies invited kingdom of belgium in 1914? changing way of how 3-way handshake (tcp) works on linux i'm white hat , develop own viruses. should study when scanners executable safe? can square roots come when not distances? can utilize flavored liqueur create vanilla extract? succinct way big switch statement in java ac sorcerer's draconic resistance combine monk's unarmoured defence? idiom or proverb implies " evidence contradicts claim" ram upgrade in laserjet printer improve performance? implementation of naive bayes okay utilize public method within own class? function getting value function considered pure? linux equivalent powershell's "one-to-many" remoting in how many of integer numbers between 0 , 10,000 digit 3 appear left of 4 mechanisms prevent biased negative reviews? can alter field formula text force.com ide? why egrep [ww][oo][rr][dd] faster grep -i word? writing sequence terms more hot questions

javascript date highcharts

No comments:

Post a Comment