Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Dear All,
I want to make a gauge with changing a backgroud image and test it should also chage the values,I am currently developing my visual.My code is as follows,there is no compile error.But arc is not appearing in power bi.
And also are there any easy way to develop my code.since I am new to typescript.Please help.
Best Regards,
Dora
You have to use the update method
public update(options: VisualUpdateOptions) { var xAxis = d3.svg.axis() this.g .append('g') .attr("class", "x axis") .attr("transform", "translate(0," + gHeight + ")") .style("opacity", (settings.generalView.opacity/100)) .call(d3.svg.axis().scale(x).orient("bottom")); var yAxis = d3.svg.axis() this.g .append('g') .attr("class", "y axis") .style("opacity", (settings.generalView.opacity/100)) .call(d3.svg.axis().scale(y).orient("left")); ..... }
your constructor will look like this
constructor(options: VisualConstructorOptions) { this.svg = d3.select(options.element).append('svg'); this.g = this.svg.append('g');
....
}
Giving following Error
You are missing this in your update-method
let settings = this.chartSettings = viewModel.settings;
I think this is helpful:
https://github.com/Microsoft/PowerBI-visuals-sampleBarChart
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
7 | |
7 | |
3 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |