Skip to content

Commit 4abc443

Browse files
committed
brush aria-label
1 parent b077466 commit 4abc443

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/marks/brush.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import {brush as brusher, brushX as brusherX, brushY as brusherY, create, select} from "d3";
22
import {identity, maybeTuple} from "../options.js";
33
import {Mark} from "../plot.js";
4+
import {applyIndirectStyles} from "../style.js";
45

56
// TODO Allow brush styling?
67
// TODO Disable standard mark channels (e.g., href, title)?
78
const defaults = {
9+
ariaLabel: "brush",
810
fill: null,
911
stroke: null
1012
};
@@ -34,6 +36,7 @@ export class Brush extends Mark {
3436
const bottom = height - marginBottom;
3537
const mark = this;
3638
const g = create("svg:g")
39+
.call(applyIndirectStyles, this)
3740
.call((X && Y ? brusher : X ? brusherX : brusherY)()
3841
.extent([[left, top], [right, bottom]])
3942
.on("start brush end", function(event) {

test/output/gistempAnomalyBrush.svg

Lines changed: 5 additions & 5 deletions
Loading

0 commit comments

Comments
 (0)