Add menu button to chart bar

.. code lost and reinstated, need to write the code
   to show the chart menu when it is clicked.

.. just pushing this code to get it back into the repo
   as it was lost accidentally with some other recent changes