Changeset 54
- Timestamp:
- 10/08/06 09:38:53 (2 years ago)
- Files:
-
- plotkit/trunk/PlotKit/Canvas.js (modified) (1 diff)
- plotkit/trunk/PlotKit/Layout.js (modified) (1 diff)
- plotkit/trunk/PlotKit/PlotKit_Packed.js (modified) (2 diffs)
- plotkit/trunk/doc/PlotKit.html (modified) (1 diff)
- plotkit/trunk/doc/PlotKit.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plotkit/trunk/PlotKit/Canvas.js
r38 r54 555 555 var connect = MochiKit.Signal.connect; 556 556 var bind = MochiKit.Base.bind; 557 MochiKit.Signal.registerSignals(this, ['onmouseover', 'onclick', 'onmouseout', 'onmousemove']);557 //MochiKit.Signal.registerSignals(this, ['onmouseover', 'onclick', 'onmouseout', 'onmousemove']); 558 558 //connect(this.element, 'onmouseover', bind(this.onmouseover, this)); 559 559 //connect(this.element, 'onmouseout', bind(this.onmouseout, this)); plotkit/trunk/PlotKit/Layout.js
r52 r54 361 361 else { 362 362 // readjust xscale to fix with bar charts 363 this.xscale = (1.0 - xdelta/this.xrange)/this.xrange; 363 if (this.xrange == 1) { 364 this.xscale = 0.5; 365 } 366 else if (this.xrange == 2) { 367 this.xscale = 1/3.0; 368 } 369 else { 370 this.xscale = (1.0 - xdelta/this.xrange)/this.xrange; 371 } 364 372 barWidth = xdelta * this.xscale * this.options.barWidthFillFraction; 365 373 barWidthForSet = barWidth / setCount; plotkit/trunk/PlotKit/PlotKit_Packed.js
r52 r54 485 485 _92=(1-this.options.barWidthFillFraction)/2; 486 486 }else{ 487 if(this.xrange==1){ 488 this.xscale=0.5; 489 }else{ 490 if(this.xrange==2){ 491 this.xscale=1/3; 492 }else{ 487 493 this.xscale=(1-_88/this.xrange)/this.xrange; 494 } 495 } 488 496 _90=_88*this.xscale*this.options.barWidthFillFraction; 489 497 _91=_90/_87; … … 1164 1172 var _221=MochiKit.Signal.connect; 1165 1173 var bind=MochiKit.Base.bind; 1166 MochiKit.Signal.registerSignals(this,["onmouseover","onclick","onmouseout","onmousemove"]);1167 1174 _221(this.element,"onclick",bind(this.onclick,this)); 1168 1175 }; plotkit/trunk/doc/PlotKit.html
r53 r54 185 185 Fixed xTicks drawing that exceed the bounds of the chart (thanks to 186 186 Cliff) 187 </li> 188 189 <li> 190 Fixed barchart drawing with only 2 values (thanks to HubrisSonic) 187 191 </li> 188 192 </ul> plotkit/trunk/doc/PlotKit.txt
r53 r54 86 86 * Fixed xTicks drawing that exceed the bounds of the chart (thanks to 87 87 Cliff) 88 * Fixed barchart drawing with only 2 values (thanks to HubrisSonic) 88 89 89 90 ###PlotKit 0.8




Atom Feed for the Blog Entries