mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 01:13:23 -04:00
[ML] Explain Log Rate Spikes: ensure brush style is applied on brush creation (#141545)
* ensure brush style is applied on brush creation * [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix' Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
b3c80fe3cd
commit
2e91c672f0
1 changed files with 6 additions and 0 deletions
|
@ -240,6 +240,12 @@ export function DualBrush({
|
|||
})
|
||||
.each((brushObject: DualBrush, i, n) => {
|
||||
const x = d3.scaleLinear().domain([min, max]).rangeRound([0, widthRef.current]);
|
||||
// Ensure brush style is applied
|
||||
brushObject.brush.extent([
|
||||
[0, BRUSH_MARGIN],
|
||||
[widthRef.current, BRUSH_HEIGHT - BRUSH_MARGIN],
|
||||
]);
|
||||
|
||||
brushObject.brush(d3.select(n[i]));
|
||||
const xStart = x(brushObject.start) ?? 0;
|
||||
const xEnd = x(brushObject.end) ?? 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue