0

我的样式CircularGauge有点像他们在这里所做的: 圆形仪表梯度 - TeeChart - MonoAndroid

在此处输入图像描述

如何去除中心点下方的阴影?当我这样做时,如何更改指针(指示器)的颜色?

4

1 回答 1

1

在下面找到我翻译Narcís 的代码后得到的代码

    tChart1.getHeader().setVisible(false);

    CircularGauge circularGauge1 = new CircularGauge(tChart1.getChart());

    circularGauge1.getFrame().setVisible(false);
    circularGauge1.getFaceBrush().setVisible(false);
    circularGauge1.setDisplayTotalAngle(180);
    circularGauge1.setTotalAngle(180);
    circularGauge1.setValue(200);
    circularGauge1.getTicks().setVisible(false);
    circularGauge1.setMinimum(0);
    circularGauge1.setMaximum(1000);
    circularGauge1.getAxis().getAxisPen().setVisible(false);
    circularGauge1.getAxis().setIncrement(500);
    circularGauge1.getRedLine().setVisible(false);
    circularGauge1.setGreenLineStartValue(0);
    circularGauge1.setGreenLineEndValue(1000);
    circularGauge1.getGreenLine().getGradient().setDirection(GradientDirection.HORIZONTAL);
    circularGauge1.getGreenLine().getGradient().setUseMiddle(true);
    circularGauge1.getGreenLine().getGradient().setStartColor(Color.orange);
    circularGauge1.getGreenLine().getGradient().setMiddleColor(Color.yellow);
    circularGauge1.getGreenLine().getGradient().setEndColor(Color.green);
    circularGauge1.getGreenLine().getPen().setVisible(false);

这就是我的样子:

圆规

于 2012-12-18T12:35:39.423 回答