How to control the location of legend data in echarts?

the numbers in legend on the design drawing need the effect of right alignment, but I checked a lot of information and couldn"t find a solution. I hope God can help me. How can I achieve it?
![![][2]][1]

Mar.11,2021

make do

legend.textStylerich


echartsdemo


Link address https://gallery.echartsjs.com.


find a demo

Menu