configureArcs() {
        this.arc
            .attr("class", "lgv-arc")
            .attr("data-arc-value", d => d.value)
            .attr("d", d => this.arcs(d))
            .on("mouseover", (e,d) => {

                // update class
                select(e.target).attr("class", "lgv-arc active");

                // send event to parent
                this.artboard.dispatch("ringmouseover", {
                    bubbles: true,
                    detail: {
                        label: d.data.label,
                        value: d.value,
                        xy: [e.clientX + (this.artboardUnit / 2), e.clientY + (this.artboardUnit / 2)]
                    }
                });

            })
            .on("mouseout", (e,d) => {

                // update class
                select(e.target).attr("class", "lgv-arc");

                // send event to parent
                this.artboard.dispatch("ringmouseout", {
                    bubbles: true
                });

            });
    }
/**
     * Position and minimally style arcs in SVG dom element.
     */
Position and minimally style arcs in SVG dom element.
Position and minimally style arcs in SVG dom element .
configureArcs() {
        this.arc
            .attr("class", "lgv-arc")
            .attr("data-arc-value", d => d.value)
            .attr("d", d => this.arcs(d))
            .on("mouseover", (e,d) => {
                select(e.target).attr("class", "lgv-arc active");
                this.artboard.dispatch("ringmouseover", {
                    bubbles: true,
                    detail: {
                        label: d.data.label,
                        value: d.value,
                        xy: [e.clientX + (this.artboardUnit / 2), e.clientY + (this.artboardUnit / 2)]
                    }
                });
            })
            .on("mouseout", (e,d) => {
                select(e.target).attr("class", "lgv-arc");
                this.artboard.dispatch("ringmouseout", {
                    bubbles: true
                });
            });
    }
configureArcs ( ) { this . arc . attr ( "class" , "lgv-arc" ) . attr ( "data-arc-value" , d => d . value ) . attr ( "d" , d => this . arcs ( d ) ) . on ( "mouseover" , ( e , d ) => { select ( e . target ) . attr ( "class" , "lgv-arc active" ) ; this . artboard . dispatch ( "ringmouseover" , { bubbles : true , detail : { label : d . data . label , value : d . value , xy : [ e . clientX + ( this . artboardUnit / 2 ) , e . clientY + ( this . artboardUnit / 2 ) ] } } ) ; } ) . on ( "mouseout" , ( e , d ) => { select ( e . target ) . attr ( "class" , "lgv-arc" ) ; this . artboard . dispatch ( "ringmouseout" , { bubbles : true } ) ; } ) ; }
Position and minimally style arcs in SVG dom element.
Position and minimally style arcs in SVG dom element .
// update class // send event to parent // update class // send event to parent