Merge pull request #64 from martinblanchette/transparent-as-default-background-color

Added a default transparent background color to the Echarts WebView.
This commit is contained in:
Arron Zhu 2017-12-08 16:42:08 +08:00 committed by GitHub
commit 533b572df6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -19,6 +19,7 @@ export default class App extends Component {
injectedJavaScript = {renderChart(this.props)} injectedJavaScript = {renderChart(this.props)}
style={{ style={{
height: this.props.height || 400, height: this.props.height || 400,
backgroundColor: this.props.backgroundColor || 'transparent'
}} }}
scalesPageToFit={false} scalesPageToFit={false}
source={require('./tpl.html')} source={require('./tpl.html')}