Build a stock chart with two series
This article demonstrates how to create a stock chart with two series.
The picture above shows a weekly stock bar chart of Microsoft and Caterpillar. One bar shows you the highest price and the lowest price during that specific week, it also shows the closing price which is the price of the last deal done that week.
Instructions
- Rearrange columns like this: high, low and close
- Select columns High, Low and close
- Go to tab "Insert" on the ribbon
- Click "Other Charts" and then "High-Low-Close"
- A chart is inserted on your active sheet
- Right click on chart and click on "Select Data..."
- Click Edit button below Horizontal (Category) Axis Labels
- Select your date range
- Click OK button twice
- Right click on chart again
- Click on "Select Data"
- Click on "Add" button below Legend Entries (Series)
- Select High column for the other stock you want plotted
- Click OK twice
- Select the chart
- Go to tab "Layout" on the ribbon
- Select series 4
- Click "Format Selection" below Series 4
- Change to "Secondary Axis"
- Click Close
- Right click on chart again and click on "Select Data..."
- Add Low and Close series
- Go to tab "Layout" on the ribbon
- Select "Series 4"
- Click on "Lines" button and then "High-Low" Lines
- Select "Series 6" (Close)
- Click "Format Selection"
- Go to "Marker Options", choose built-in marker type and the sixth symbol from the top.
- Select size 3
- Go to "Marker Line Color", select "Solid Line" and finally pick a color. I chose dark blue.
- Select "High Low Lines 2"
- Select "Solid Line" and select a color
- Click Close
You now know how to change the color of high low lines and the closing line. Change the line color of all series (High, Low and Close) on the primary axis.
I chose black. Now delete the secondary axis and remove entries on the legend except "Close" and "Series 6". Change the name of series "Close" to Microsoft and "Series 6" to Caterpillar.
Download excel *.xlsx file
Change chart axis range programmatically
This article demonstrates a macro that changes y-axis range programmatically, this can be useful if you are working with stock […]
This stock chart in excel allows you to change the date range and the chart is instantly refreshed. Here is […]
The high-low-close stock chart displays the high, low and closing price for a given date range. Each line represents a […]
One Response to “Build a stock chart with two series”
Leave a Reply
How to comment
How to add a formula to your comment
<code>Insert your formula here.</code>
Convert less than and larger than signs
Use html character entities instead of less than and larger than signs.
< becomes < and > becomes >
How to add VBA code to your comment
[vb 1="vbnet" language=","]
Put your VBA code here.
[/vb]
How to add a picture to your comment:
Upload picture to postimage.org or imgur
Paste image link to your comment.
[…] https://www.get-digital-help.com/2016/11/16/build-a-stock-chart-with-two-series/ […]