AUTEUR v0.1.6
AUTEUR v0.1.6
import { Draft, Emphasis } from "auteur";

const draft = new Draft();
const newEmphasis = new Emphasis("Country", ["Colombia", "Ethiopia"]);

const style = {"fill":{"fill":"green"}};

newEmphasis.updateStyles(style);

draft.layer(ref.current)
    .selection(bars)
    .x("Country", xScale)
    .y("count", yScale)
    .include({"name":["fill", "opacity"]})
    .augment(newEmphasis.getAugs());
View raw data