Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
renderChart() {
const { orderBook } = this.props;
const { toSymbol } = this.props;
const config = {
chart: {
type: 'area',
},
title: {
text: orderBook ? longDate(orderBook.lastUpdated) : '',
},
credits: {
enabled: false,
},
plotOptions: {
area: {
marker: {
enabled: false,
symbol: 'circle',
radius: 2,
states: {
hover: {
enabled: true,
},
},
},
render() {
const { priceStream, lastData } = this.state;
let priceTable;
if (priceStream) {
const rows = [
{
label: 'Last sale ',
value: (
),
},
{
label: 'Prev sale ',
value: (
{' / '}