Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
values={priceHistory.map((price, index) => ({
value: [index, price.close],
label: longDate(price.time),
}))}
/>) : null);
renderChart() {
const { orderBook } = this.props;
const { toSymbol } = this.props;
const config = {
chart: {
type: 'area',
},
title: {
text: orderBook ? longDate(orderBook.last_updated) : '',
},
credits: {
enabled: false,
},
plotOptions: {
area: {
marker: {
enabled: false,
symbol: 'circle',
radius: 2,
states: {
hover: {
enabled: true,
},
},
},