Dear collegues,
I am currently working on a seafood landing data base for my Phd.
My purpose is to compare local landing (in 4 harbours, identified as GR, PB, CH and FC) with the total of landing in all of these harbours (identified as Totalcriees).
My data are organised as following:
I want to represent the landing in each harbour, with 4 bar charts, by years. After that, i want to add (on the same graph) the total of the landing with a line, based on the same y axis than the previous bar charts. For the moment, i use the following line code :
My problem is that my barcharts are currently overlapping by years, as you can see here:

I would like to know how I could position them next to each other by year, and avoid this overlapping? Which option i need to implement in my code ?
Thank you in advance for your help, I remain available if ever to provide you with more information.
Regards,
Jean-François
I am currently working on a seafood landing data base for my Phd.
My purpose is to compare local landing (in 4 harbours, identified as GR, PB, CH and FC) with the total of landing in all of these harbours (identified as Totalcriees).
My data are organised as following:
Code:
* Example generated by -dataex-. For more info, type help dataex clear input int Years double(GR PB CH FC Totalcriees) 2010 .8585 2.3565 6.15 0 9.3 2011 3.0615 4.4945 17.6535 0 25.21 2012 5.0345 6.239 9.4776 0 20.7511 2013 3.617 .846 0 0 4.463 2014 3.6375 1.3825 2.0958 0 7.1158 2015 4.4386 8.495 3.7591 0 16.6927 2016 1.5185 7.534 6.28 0 15.33705 2017 2.3155 5.892 5.7251 0 13.9326 2018 3.22 6.7135 3.4707 0 13.401 2019 1.528 2.3885 5.5359 0 9.4524 2020 1.5693 .407 4.12 0 6.1 2021 2.8072 .212 8.863 9.4816 21.36 end
Code:
twoway (bar GR Years) (bar PB Years) (bar CH Years) (bar FC Years) (line Totalcriees Years)
I would like to know how I could position them next to each other by year, and avoid this overlapping? Which option i need to implement in my code ?
Thank you in advance for your help, I remain available if ever to provide you with more information.
Regards,
Jean-François
Comment