Hi Miguel,
Greetings from Syncfusion.
On analyzing the provided code snippet, we found that you haven’t provide name to the series, so the legends for the series were not rendered. By default series name will be displayed as legend. So if you specify the name to the series, then the legends will be rendering properly.
We have prepared a sample with respect the provided code snippet and by adding the name to the series. Find the code snippet below to achieve this requirement.
|
JS:
var chart = new ej.charts.Chart({
series: [{
//Specify the series name which will be displayed in the legend
name: 'Horas'
},
{
name: 'Ots'
}],
});
|
Screenshot:
Sample for reference can be find from below link.
Thanks,
Dharani.