Simple example from the documentation.
mychart =
BarChart[{1, 2, 3}, ChartStyle -> "Pastel",
ChartLegends -> {"John", "Mary", "Bob"}]
The legends appear in the output cell but if one right-clicks on the image only the chart proper is selected, the legends remain outside the image. See "naked chart.pdf"
If the chart is exported the legends do get included.
Export[NotebookDirectory[] <> "barchart.pdf", mychart]
See attached.
Attachments: