echarts-reposition-grid-by-label
v0.0.3
Published
This package was created to reposition grid options relative to labels that extend beyond the container border
Downloads
13
Readme
Reposition grid by label
This package make reposition the grid from echarts relative to the values of overflowed labels
function getOverflowPx(
chart: ECharts,
textIndicator: string,
): HorizontalProperties;
This function get the pixels on the left and right where labels overflow
function repositionGrid(
chart: ECharts,
defaultGrid: HorizontalProperties,
textIndicator: string,
): void;
Make reposition for echarts grid