Is there a way to center the y-axis at 0.30 instead of 0 in Google Sheets or Excel?
So for example, in the chart I have right now pasted here, I want the first bar (0.26) to face downward (i.e. flipped downward like a negative number would on a normal axis) since it is less than 0.3. Thanks in advance!
Try selecting "Horizontal Axis Crosses" at axis value "0.30" in the Y axis options.
Related
I'm trying to create an Excel chart in VBA with time on the X axis and bearing angles (from North) on the Y axis. This looks fine most of the time except where the sample of data is dealing with Northerly bearings. In this case, we might get a sample with bearing values of 000.1, 000.2, 359.9, 359.8, 000.5 etc.. The chart Y axis then stretches from 0 to 360 with data at the bottom and data at the top with a lot of empty space in between. Is there any way that the Y axis can be configured to either restart at zero when it reaches 360 or split into two so that for example, it covers the range 0 to 5 and then the range 355 to 360?
I'm simply asking whether this is feasible or not. I don't want to get too busy with coding just yet if it's a non-starter.
EDIT: - a couple of images to try and explain the problem. One image shows the sample of bearings to be around 90 degrees and it produces a nice Y axis. The second image shows the sample of bearings to be around 359-360 degrees with the odd one in the middle at 0 degrees
For the sample with Bearings around 360, I would like to be able to either "rollover" the Y axis back to 0 as it reaches 360 or have a split Y axis such that the section between 5 degrees and 355 degrees is not visible.
You need to mess with your data. Suppose the times are in A2:A41 and the angles in B2:B41. Plotting columns A and B works fine unless the values are on either side of 360.
Put a test formula in E1:
=AND(MAX(B2:B41)>350,MIN(B2:B41)<10)
This tells us that some values are close to 0 and some close to 360.
Enter this formula in cell C2 and copy it down to C41:
=IF(AND($E$1,B2<10),B2+360,B2)
This adds 360 to any small value if the large values are near 360.
Finally, plot columns A vs C.
Below are two pairs of charts where I've implemented this, one not close to 360 and one close to 360.
I've made a chart with Excel 2010's "Combo" option for chart type so I can plot two data series for the same depth points. The image below shows the default, which is very close to what I want - except I would like to have the axes flipped so that the current X axis, which is depth, is displayed as the Y axis and both primary and secondary current Y axes plot as X axes. In other words, I'd like to rotate the chart area by 90 degrees clockwise. The "Switch Row/Column" doesn't do what I want (or expect) and I'm running out of both ideas and patience. Is there an easy fix? Or a hard fix?
Here's the plot as-is:
And here's a dummy plot of the end goal made by rotating the image around in Paint, in case the picture makes it clearer:
Finally, as was pointed out in the comments, the whole thing looks goofy and might be better plotted as a bar graph with two bars. I tried this as well and came away almost all set - but the gray bars plot from left to right and the blue bars plot from right to left. Seems like it should be as simple as changing the "Plot Series On" option to Primary Axis for both, but this destroys the graph.
I looked around and I think this link has instructions for what you're looking for: https://superuser.com/questions/188064/excel-chart-with-two-x-axes-horizontal-possible
Here is the issue:
X has 0 - 8
I need them to start bottom left corner, and also you see all the legends stop on same vertical line but need to be at different stop points so in theory X and Y need to have 0 - 8 and then draw the legend / items from 0,0 to the X,Y set point so if 4.54 X and Y should be 4.54.
Anyone have any ideas? I have added screenshot below.
I tried and managed to get something like this, but it's not quite right. I need to start 0,0 (bottom left) and have straight lines up until the right value by X and Y
UPDATE
I have also attempted a point value system which think might help. Although a point 0.00 value series I guess is required, I need to set the display like it is on the left just showing 0 - 8 and same for bottom but working on the 0.00 series basis?
I really can't imagine what you want to achieve by this. What you want to do is basically drawing eight y = x lines on the SAME plane, which is visually meaningless. As far as I can tell from what you provide, your last try is right approach. You just need to edit the X-axis format. I made something similar based on 0.1 point system. Under this approach, I had to MANUALLY edit each series' ranges, which was also painful.
So I am trying to make a nice line graph for some data that I have. Each line has 100 data points, so excel automatically makes the horizontal axis from 1-100. I want to change the min/max values for the horizontal axis from 0-1, without moving the frame of the graph (i.e. without zooming in the graph). I just want to divide the horizontal axis numbers by 100 in order to rescale the time. This is what my graph looks like now:
http://imgur.com/33KD7RY
So I want to change the numbers on the horizontal axis to be fractions or decimals in the range [0,1]. Does anyone know how I can do this, or any other graphing software that would allow me to do this (I have tried using google sheets, but they have less options to customize axes than excel). Thank you!
Did you use two column to plot one line and did you use the Scatter with smooth lines chart type?
Have one column (X) go from 0 to 1 using intervals of 0.01 and your data in your second column (Y). When using a scatter with smooth lines chart type your answer should look like this:
image graph
Plotting your second line in the same chart can be done the same way by adding it through the 'select data' options of the chart.
One of my line charts contain values in the range 0..11.5
flot is using yaxis with 0..12
the problem: value 0 is drawn on the axis (see attached image)
Is there a way to tell flot to add a small margin, e.g. use 0.5 margin?
or - Is there a way to get the min and max values, so I manually can set xmin and xmax?
There is the autoscaleMargin option for the axis which does what you want. Or you can set min and max values for the axis manually.
The default for autoscaleMargin on the y-axis is 0.02 (you can see that the points are not completely on the axis but slighty above). Increase this to your liking.