简体   繁体   中英

Different value in ui-knob bar and center value

I am using ng-knob library to draw some charts in my angular project, the charts load perfectly, but I have a new requirement that is put different values for the text showed in the donut center and value in the progress bar of the chart.

In the image below, the left chart have the actual behaviour, and the right chart is the desired behavior.

条形进度和中心文本值中具有不同值的甜甜圈图

I have researched in google without success, Can you have any ideas how to do this without change the core of the library?

您可以在配置中将“ max”属性设置为15.38461538461538,其中10是65%。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM