refact: removed logs
This commit is contained in:
parent
3e9d1f924f
commit
66459caf97
@ -22,7 +22,6 @@ class ChartViewer extends Component {
|
||||
}
|
||||
|
||||
saveChart = () => {
|
||||
console.log(this.chart.current)
|
||||
const base64OfChart = this.chart.current.chartInstance.toBase64Image()
|
||||
download(base64OfChart, this.focusChart.chart.label, 'image/png')
|
||||
}
|
||||
@ -40,8 +39,6 @@ class ChartViewer extends Component {
|
||||
const { chart } = this.state
|
||||
if (!chart) return
|
||||
|
||||
console.log(chart)
|
||||
|
||||
if (chart.type === 'bar') return <Bar data={chart[chart.type]} width={600} height={600} ref={this.chart} />
|
||||
if (chart.type === 'doughnut') return <Doughnut data={chart[chart.type]} width={600} height={600} ref={this.chart} />
|
||||
if (chart.type === 'line') return <Line data={chart[chart.type]} width={600} height={600} ref={this.chart} />
|
||||
|
Loading…
x
Reference in New Issue
Block a user