In Azure Workbooks Bar chart legends are getting hidden - excel

We are working on creating a custom connector to ingest the data in Azure Sentinel. We are now working on workbooks. But in workbooks, in the graphs, we are facing problem, that few legends are getting hidden.
As you can see in the above image, out of 10, only 9 are displayed, and that also not complete, even though the graph panel width is set to 100%.
And if we decrease the tab size, or zoom in, then more no. of legends are getting hidden. same applies to zoom out, if we zoom out to 80% approx, then all the 10 legends will be displayed.
Can someone help me to solve the this problem, and make all the legends visible irrespective of screen size?

Related

How to display the picture in the center of the grid in excel by poi

I need to write the picture into Excel. The picture is displayed in the middle of the grid (this grid may be combined by multiple grids). If the picture is larger than the grid, it needs to be scaled in the middle of the grid. Now, the problem is that the height unit read by Excel is not a pixel. After calculating the scaling, the written excel will deform the picture. Have you encountered similar problems? How to solve it?

"Attaching" pivot chart labels to bottom of graph

I have a chart that I am using to keep track of weekly data. It is a Pivot table with an attached graph. Every week when I refresh the data the chart moves back to the following picture.
Graph
With the Data labels shoved inside of the bottom of the chart. I Spend a bit of time every week moving all of them back down. I would like to anchor them with the upper right corner attaching to the bottom axis. The only placement option in the Pivot chart are Center, Inside End, Inside Base, Outside end. I am using inside base to get the picture I mentioned.
Here is what I change it to each week. As you can see I drag all of them down individually and try to get them to line up as best as I can by hand. But they are never perfect.
I have finally found my problem, The issue was I was using Data Labels and not axis labels.
If you are having this problem go Pivotchart tools > Design > Add chart Element > Axes > Primary Horizontal.

Anychart multiple Legends and Labels

We often show several legends in our charts and usually even a label as footer.
The legends can be above or below the chart and thus also the footer.
If there is more than one legend, the legends should be drawn stacked up, one above the other.
For this case we use standalone legends and labels.
But we have a problem:
Since the legends and the chart are all drawn in the same container, the chart hides the legends.
We have solved the problem so that the margin of the chart is adjusted when a legend is drawn underneath it. Now the chart takes less space and you can see the legend as planned.
However, this does not work properly if there are several legends or footer.
Standalones cannot be placed with top() or left(), but only have their parent container and a position().
Manipulating the margin of each legend and the chart to fit them all in the container is not a satisfying way to do this.
There must be a better way to control the layouting of the elements within the container.
What is the right way to do this?
The position of standalone legend on the stage can be controlled using parentBounds() function. For details, check the sample.

Excel resizing buttons and fonts when display scale is not 100%

I have a sheet with VB buttons (using Form controls or ActiveX controls makes no difference).
When the display scale in windows is not 100%, after a button is down it resizes to something not the same size, as shown below (Export Forecast Data... button). When a different button is clicked, it pops back to normal size and the new button then gets this effect.
What you see below is 125%, but the bigger the scale, the worse it gets. In addition, as you can see, it is changing font sizes too.
If I save then reload, all buttons pressed end up resized to the smaller size they were after being clicked and do so badly, as third screenshot.
I have tried on many computers and they all have the same fault.
These have been Excel Office 365/2016.
Any ideas how to fix this? Also, I believe this may be linked to not just a scaling, but having two displays, one at 100% and the other at a different scale.
The effect of the resize after saving

Set specific color for a Legend in a dynamic Pivot Chart

I have a pivot chart with data coming from a Power Query - SQL Source. Colors in Pivot Chart follow a pattern depending on the number of legends. It always starts with light blue (based on my theme choice) but legend values are not static since it is referencing from a live data - Chart 1 starts with <30d and Chart 2 is >=90d, but both are light blue which is confusing.
I am aware of Macros and tried applying it upon opening the Excel but this will not work if the refreshed data changed the number of legends in the chart. (e.g. Chart 2 now has 2 legend values) and it refreshes weekly.
What i'm looking for is a way to bind a color to specific text - <30d is Red for all charts. If there's a documentation about this that doesn't include Macros that will be best. I've tried finding an IF (legend = <30d) in Macro; spent hours already but is still unsuccessful in doing so.
To anyone with the same issue, i loaded the data from Power Query to a Worksheet and not to a Data Model. Now when i change the color for a legend and the data refreshes, it will not revert to a default color scheme.

Resources