From croberts at fedoraproject.org Wed Aug 19 23:57:29 2015 Content-Type: multipart/mixed; boundary="===============7838468918154316798==" MIME-Version: 1.0 From: croberts at fedoraproject.org To: cumin-developers at lists.fedorahosted.org Subject: r5164 - branches/noflash/cumin/resources Date: Tue, 06 Dec 2011 20:24:24 +0000 Message-ID: <20111206202425.01CFF1200F6@lists.fedorahosted.org> --===============7838468918154316798== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: croberts Date: 2011-12-06 20:24:23 +0000 (Tue, 06 Dec 2011) New Revision: 5164 Modified: branches/noflash/cumin/resources/app.js Log: Cleaning up the display of the charts by 1) Changing the date formatting on= the tooltips (shorter date/time display) and 2) Tweaking some of the optio= ns on cursor to remove the cursor tracking "legend" and providing explicit = values for some of the visual elements on the moused-over data points. Modified: branches/noflash/cumin/resources/app.js =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/noflash/cumin/resources/app.js 2011-12-06 18:13:50 UTC (rev 51= 63) +++ branches/noflash/cumin/resources/app.js 2011-12-06 20:24:23 UTC (rev 51= 64) @@ -639,13 +639,22 @@ }, }, highlighter: { + sizeAdjust: 6, + lineWidthAdjust: 2.5, + showTooltip:true, + fadeTooltip:true, + tooltipOffset: 2, + tooltipSeparator: ",", tooltipaxes:'xy', useAxesFormatters:true, show: true, formatString:'
Time:%s
Value:%s
' }, - cursor:{show:true, + cursor:{ + style:"pointer", + show:true, zoom:true, + showTooltip:false, // this is for the tooltip that gives the location o= f the cursor whether on a point or not looseZoom:true, showCursorLegend:false, constrainZoomTo: 'x' @@ -687,10 +696,11 @@ // when called to render a popup tooltip, the caller is named "g".= ..not sure why. Whattup, g? if(arguments.callee.caller.getName() =3D=3D 'g') { var tempTime =3D allCharts['chartNowTime'].clone(); + timeFormat =3D "%b %e, %T"; if(format.search(/min/) > -1) { - return (tempTime.increment('minute', val)); + return (tempTime.increment('minute', val).format(timeFormat)); } else { - return (tempTime.increment('hour', val)); + return (tempTime.increment('hour', val).format(timeFormat)); } } return ($j.jqplot.sprintf(format, val)).replace(/-/,""); // hack t= o prevent negative axis labels, which we don't have --===============7838468918154316798==--