Skip to content

Commit

Permalink
Added jquery methods to ChartContainer to get world_map viz working i…
Browse files Browse the repository at this point in the history
…n exploreV2 (#1443)
  • Loading branch information
vera-liu authored Nov 3, 2016
1 parent 77b6e2c commit 5882c7e
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,18 @@ class ChartContainer extends React.Component {
$(this.state.selector).html(data);
},

css: () => {
css: (dim, size) => {
// dimension can be 'height'
// pixel string can be '300px'
// should call callback to adjust height of chart
$(this.state.selector).css(dim, size);
},
height: () => parseInt(this.props.height, 10) - 100,

show: () => { this.render(); },

get: (n) => ($(this.state.selector).get(n)),

find: (classname) => ($(this.state.selector).find(classname)),

},
Expand Down

0 comments on commit 5882c7e

Please sign in to comment.