|
|
@@ -676,7 +676,7 @@ export default class StockHeatmap extends React.Component {
|
|
|
let trade_color = d3.color(marketDepth.side == 'sell' ? '#cc5040' : '#44c98b').rgb();
|
|
|
trade_color.opacity = 0.7;
|
|
|
this.drawingContext.fillStyle = trade_color.toString();
|
|
|
- const r = /*xh2*/ Math.min(this.defaults.volumeCircleMaxRadius * (+marketDepth.lastTradedQty / avgTradedVolume) + 10, 50);
|
|
|
+ const r = 50 - 45 * (2.71 ** (-0.01 * (+marketDepth.lastTradedQty / avgTradedVolume)))
|
|
|
this.drawingContext.beginPath();
|
|
|
this.drawingContext.arc(
|
|
|
this.xScale(ts) + xh2,
|