Reverse the order for series-id in oj-chart-item
Summary:
Reverse the order for series-id in oj-chart-item
Content (please ensure you mask any confidential information):
I have requirement to display the order (ascending) in the bar and also in the legend(top to bottom). But currently what is happening is in bar chart its showing correctly but in legend its showing bottom to top . I want that order from top to bottom.
In the event listener I am pushing the data in this way::
var res = [];
original.forEach(item => { res.push({ series: item.interfaceName + ' Success Count', interfaceName: item.interfaceName, value: item.successCount }); res.push({ series: item.interfaceName + ' Failure Count', interfaceName: item.interfaceName, value: item.failureCount }); res.push({