Dear community support,
Is it possible to use the graph builder to create a custom horizontal bar chart with the Y axis tick values inside the graph?
Normally the Y axis tick values appear on the left of the Y axis, I want them inside the graph, on the right, with the data "on top" of the Y tick values.
As an example I found this image.
Any replies would be greatly appreciated.
Best regards,
Stefan
Hi Stefan,
One thing you can try is overlaying a scatterplot on top of the barchart. You can then add a datalabel role to the scatterplot and make its type=character. Next, you would need to turn off the display of the y axis tickmarks for the barchart and use the datalabels from the scatterplot in their place. This method would require you to create a dummy dataset for the scatter plot so that you can position the labels exactly where you want them. You might also have to make some changes to the properties of the scatterplot markers so that they would not be visible. (Maybe make them the same color as the barchart fill color). Attached is a very rudimentary example that illustrates a path you can follow in attempt to solve your problem. Hopefully others can share more possibilities.
Scott
Dear Scott,
Thank you for your detailed reply. Unfortunatly the method doesnt work as my data sets are too big to create a scatterplot.
I will keep fiddling and if I find a solution I will post it here too. Maybe its a nice feature to implement in coming versions as the Y tick lables are being generated already, its just a matter of mirroring their horizontal position to the other side of the Y axis.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.
Find more tutorials on the SAS Users YouTube channel.