This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
We are currently evaluating your software and we would like to know if there is any way you could get the sampling to two data points per pixel when the AllowsDataSampling flag is set to true? Thanks, Peter |
|
|
Hello Peter I have updated the chart control to provide a way to change the data sampling logic. The DataSeries class (the base class of LineSeries etc) now has a DataSampler property. This is of type IChartDataSampler. We provide 2 implementations of this interface. The default one is the FixedSampleCountSampler which samples the data based on a desired maximum number of data point that are allowed to be rendered regardless of the pixel size of the chart. The PixelDensitySampler will sample the data based on a desired number of pixels between each data point. To achieve the behaviour you have described, create an instance of the PixelDensitySampler and set the PixelSpacing property to 0.5. This will allow for 2 data points per pixel. Then set the DataSampler property of the data series you are plotting to be that PixelDensitySampler instance. This update will be available through the next nightly build (available from about 1200 GMT). Nightly builds can be downloaded from the downloads page: http://www.mindscapehq.com/products/wpfelements/nightly-builds Please let us know if you have further questions about this. |
|