mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
Added jquery methods to ChartContainer to get world_map viz working in exploreV2 (#1443)
This commit is contained in:
parent
77b6e2cd2e
commit
5882c7e344
@ -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)),
|
||||
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user