In Google Sheets, I've made a line chart.
Since there are some negative values, the graph needs to dip below zero.
However, the minimum value is about -480,000 and the automatic lower-end of the vertical axis is -2,500,000. No problem, I say: I'll just change the vertical axis minimum value to -500,000 and the problem will be fixed.
Turns out, the chart ignores any negative values bigger than -2,500,000 I provide for the vertical axis minimum value. If I provide zero or a positive value or a negative value smaller than -2,500,000 (e.g. -3,000,000), this is duly reflected in the chart. But like a teenager, it pretends not to listen to me when the minimum value is between -2,500,000 and 0.
Is this a (known) bug in Google Sheets, or am I missing something basic?
P.S. It seems to be a bug, because the minimum value starts working within that range if I also provide a maximum value.
Related
I am trying to color Column A based on its percentage of value in Column B. Column B value could be 3, 6, 9 or 12, so I cannot just take a raw number as the minimum, mid or maximum value, it has to be a percentage. And I would like to do this without inserting an extra column which calculates the percentage. Below is an image with how the two columns may look like.
What works is adding an extra column in which the percentage is calculated using the formula:
=TO_PERCENT(A2/B2)
with the Color Scale Conditional Formatting looking something like this:
But I don't want an extra column showing the percentage, I would rather color the numbers in Column A based on what percentage they are of Column B. What I thought would work is the following:
The formulas being:
=TO_PERCENT($A2/$B2)>=0%
=TO_PERCENT($A2/$B2)>=50%
=TO_PERCENT($A2/$B2)>=100%
With or without TO_PERCENT, as you can see, the result is the same - everything under the midpoint, which should be red, is actually green. I am unsure as to what is causing this, nor how to fix this or if there is any feasible alternative to properly color scale based on value's percentage of another value.
You shouldn't use Colour scaling like that. Consider that even if it analyses it, an expression like =TO_PERCENT($A2/$B2)>=0% will actually return 0 when false and 1 when true, so it's not going to be comparable to your columns
It's a little uncomfortable, but what you should do is to create your own scaling by setting each of your formulas to each desired colour. Keep in mind the order of the rules, the highest values should go up
I need to create a histogram on Google Sheets, and I need it to have a log scale on the x-axis. This is because there are some random high numbers on my column, most numbers are clustered at the beginning.
The option shows up for the y-axis, but not for the x-axis. I think that when I was trying different options it showed up for a time...???? But now it just disappeared.
Please help!
Try normal chart (bar or line) and building a histogram table manually
Use FREQUENCY() formula for this. This way you can make your own classes the way you like and you can then make whatever chart you like.
Take a look at my solution - line chart with logarythmic y-scale.
X-scale as I see is unavailable for manipulation, but you can use own values and treat them as text.
Example dataset: 100 random values from 0 to 35.
Classes are powers of 2 (increase by 1/2 with each step)
Here is my example file. See if it helps
https://docs.google.com/spreadsheets/d/13xVVwhUrMcDj-ec7xpTJv-8cDjlh8zXT46zrqVVLnk0/copy
I have a chart of profits&losses I made trading stocks in absolute ($) and relative (%) values. Today I made my first trade that brought me losses, and adding negative values to the chart caused its y-axes to misalign.
I tried manipulating the min/max values, but to no avail. I googled people having similar problems, but not in Google Sheets.
Does anyone know a solution to this problem?
Solution
The Auto gridline count can behave wrongly with particular datasets. When handling such datasets it will be necessary to tweak the major gridline count from the Chart Editor:
Edit Chart>Customize>Gridlines and adjust the major gridline count accordingly.
I am trying to show the Radar chart with 6 X-axis labels. Currently the name of the X-axis labels and its values are getting overlapped. How can we avoid the overlapping of X-axis labels and values?
I am using Charts for Radar chart.
Please find the screenshot here:
Here total invested and Total returns are getting overlapped with their respective values.
The max values for your axes is 100, but you have graphed values exceeding that maximum. As a result, value labels are overlapping with axis labels.
I have a simple column chart where the yAxis series data contains numeric strings in the millions and tens of millions. The chart therefore displays the graph numbers like this: "12.5M"(on the side of the grid) and in the points tooltip it is being displayed with a decimal point at the end. How do I make the data be shown in the thousands with commas? Will the chart be adjusted automatically to display more grid lines and raise the columns higher? Thanks a lot in advance.
I would have added an image, however it seems that that requires more reputation points. Sorry. Here's a link to it Screenshot
1) you can change the formatting of the axis labels by setting your own format with the formatter function
http://api.highcharts.com/highcharts#yAxis.labels.formatter
2) you can change the number of ticks by setting a tickInterval or tickPixel interval setting
http://api.highcharts.com/highcharts#yAxis.tickInterval
http://api.highcharts.com/highcharts#yAxis.tickPixelInterval
3) You can change how much extra space is added at the top/how many ticks there are, in part, by setting the maxPadding setting to 0
http://api.highcharts.com/highcharts#yAxis.maxPadding
When you have a small chart like the one you posted, Highcharts will often have trouble adapting its normal tick pattern, and you will often end up with just a min and max tick by default.
It's pretty easy to work these setting to get what you need though.