createLegend

Creates a new color scale legend with the specified orientation.
If the plot does not use a renderer that implements
ColorScaleRenderer then this method will return null
and no legend will be drawn on the chart.