Is there a way in vba to create a custom legend? - excel

I am using vba to create a pivot chart that is then filtered for the top 10 categories. For the legend we would like to include those categories NOT in the pie chart. I am able to create a list of the items that are not included in the pie chart, but I haven't figured out how to add them to the legend. I tried setting the XValues alone but that didn't work. Is it possible to create a custom legend? I wouldn't need the color boxes but I would like to add the number and and percent similar to those that are displayed for the top 10 categories in the pie chart.

Related

Excel Prevent overlapping of data labels in pie chart

I have a lot of dynamic pie charts in excel. I must use a pie chart, but my data labels(percentage, value, name) overlapping. How can I fix it except the best-fit option?

excel chart based on switch

I'd like to create an excel dashboard where the user selects which series are plotted based on a drop down menu. The series for the chart is derived as follows:
=IF(J$6="Plot",100 * D8/D$108,"")
etc.
If I turn off "Plot" the series disappears form the chart but an empty line persists in the legend. I'd like the legend to include only the series I have selected.
Thank you in advance,
Tikhon

Hiding mouseover tooltip in charts

I would like to know how can I make it so that a chart doesn't show the data point value on hover.
The chart in question plots a range with formulas so I can toggle all the series, and I need the solution to be on the file so that no one can see the actual values under the chart.

How do I annotate areas of a report chart

I've got a scatter chart in an SSRS report and a requiremetn to label each quadrant of the chart.
When I drop a text box with the label of each quadrant and get it to look just how I want it in the designer all seems well.
But when the report is run the flow based layout of the report put the text boxs vertically under need the scatter chart.
How do I get the text boxes to remain on top of the chart?
In designer
Rendered report
Consider adding the Quadrant labels as a chart title instead of a textbox. You will need to enable the CustomPosition property of the chart title to True in order to place the titles in the corners.
I am unable to post an image without some "reputation" but I was able to add the quadrant titles successfully.

How to arrange the data in a Pivot Chart? (stacked column chart)

I generated a pivot chart from a pivot table. The chart type is stacked columns. The problem with the pivot is that it generated automatically the order of the stacks and I can't set them in the order I want
Do you know if I can rearrange the stacks order in a Pivot Chart?
I want to do this because I have some other chart type for some data (line) and the lines need to be on the same level with the stacks.
Any idea?
Thanks!
The most straight forward way to do this is to rearrange their order in the associated pivot table. You should be able to drag the labels in the table and see the result in the chart.
There is also another way using the sort options within the legend drop down menu. But I've always found dragging items around the chart to be really difficult

Resources