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

This commit is contained in:
monitor1394
2019-09-27 18:58:42 +08:00
parent 2d5d5b89bc
commit 7b8fef6d81
5 changed files with 15326 additions and 15247 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.
/// 设置图表的大小。