cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

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

Accepted Solutions
Highlighted
Community Support
Community Support

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

@kstachkunas,

 

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
Highlighted
Community Support
Community Support

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

@kstachkunas,

 

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

Highlighted
Helper I
Helper I

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

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

Highlighted
Helper I
Helper I

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

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
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors