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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
navandrea
New Member

powerbi-visuals-linedotchart compile error

Hello, I'm trying using powerbi-visuals-linedotchart project, I've installed every component (typescript, d3, ...) but when I launch it I've these errors

 

C:\PowerBI-visuals-master\powerbi-visuals-linedotchart-master>pbiviz start
info Building visual...
error TYPESCRIPT /src/behavior.ts : (35,28) Cannot find namespace 'd3'.
error TYPESCRIPT /src/behavior.ts : (40,28) Cannot find namespace 'd3'.
error TYPESCRIPT /src/behavior.ts : (41,31) Cannot find namespace 'd3'.
error TYPESCRIPT /src/behavior.ts : (46,54) Cannot find name 'd3'.
error TYPESCRIPT /src/behavior.ts : (47,18) Cannot find name 'd3'.
error TYPESCRIPT /src/behavior.ts : (65,20) Cannot find namespace 'd3'.
error TYPESCRIPT /src/behavior.ts : (65,20) Property 'selection' of exported
interface has or is using private name 'd3'.
error TYPESCRIPT /src/behavior.ts : (66,23) Cannot find namespace 'd3'.
error TYPESCRIPT /src/behavior.ts : (66,23) Property 'clearCatcher' of export
ed interface has or is using private name 'd3'.
error TYPESCRIPT /src/columns.ts : (43,40) Cannot find name '_'.
error TYPESCRIPT /src/columns.ts : (51,17) Cannot find name '_'.
error TYPESCRIPT /src/columns.ts : (59,35) Cannot find name '_'.
error TYPESCRIPT /src/columns.ts : (60,68) Cannot find name '_'.
error TYPESCRIPT /src/columns.ts : (62,29) Cannot find name '_'.
error TYPESCRIPT /src/columns.ts : (65,29) Cannot find name '_'.
error TYPESCRIPT /src/columns.ts : (87,35) Cannot find name '_'.
error TYPESCRIPT /src/columns.ts : (96,29) Cannot find name '_'.
error TYPESCRIPT /src/columns.ts : (109,48) Cannot find name '_'.
error TYPESCRIPT /src/columns.ts : (116,31) Cannot find name '_'.
error TYPESCRIPT /src/visual.ts : (94,23) Cannot find namespace 'd3'.
error TYPESCRIPT /src/visual.ts : (95,23) Cannot find namespace 'd3'.
error TYPESCRIPT /src/visual.ts : (96,23) Cannot find namespace 'd3'.
error TYPESCRIPT /src/visual.ts : (97,24) Cannot find namespace 'd3'.
error TYPESCRIPT /src/visual.ts : (98,24) Cannot find namespace 'd3'.
error TYPESCRIPT /src/visual.ts : (99,25) Cannot find namespace 'd3'.
error TYPESCRIPT /src/visual.ts : (100,26) Cannot find namespace 'd3'.
error TYPESCRIPT /src/visual.ts : (101,23) Cannot find namespace 'd3'.
error TYPESCRIPT /src/visual.ts : (145,25) Cannot find name 'd3'.

....

 

There are some other fix to do?

 

Thanks

3 REPLIES 3
murphycrosby
Regular Visitor

I think you need to add a d3 injector is file like described here. http://community.powerbi.com/t5/Developer/Setting-up-D3-V4-with-Custom-Visuals-and-Types/td-p/330101

The d3 injector is required for d3 v4.x.x and v5.x.x but Line Dot Chart uses d3 v3.

 

We'd reccomend to follow steps described above to fix the issues.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

v-viig
Community Champion
Community Champion

Please follow these steps below to build Linedot Chart locally:

  1. git clone git@github.com:Microsoft/powerbi-visuals-linedotchart.git
  2. cd powerbi-visuals-linedotchart
  3. npm i
  4. npm start (starts development server)
  5. npm run package (builds a pbiviz package)

We use npm commands instead of global pbiviz since it allows to use the local version of pbiviz instead of global one.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.