Changeset 62

Show
Ignore:
Timestamp:
31/08/06 09:56:42 (2 years ago)
Author:
al
Message:

Allow DOM elements for labels in pie charts, just like line and bar charts. Thanks to cho45

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plotkit/trunk/PlotKit/Layout.js

    r57 r62  
    678678                if (isNil(label)) 
    679679                    label = tick.v.toString(); 
    680                                 label += " (" + formatter(slice.fraction) + ")"
     680                                label = SPAN(null, label, " (" + formatter(slice.fraction) + ")")
    681681                                this.xticks.push([tick.v, label]); 
    682682                        } 
  • plotkit/trunk/PlotKit/PlotKit_Packed.js

    r61 r62  
    729729_151=tick.v.toString(); 
    730730} 
    731 _151+=" ("+_148(_150.fraction)+")"
     731_151=SPAN(null,_151," ("+_148(_150.fraction)+")")
    732732this.xticks.push([tick.v,_151]); 
    733733}