饼图中的XValueText字体颜色不变

时间:2017-08-13 06:53:41

标签: android pie-chart mpandroidchart

我正在使用MPAndroidCharts库创建饼图。一切顺利,我面临的一个问题是ValueTextColor

Pie_chart

Pie_chart(zoomed in)

XValuesLabel有白色字体颜色,黑色字体颜色为YValueLabel。 我希望它们都是黑色的,但不知何故setValueTextColor()在XValuesLabel中没有任何影响

findOne

请帮助。感谢

1 个答案:

答案 0 :(得分:1)

尝试添加此内容:

                'class' => 'kartik\grid\EditableColumn',
                'attribute'=>'myAttribute',
                'header' => 'myHeader',                                            
                'editableOptions' => [                         
                    'inputType' => \kartik\editable\Editable::INPUT_TEXT,
                    'valueIfNull' => '-',

/**
 * @var string the value to be displayed. If not set, this will default to the attribute value. If the attribute
 * value is null, then this will display the value as set in [[valueIfNull]].
 */
public $displayValue;
相关问题