04 August 2015

线数据


  • LineChartDataSet

LineChartDataSet


public class LineChartDataSet: LineRadarChartDataSet
{
    // 圆圈颜色
    public var circleColors = UIColor
    // 小孔颜色
    public var circleHoleColor = UIColor.whiteColor()
    // 圆圈半径
    public var circleRadius = CGFloat(8.0)

<span class="c1">// 立方强度</span>
<span class="kd">private</span> <span class="k">var</span> <span class="nv">_cubicIntensity</span> <span class="o">=</span> <span class="kt">CGFloat</span><span class="p">(</span><span class="mf">0.2</span><span class="p">)</span>

<span class="c1">// 虚线</span>
<span class="kd">public</span> <span class="k">var</span> <span class="nv">lineDashPhase</span> <span class="o">=</span> <span class="kt">CGFloat</span><span class="p">(</span><span class="mf">0.0</span><span class="p">)</span>
<span class="c1">// 虚线长度</span>
<span class="kd">public</span> <span class="k">var</span> <span class="nv">lineDashLengths</span><span class="p">:</span> <span class="p">[</span><span class="kt">CGFloat</span><span class="p">]</span><span class="o">!</span>

<span class="c1">/// if true, drawing circles is enabled</span>
<span class="kd">public</span> <span class="k">var</span> <span class="nv">drawCirclesEnabled</span> <span class="o">=</span> <span class="kc">true</span>

<span class="c1">/// if true, cubic lines are drawn instead of linear</span>
<span class="c1">/// cubic-bezier 贝塞尔曲线</span>
<span class="kd">public</span> <span class="k">var</span> <span class="nv">drawCubicEnabled</span> <span class="o">=</span> <span class="kc">false</span>

<span class="kd">public</span> <span class="k">var</span> <span class="nv">drawCircleHoleEnabled</span> <span class="o">=</span> <span class="kc">true</span>

}



blog comments powered by Disqus