3 series and dual axes chart

Westbury

Board Regular
Joined
Jun 7, 2009
Messages
149
I'm trying to include 3 data series in one chart.

Series 1 uses the x,y axes [date, value]
series 2 uses the same date scale but a secondary y axis for the values.

I'm stuck trying to get series 3 to use a secondary date scale, which I have displayed along the top of the chart, and to use the secondary y axis.

Grateful for any help.

Here's a link to the file
Geoff
 

Attachments

  • 3 series chart.png
    3 series chart.png
    109.8 KB · Views: 5

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
I think I've corrected the link and added a bit more description below.


I'm trying to include 3 data series in one chart.

Series 1 uses the x,y axes [date, value]
series 2 uses the same date scale but a secondary y axis for the values.

I'm stuck trying to get series 3 to use a secondary date scale, which I have displayed along the top of the chart, and to use the secondary y axis shared with series 2.

The reading dates for all the series are within the UK financial year 1 April to 31 March but series 3 dates may not always coincide with reading dates of series 1 & 2.
Hence my need for a secondary date scale.

Grateful for any help.

Here's a link to the file
Geoff
 
Upvote 0
You can't do what you want. One option is to make two diagrams, and then overlay them on top of each other (in layers). See attached picture.
 
Upvote 0
You could just create one date column containing all the dates, then make the relevant data value =NA() when it doesn't have a value for that date. For examples, see rows 24-29 in image.

See link to file.

1730095852984.png
 
Upvote 0
Sergius and Myall_blues, thanks for your interest and suggestions. I can't accommodate blank cells or non dates as it has knock on effects in the broader file.
 
Upvote 0
How about this then, which uses your original data arrangement?
1730170609681.png
 
Upvote 0
To create this graph:
  • Select the first data set B4:D43
  • Insert -> Chart group -> Line or Area chart -> Line with markers
  • Select the second data set G4:H38 and copy.
  • Select the chart, then Paste->Paste Special and accept all the defaults. Click ok.
1730250981788.png


  • Right click on any of the chart series and select 'Change series chart type...'
  • Tick the box for the secondary axis for the est kWh year total series and click ok.
1730251207796.png

  • If you still want the secondary Y axis (it's the same as the primary but you can have different time periods between the markers for example then Chart Design menu -> Chart layouts group ->Add chart element ->Axes ->Secondary horizontal.
  • Do any additional formatting/scaling of axes, series formatting, axes and chart titles etc and voila!.
Link to file.
 
Upvote 0
Solution

Forum statistics

Threads
1,224,817
Messages
6,181,149
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top