【问题标题】:NativeScript UI Chart Legend: change label to squareNativeScript UI 图表图例:将标签更改为正方形
【发布时间】:2018-11-05 20:01:34
【问题描述】:

如何将饼图的图例标签更改为正方形。我查看了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>

【问题讨论】:

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


    【解决方案1】:

    我认为不支持这样的自定义,默认情况下它在 Android 中似乎是方形的,在 iOS 中似乎是圆形的。

    如果您喜欢该选项,您可能需要提出功能请求。

    【讨论】:

    • 谢谢!我有一种感觉,就是这样。我会在 iOS 上使用这些圈子。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-08-13
    • 1970-01-01
    • 2012-09-01
    • 1970-01-01
    • 2014-05-27
    • 2021-04-21
    相关资源
    最近更新 更多