Skip to content

Commit

Permalink
Fix font override by labels and value labels fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
uiteoi committed Mar 16, 2012
1 parent 33402c0 commit d986306
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ico.js
Expand Up @@ -283,8 +283,7 @@ var Ico = {
fill : Ico.get_style( this.element, 'color' ) || '#666',
stroke : 'none'
};
Ico.extend( this.font, o || {} );
// this.graph.x.labels_font = this.graph.y.labels_font = this.font;
o && Ico.extend( this.font, o );
return this.font
},

Expand Down Expand Up @@ -951,7 +950,7 @@ var Ico = {
process_options: function( o, p ) {
var title = o.title;

Ico.extend( this.font = p.get_font(), o.font || {} );
Ico.extend( this.font = Ico.extend( {}, p.get_font() ), o.font || {} );
this.markers_attributes = { stroke: this.font.fill, 'stroke-width': 1 };
Ico.extend( this.markers_attributes, o.markers_attributes );
if ( title ) {
Expand Down

0 comments on commit d986306

Please sign in to comment.