Categorical yticks position to the left - gantt-chart

I've created a Gantt chart with categorical yticks on the left, However, I did not find a way on how to justify them to the left (make all ticks start from the same left level). I read that there is no direct way on how to do it yet but I am wondering if there is an update regarding that! I tried a bypass solution where I created a new ticks with extra blank spaces to the left (I counted the maximum character in one tick, then I added the difference to the others) but still did not make it because the space character length is not the same as letters.

Related

Why is excel displaying my data as zero when I try to chart it?

I've been trying to make a chart comparing two sets of data from 40 countries, but every time I try to make the chart, it shows one data set perfectly normally and the other set is just displayed as zero.
I've tried changing from points to commas and everything else I can find online, but nothing is working.
I know absolutely nothing about coding, so please consider that when helping me out. I'm just trying to fix this for my maths assignment.
Thanks in advance!
The other set is not displayed as zero! If you could use a ... microscope, you would notice that the orange dots are slightly above ground!
Each square in your diagram has a height of 0,5E15, which may also be written as the number 500.000.000.000.000 (5 followed by 14 zeros).
Imagine now that you want to place the dot that corresponds to the Albanian AAS number, which is 2.907.909,20. This is a minuscule number in relation to the height of each square. Excel thus naturally places that dot very close to the bottom of the first square, leading you to believe that it touches the horizontal zero line.
What you can do is the following:
Select with your mouse the line consisting of the orange points. Then right-click and select "Format Data Points" (or the German equivalent, I suppose "Formatieren Datapunkten"). Then search for "Series Options", where you will see the following two choices for "Plot Series On":
Choice 1: Primary Axis
Choice 2: Secondary Axis
Select the second choice and you problem will be resolved.
Viel Glück!

Algorithm for determining LR and TB order when not uniform

wondering if anyone has any insight as to how to ascertain the order of differently sized rectangles from left to right and from top to bottom when they are not already aligned to any grid, and they are differently sized and/or rotated. Some might also be missing.
As anyone can see from the illustration, the objects should be numbered as shown. But how, mathematically or programmatically, can I determine this? What is the logic? I don't even know what words to use to describe the problem.
This looks like a rather complex problem; maybe some algorithm already exists, IDK.
Approach 1: grid positioning.
One approach could start with trying to position the rectangles on a grid whose mesh size will have to be calculated; maybe a best fit to the size of the rectangles (H & W, or surface, maybe?)
Once a reasonable grid has been determined, it must be appropriately placed over the rectangles; maybe in such a way that minimizes row overlap and column overlap of the rectangles?
The last step would consist of traversing the grid row by row, and assigning a label to each rectangle; maybe based on the max common surface shared by a grid cell and a rectangle?
There will be many edge cases to identify and resolve.
Approach 2: sweep line.
Alternatively, a sweep line numbering of the rectangles from N, S, E, and W, and an appropriate weighting/averaging of the numbering of the rectangles from each direction, might give good results?
It may require several passes, after identifying what could be rows and columns, in order to find a "best fit".
This second approach is likely easier to implement.

Target reference line in combination chart

I have a combination chart with same type of values on both left y-axis scale and right y-axis scale. When I add a target reference line using lines and curves at some point on y-axis scale, I see two reference lines one for left y axis and the other for right y axis. Is there any option to display only one reference line according to scale on my left y-axis ?
Thanks
the way I understand your question is that you...
have a combination chart with multiple axes
are attempting to use the Lines and Curves feature to create a line based on your data
have one line appearing for each axis
would like to have only one line for the entire chart
the short answer is, unfortunately this is not possible when using multiple axes.
I assume that what you are trying to compare is two relative sets of values on different axes, but one of those sets has some kind of benchmark (target reference line) to measure against.
I can suggest two possible workarounds that might still do what you need:
if your benchmark value never changes, you can add a horizontal line with a fixed value. technically, this will draw as many lines as you have axes, but since they will all be the same value, they'll render on top of one another and appear to be the same line.
if the benchmark does change, and you can get the benchmark into a Document Property, you can render it just like the above, but based on the property rather than a fixed value. this would allow the value to be dynamic, but you have to get it in there in the first place.

Excel VBA - Making points invisible removes markers

I'm having a problem to making some points of my series (making them invisible). In the image below, you can see that it goes well until I make the point invisible. The marker's legend get all confused and set the legend to the XValues, in this case "1","2", and so on.
Is it possible to make a point invisible but keeping the original marker legend?
May I suggest to substitute the "invisible" points' values with CVErr(xlErrNA)? That way the line will still be drawn, but these points will be "ignored".
Or do you need to mantain those values?

VBA Bestfit position for datalabels on line chart

I was trying to make my own function to reposition data labels on line chart so they'll be in their best fit.
What does it mean best fit?
The data label wont be above the line itself (I took the higher angle of the point and put the data label in higher-angle/2 - so it will be in the middle of the higher angle) - I succeed to get the higher-angle but didn't succeed to get the position on graph (in pixels, relatively)
After u put the data label in the middle of the higher angle, you need to check with the other seriescollections, that the data label is not above one of other seriescollections line... - didn't reach this part.
and still I am not sure that's it...
Is anybody got something prepared? or someone wants to help me with it?
It is way over my level right now...
"Best fit" is a setting unique to pie chart data labels.
You have the option of positioning a line chart's data labels centered (directly on a point), as well as above, below, left of, and right of the point. You can also position the data label anywhere by changing the .left and .top properties of the label. Left and Top are in points with respect to the top left corner of the chart, so you will have to brush up on your algebra to fine tune label positioning.
As with all else involving charts, Keep It Simple is sound advice. Do you need to label everything, or can you get away with a few key labels?
So after some tries, I decided to ditch the idea since this's way too complicated for me.
What I can say is that I ditch it after I stepped up a little bit.
I could find the best position for each label only when there's one line.
I achieved it by calculating the bigger arc (assumed each point is the middle of a circle), and than put it in the middle of that arc.
to do it when you have more than one line, you have to consider the position of the points of the other line/s. Therefore it becomes much more complicated and this is the reason I decided to ditch it.

Resources