pub fn downsample_data( data: &[DataPoint], target_count: usize, ) -> Vec<DataPoint>
Downsample data using LTTB algorithm.