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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Trying to Add an Legend using the legend.md API to my custom visualization

 

I am following  the installation instructions at the below link.  I am using the API 1.4.0 ... 

 

https://github.com/Microsoft/powerbi-visuals-utils-chartutils/blob/master/docs/usage/installation-gu...

 

right after i start modifying the tsconfig.json and the pbviz.json ... the visualization in debug mode goes blank ... , but i can see still in the rows in the data view...  

 

Am I missing something ?

 

 

 

 

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@Anonymous,

 

Update powerbi-visuals-tools and add Dataview Utils as follows.

npm install -g powerbi-visuals-tools
	"node_modules/powerbi-visuals-utils-dataviewutils/lib/index.d.ts",
	"node_modules/powerbi-visuals-utils-formattingutils/lib/index.d.ts",
	"node_modules/powerbi-visuals-utils-dataviewutils/lib/index.js",
	"node_modules/powerbi-visuals-utils-formattingutils/lib/index.js",
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-chuncz-msft
Community Support
Community Support

@Anonymous,

 

Update powerbi-visuals-tools and add Dataview Utils as follows.

npm install -g powerbi-visuals-tools
	"node_modules/powerbi-visuals-utils-dataviewutils/lib/index.d.ts",
	"node_modules/powerbi-visuals-utils-formattingutils/lib/index.d.ts",
	"node_modules/powerbi-visuals-utils-dataviewutils/lib/index.js",
	"node_modules/powerbi-visuals-utils-formattingutils/lib/index.js",
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

that worked ...  I add the .ts and .js files included but not installed the dataview

Anonymous
Not applicable

I did that ... But every time , I try to add the legend  for a scatterchart , based on what I can see in the api for legend in the 1.4 ...  it says the svg scatterchart does not have a Legend property ...  Do you know if there is a good example out there with a legend ...  any help would be helpful ... 

 

Tried searching ... 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.