Use line's colour for info box heading's background.
Acted on @otfrom's comment.
Merge pull request #320 from MastodonC/feature/legend-for-charts

Use line's colour for info box heading's background.