refact: removed logs

This commit is contained in:
ysandler 2020-08-11 22:18:40 -05:00 committed by Joshua Shoemaker
parent 3e9d1f924f
commit 66459caf97

View File

@ -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} />