Create Scrolling Excel Chart - excel

I'm looking to set up a scroll bar in Excel that corresponds to what set of data I use for a chart. I have built a 2-value doughnut chart that acts as a percentage gauge (green section is completed and grey is 100% minus the completed part).
I want to be able to choose what month's data I use for this chart using the scroll bar. All I can seem to find online is how to modify the number of rows and columns that are displayed on a graph rather than actually using the scroller to pick what data to display.
In addition, how would I make it default to the current month? Any help would be appreciated!

For anyone that is looking for a similar solution, I have figured it out. It works with something called a dynamic range. Use the value of the scrollbar to determine the offset of rows (pick which row of data to use). Then link that dynamic range to your chart in place of where you would select the data.

Related

Excel - Change bar graph to all same colour

I have a bar graph as seen below, I need to change the colour of all the bars to let's say green.
Currently the only way I have been able to find to do this is click each individual date and then the fill bucket green as excel doesn't allow you to CTRL + Click multiple elements. Is there a way to change the colour of all the bars shown in one go?
Worth mentioning I can not change the colours by creating a "values table" as the workbook is locked and I have to do this for several different graphs.
That's happening because you have created the chart using every date as an individual serie. I suggest to use the "Switch Row/Column" option and became all the dates as a unique serie, so all the bars will have the same color.
In the other hand if you need to keep the chart as you shown on the picture shared, is possible to change every bar at once but just using a VBA code.

make direction of excel sheets of my birt report right to left

I have a birt report with excel output. I want to make the sheet direction right to left.
I try to do this via adding new style, but the style just make the text in cells right to left, not the direction of excel sheets itself.
This is an unresolved issue in BIRT. The report orientation does not work for XLS/XLSX. It might be either because of the way BIRT transmits BIRT-elements into excel cells or simply because no XLS-transmitter supports the feature. However, it does at least work for PDF - if that helps.
Eventually, you might just want to recreate that report with the desired orientation. To "align" elements like a headline most-right, you usually create a grid with a number of colums that equals or exceeds the number of columns of the data table. Then you put the headline element in the right-most cell of that grid.
Hope you find a way!

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.

How to extract each color bar and copy them in a table?

I made a diagram to show unique columns with several colors in each, as shown in the picture.
I have hundreds of that to make and I have no idea about how to do that.
I would like to know if it's possible to extract each color bar separately and copy them under "Icons". I am not sure if the word "extract" is the correct term, but I would like to display a raw-image of that color bar.
Maybe a formula?
I am able to use Office Excel and Libreoffice Calc.
Thank you so much.
These are instructions to do this manually, but this would be an ideal project to apply VBA and automate these tasks.
The idea is to create each category of stacked bar as its own individual chart, which can then be exported or copied to an image file.
This is based on the "spark lines" concept, which is small, eye-catching graphics embedded within the text of a document, as opposed to large graphics. MS added some sparklines functionality in recent versions of Office apps, and although MS "spark lines" doesn't support stacked bar chart type, the same thing can still be accomplished with a little work.
Step 1: Select one row of the data and do Insert Chart, stacked bar.
Step 2: Select data and Switch Rows & Columns.
Step 3: Delete the gridlines, axes, chart border, etc., .
Step 4: Expand the Plot Area so that it covers the entire Chart Area, and format the data series to 0% gap width.
Step 5: Apply your colors to each point in the series.
Step 6: Resize the chart to fit on a cell.
Finally now that you have created some ChartObjects you can manipulate them. ChartObjects can be Exported as image files, or copy/paste-special as images, bmp, or enhanced metafiles, etc.

Drag and drop the shape of graphs

Is it possible to drag and drop the shape of graphs in Excel?
I'm thinking something along the lines of:
-if I click and hold the graph I can drag it up and down
-if I click on a point on the graph and then click and hold on another point, I will drag an interval of the graph up and down
No. What you are asking for is "Interactive charting". The Excel VBA charting interface draws the entire chart based the parameters you define for it. It doesn't have an interface to manipulate the individual components of the chart thru VBA. (Something like move line vertice to new point). In addition, the points of the graph are based on spreadsheet values. So it would have to detect your mouse events over the chart, convert those movements to the scale used in the chart to reverse calculate a value and then change the associated cell in the spreadsheet. And then a graph repaint of the entire chart would be requested. This total repaint would look pretty choppy.

Resources