mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-28 16:29:53 +00:00
Fixed position of zoomed in slider in footer for stack linear chart.
This commit is contained in:
@@ -39,6 +39,10 @@ Limits FindStackXIndicesFromRawXPercentages(
|
||||
chartData.xPercentage[zoomedInLimitXIndices.min],
|
||||
chartData.xPercentage[zoomedInLimitXIndices.max],
|
||||
};
|
||||
// Due to a specificity of the stack chart plotting,
|
||||
// the right edge has a special offset to the left.
|
||||
// This reduces the number of displayed points by 1,
|
||||
// but allows the last point to be displayed.
|
||||
const auto offset = (zoomLimit.max == 1.) ? 0 : -1;
|
||||
const auto minIt = ranges::upper_bound(
|
||||
chartData.xPercentage,
|
||||
|
||||
Reference in New Issue
Block a user