Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
precision: 2,
formatter: (transactions) => `${transactions.toFixed(2)}%`
}
break;
case TimeIntervalType.DailyNonRewardTransactionsCount:
priceFormat = {
type: 'custom',
precision: 0,
formatter: (transactions) => `${transactions.toFixed(0)} TXs`
}
break;
}
const chartElement = this.refs.chartElement;
const chart = createChart(chartElement, { width: 1179, height: this.state.chartHeight });
const lineSeries = chart.addLineSeries();
lineSeries.applyOptions({
priceLineVisible: false,
priceLineWidth: 3,
priceLineColor: '#294dea',
priceLineStyle: 3,
baseLineColor: '#294dea',
priceFormat
});
this.setState({ chart, lineSeries });
return chart;
}