i need to put the decimal numbers starting with 0,... to the Excel graph. If I create the graph and add the values my decimal values is still 0,00 at the graph. If I change them (ex. 400) the graph works good!
adding the screenshots.
decimals numbers starting with 0,..
graph with normal numbers works.
I found the issue! I posted (.) behind the zero and It has to be (,).
Related
I have the following graph in excel. My question is how can I automatically get the data labels of greater numbers ABOVE and the less numbers UNDER the line so they won't collide like on day 24.
Thank you in advance for your help.
enter image description here
Is there any style or settings which can solve my problem, so I don't have to manually change each's values position when crossing each other?
Unfortunately, the greater number is still below the line and the less number is above.
All the data that come from the source are integers:
345819404
1093
28495
The only "tool" I have at my hand is Excel-style formatting options to turn it into:
3,458,194.04
10.93
284.95
Basically I can't convert those using / 100. So far I have two different styles that give me both components but I can't merge them together.
#,##0 gives me thousand separator
#"."00 places the dot as a "fake" decimal point
How can I get this work together?
I would like to use weeknumbers in number formatting in Excel, in particular in XY-graphs.
The built-in function WEEKNUM() can be used to extract the weeknumber from a date. With these weeknumbers I can proceed in two different manners:
use the weeknumbers as text labels on my graph axis. This does not give the required result as labels are distributed evenly on the axis. A sequence like "13" "14" "33" would put the label "14" just in the middle.
use the weeknumbers as numbers on my graphs axis. This would resolve the above problem, but gives a gap at years end. E.g. 1652 (week 52 in 2016) and 1701 are 49 units away from each other.
To illustrate, please see these two graphs. The graphs indicate a tracking of a project plan, i.e. planned versus actuals. The first chart is a correct graph somewhere in the midst of a year; the second chart is more or less the same graph crossing year's end.
Correct chart, in the midst of a year
Chart showing problem at year's end
Now I'm stuck. My preferred route would be to add a number format to the generic number formatting methods in Excel. E.g. similar to be able to use yyyy for years and ddd for days, I'd like to use ww for weeknumbers.
How can I achieve this?
Not certain I'm understanding the question fully, but if you're wanting to ensure the end result is treated as a number you could use =Text(WEEKNUM(A1), "#") which would convert it to a numeric value.
For the chart, sounds like you could use the axis options (right click on the axis labels >> Format Axis). There are multiple options that would allow you to change how the labels are displayed.
I am using AndroidPlot to create a simple XYPlot.
My y axis is (by default) rounding up to 1 decimal place. How can I change this to 2 decimal places?
I have found another answer that shows how you would do something similar with the old version of AndroidPlot: (this gets rid of decimal places but I assume this is the same function I would use)
// Gets rid of decimal places
mySimpleXYPlot.setDomainValueFormat(new DecimalFormat("0"));
Does anyone know how to do this with AndroidPlot 1.*?
Thank you!
Since support was added in 1.x to display labels along any of the four edges of the graph, the way to attach a formatter was modified to support an arbitrary edge.
If you're using the standard domain value labels along the bottom of the plot, this should give you the same behavior as before:
plot.getGraph().getLineLabelStyle(XYGraphWidget.Edge.BOTTOM)
.setFormat(new DecimalFormat("0.0"));
I'm having some issues using custom number format in Excel. I want the numbers on the y-axis of a scatter graph to be number formatted, so 16 on the y axis is labelled as a grade G, 22 as a grade F, 28 as a grade E, and so on. The following code works and formats my G and F correctly.
.Axes(xlValue).TickLabels.NumberFormat = "[=16]""G"";[=22]""F"";"
When I try to add any more formats in, say;
.Axes(xlValue).TickLabels.NumberFormat = "[=16]""G"";[=22]""F"";[=28]""E"";"
It no longer works. Is there a way around this problem?
NB: My y axis major unit is set to 6 and the axis minimum is set to 16, so all the grades I want lie on the tick markers.
This is a limitation of Excel, unfortunately: a number format can contain up to 2 conditions.
This is confirmed here. I've looked around for the original Microsoft documentation for this but I can't find it. What I can say, however, is that all of the example format codes I've seen on Microsoft pages have up to two conditions, never more than two. I guess they were not expecting users to need more than two conditions.
One workaround: See Jon Peltier's article on how to make arbitrary axes scales. His example: