king
2021-11-18 c98e45bfac25e9110ad0383faac54a54d98ea9d5
src/templates/sharecomponent/chartcomponent/index.jsx
@@ -17,7 +17,7 @@
  }
  state = {
    dict: (!localStorage.getItem('lang') || localStorage.getItem('lang') === 'zh-CN') ? zhCN : enUS,
    dict: sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS,
    visible: true
  }
@@ -420,6 +420,9 @@
        if (plot.label === 'true') {
          _chart.label('value')
        }
        if (plot.barSize || plot.correction) {
          _chart.size(plot.barSize || 35)
        }
      } else if (plot.adjust === 'stack') {
        let _chart = chart
          .interval()
@@ -430,6 +433,10 @@
  
        if (plot.label === 'true') {
          _chart.label('value')
        }
        if (plot.barSize || plot.correction) {
          _chart.size(plot.barSize || 35)
        }
      }
  
@@ -531,11 +538,6 @@
            type: 'overlap'
          }
          setting.offset = 0
          // setting.style = {
          //   textAlign: 'center',
          //   fontSize: 12,
          //   fill: '#535353'
          // }
        }
        _chart.label('percent', setting)
@@ -607,7 +609,7 @@
  render() {
    const { plot } = this.props
    console.log(plot)
    return (
      <div className="line-chart-edit-box" style={{minHeight: plot.height ? plot.height + 50 : 450}}>
        {plot.title ? <p className="chart-title">{plot.title}</p> : null}