The Legend object is a strip above the chart that displays a text description of the chart. The datasets that should be included in the legend should be added to the legend using the AddDataSet method. The text displayed in the legend is retrieved from the text label of the datasets.
AddDataSet(dataset)
dataset: DataSet object
Description: Add the specified dataset to the legend.