Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Markus_P
Regular Visitor

D3 Symbol not rendering

Hello

 

I am not able to get a Symbol rendered. Text and lines are working fine. Now I am wonder what I am doing wrong.

 

Text I am showing with:

 

 

his.textPY = this.container.append("text")
            .classed("textPY", true);

 

 

this.textPY

        .text("PY")

        .attr("x", "2%")

        .attr("y", "94%")

        .attr("text-anchor", "begin")

        .style("font-size", fontSizeDiff + "px")

        .style("fill", "black")

        .attr("font-family", "Arial")

        .attr("font-weight", 250);

 

 

The Symbol I am trying with:

 

      this.Arrow1 = this.container.append("symbol")

            .classed("Arrow1", true);

 

 

var sym = d3.symbol().type(d3.symbolCross).size(500);

this.Arrow1
.append("path")
        .attr("d", sym)
        .attr("fill", "green")
        .attr("transform", "translate(50,50)");

 

 

But nothing is showing up.

Has anyone an idea?

 

Thanks

0 REPLIES 0

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.