NativeScript UI图表图例:将标签更改为正方形

时间:2018-11-05 20:01:34

标签: nativescript nativescript-angular nativescript-telerik-ui

如何将饼图的图例标签更改为正方形。我看着example code,但对我来说,它并没有将标签更改为正方形。

<RadCartesianChart height="300">
  <CategoricalAxis tkCartesianVerticalAxis></CategoricalAxis>
  <LinearAxis tkCartesianHorizontalAxis></LinearAxis>

  <BarSeries tkCartesianSeries
              [showLabels]="true"
              [items]="sampleData"
              categoryProperty="name"
              valueProperty="value">
    <PointLabelStyle tkBarLabelStyle
                      margin="10"
                      textSize="10"></PointLabelStyle>
  </BarSeries>
</RadCartesianChart>

1 个答案:

答案 0 :(得分:1)

我不支持这种自定义,默认情况下,Android中似乎是正方形,而iOS中似乎是圆形。

如果您喜欢该选项,则可能必须提出功能请求。

相关问题