UNPKG

@d3fc/d3fc-series

Version:

A collection of components for rendering data series to SVG and canvas, including line, bar, OHLC, candlestick and more

13 lines (12 loc) 273 B
// determines the offset required along the cross scale based // on the series alignment export default (align, width) => { switch (align) { case 'left': return width / 2; case 'right': return -width / 2; default: return 0; } };