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

const yThreshold = new Threshold("AverageTemperature", 7, "leq");

const pointStyles = {"stroke": {
                    "stroke": (d) => colorScale(d.City),
                    "stroke-width": "2px"}};

yThreshold.updateStyles(pointStyles)
          .selection(scatterpoints);

const draft = new Draft();

draft.layer(ref.current)
    .x("date", xScale)
    .y("AverageTemperature", yScale)
    .exclude({"name":["fill", "text", "regression"]})
    .augment(yThreshold.getAugs());
View raw data