简体   繁体   English

ui旋钮栏的值和中心值不同

[英]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. 我正在使用ng-knob库在我的角度项目中绘制一些图表,这些图表可以完美加载,但是我有一个新的要求,即要对甜甜圈中心显示的文本和图表进度栏中的值设置不同的值。

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? 我在google上进行了研究但没有成功,您能否在不更改库核心的情况下有任何想法?

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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