【问题标题】:In TeeChart for HTML5, how to darken the gradient fill on a pie chart?在 HTML5 的 TeeChart 中,如何使饼图上的渐变填充变暗?
【发布时间】:2019-03-05 00:43:12
【问题描述】:

我正在为一个项目评估 TeeChart,颜色似乎褪色了。请注意图例的深色、粗体颜色与饼图本身的最暗部分之间的区别。我在下面包括我的代码。我喜欢渐变填充的外观,但我怎样才能让它更接近饼图的中心变暗并在边缘完全变暗?

function pie_draw(arChartValues, arChartLabels) {
    chart1=new Tee.Chart("pie_canvas");
    pieSeries=new Tee.Pie(arChartValues);
    pieSeries.data.labels=arChartLabels;
    chart1.addSeries(pieSeries);
    chart1.panel.format.gradient.colors=['white','#f0f9ff'];        
    chart1.panel.format.stroke.size=2;
    chart1.title.text="Learning Progress";
    chart1.title.format.font.fill = '#314d65';
    chart1.draw();
}

【问题讨论】:

    标签: html teechart


    【解决方案1】:

    我能够弄清楚它足以继续前进。经过一些实验,我最终添加了以下行。

    pieSeries.format.gradient.stops=[0,0.15];
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-10-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-12-07
      • 2019-04-23
      相关资源
      最近更新 更多