Scale axis in Excel chart - excel

I have made a record of some samples at different seconds:
50 40 36 33 32 30 28 25 22 20 17 15 13 10 7 5
When I create a line chart with markers in Excel, the x-axis is based on these values, but of course they are not normalised in the sense that there is the same distance from 50 to 40 than from 22 to 20.
Is there a way I can draw the line with the markers only at the positions I have recorded and that is properly scaled in the x-axis? (so from 50 to 40 there is no data in the middle but the line does not go down to "0", it should just link to the value at 40 smoothly. Format Axis does not seem to do anything here)
EDIT - see graph

Example of Scatter with Smooth Lines and Markers:
As the #Jon Peltier has kindly mentioned, prior to this edit I had incorrectly described the above as Scatter with Straight Lines and Markers.
Jon has also pointed out how this happens to be an example of the potential for smooth lines to be deceptive. If the vertical scale were percentages then anything over 100 might not be possible, though the 'bump' in the chart would indicate otherwise!
An alternative with Straight lines is shown below, where 'B' values as displayed have been changed to represent the sum of A and B values, as possibly nearer the OP's requirement:

Related

Excel plot diagram with variable time points

I'm trying to plot a diagram with varying timestamps (the diff of timepoints are variable). And I would like to show the variability in the X axis, so the distance of timestamps be reflected on the diagram. For instance, my data is like this (time points in milliseconds):
time value
---------
0 102
3 104
15 121
29 123
59 111
78 110
So once I plot it, I want the distance of timestamps be shown accordingly, like the plot below.
How can I do that? I have thousands of points like this.
If you highlight your data set (including the headings), you can go to Insert and then click the dialog box launcher to get chart options.
(see the blue square to the right)
From there, you'll get a popup screen like this:
You can then go through and see what chart will work best for you. You'll be able to modify your data, colors, etc. from the new Design and Format tabs that appear on the ribbon when you click anywhere within the newly created chart.
*I'm running Office 365 ProPlus, but the steps are similar in other versions of Excel

Plot lines on an Excel chart

I need to plot a line between two points on an excel spreadsheet. In my ideal world, it'd become a thin box with colors and text, but at this stage, I'll take what I can get.
Data:
min max value
1 2 28
2 3 64
3 5 87
4 7 99
In the end, there would be lines from {1,28} to {2,28}, {2,64} to {3,64}, {3,87} to {5,87} and {4,99} to {7,99}.
Flipping the axes in Excel, apparently, doesn't leave the original axes intact - it goes to numbering the data.
If you rearrange the data as shown in the animated gif below and then make separate plots for each min/max pair, you get the lines drawn just as you described. I show adding just the last min/max pair, and added labels for the sake of a legend. This seems to do what you described, but if not let me know.

Excel: How to create a Gantt Chart in Excel

Given the following data set:
Request starttime Duration (ms)
1 00.000 222
2 00.005 257
3 00.001 270
4 00.003 299
5 00.292 198
6 00.327 199
7 00.318 319
8 00.333 451
9 00.511 323
I need to draw an overlapping bar graph, something akin to this overlapping bar graph (from google):
However, when I try to draw the bar chart in mac excel, excel overloads the y-axis with request count and start time, rather than making start time and duration as both applied to the x-axis.
In short, the y-axis is the request number and the x-axis the both the start time and duration. Is there a way in excel to shift the bars to the starting time listed in the dataset?
SOLUTION:
After learning how to draw Gantt Chart in excel, the resulting chart looks great.
Found the answer in https://www.officetimeline.com/gantt-chart-excel. Thanks all.

Excel chart with markers -- how to automate the color, shape, and size of the markers

I have a chart with 90 series. The first 87 series are plotted as lines with markers. But since each series has just one data point, the 87 series show up as 87 dots represented by markers of different colors and shapes and sizes. I would like to make these markers of only two shapes and colors, say blue squares and red triangles. However, the only way I can do this is my manually clicking on each marker and changing its color, shape etc. It is very cumbersome and every time we decide to change the color, I have to repeat the process. Would really appreciate if someone could tell me how to automate this process. I don't know Visual Basic but if it is just a short code, I will try my best to work with it -- I want to have the capability to say which series should look like blue squares and which like red triangles.
For the sake of completeness, the last three series are stacked area chart.
Data example of one series
Year Series1
1990 N/A
1991 N/A
1992 5
1993 N/A
1994 N/A

Plot day events from date and value in Gnuplot

I have data of this format:
2011-06-22 22:33:19 23 15
2011-06-23 09:46:13 12 79
2011-06-24 12:31:09 31 4
2011-06-24 17:34:10 7 2
2011-06-25 16:42:43 44 14
2011-06-25 20:26:52 54 9
2011-06-26 19:34:29 217 28
How can I create a histogram of daily activities with Gnuplot? By default, using these settings:
set xdata time
set timefmt "%Y-%m-%d %H:%M:%S"
set style data boxes
set grid
plot 'data' using 1:3 t "ins", \
'data' using 1:4 t 'dels'
the boxes will fit next to each other. But I would like to leave noneventful days at 0. Just like the Reputation graph here in StackOverflow behaves. If there's nothing on a given day, it should leave an empty place in the graph. If there's one event for one day, that box should be about the maximum width for one day. If there are more than one to given day, they all should be fit to that width.
Setting boxwidth is tricky because any value seem to give me 1-pixel wide "boxes".
Thanks kindly.
if I understand you correctly, then what you are trying to do is to my knowledge not possible with gnuplot. Or at least not in an easy way. And this is the reason why I think you'll have a hard time:
You cannot plot different box widths in a single plot. So trying to plot no box on an "non eventful" day and a single column on a day with one event will work just fine. Plotting multiple columns on one day where more than one event occurs in the same plot will fail because:
You cannot set different box sizes in the same plot
You need to offset the boxes on the same day according to the amount of events
There are ways to work around that problem for example plot two boxes of the same color next to each other to "simulate" a single box on one day and then make use of the smaller box width on days with two events. But this will very soon get pretty hairy and hard to maintain.
Maybe you want to think about using a different plot style? Take a look at histograms like here. Maybe one of the styles suites your data better. Or you could think about splitting your plot up into multiple plots?

Resources