增加SampleDist采样距离的配置,对过密的曲线开启采样,优化绘制效率

This commit is contained in:
monitor1394
2019-09-27 18:58:42 +08:00
parent 40ba70f6c0
commit 8d2183a333
6 changed files with 15328 additions and 15248 deletions

View File

@@ -80,6 +80,13 @@ namespace XCharts
/// <value></value>
public float lineSmoothStyle { get { return m_LineSmoothStyle; } set { m_LineSmoothStyle = value; } }
/// <summary>
/// the min pixel dist of sample.
/// 采样的最小像素距离默认为0时不采样。当两个数据点间的像素距离小于改值时开启采样保证两点间的像素距离不小于改值。
/// </summary>
/// <value></value>
public float sampleDist { get { return m_SampleDist; } set { m_SampleDist = value < 0 ? 0 : value; } }
/// <summary>
/// Set the size of chart.
/// 设置图表的大小。