Reverse the order for series-id in oj-chart-item — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

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({             

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!