diff --git a/caravel/assets/javascripts/explorev2/components/ChartContainer.jsx b/caravel/assets/javascripts/explorev2/components/ChartContainer.jsx index a70b0e1928a51..83728e5457e2c 100644 --- a/caravel/assets/javascripts/explorev2/components/ChartContainer.jsx +++ b/caravel/assets/javascripts/explorev2/components/ChartContainer.jsx @@ -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)), },