I'm trying to determine how best to achieve a desired result within Swift Charts.
I'm trying to make a sort-of "reversed" log chart. The use case here is for driving into the details of the percentiles from a series latency values stored within a histogram.
The X axis percentile values I was hoping to achieve was something along the lines of:
10, 50, 90, 99, 99,9, 99.99, 99.999
With those values being fairly evenly distributed across the chart. If I look at this from an inverted sequence of:
( 1 - (some value) ).reversed()
where the values are:
0.00001, 0.0001, 0.0001, 0.001, 0.01, 0.5, 0.1
But I've been struggling with how to start with those values, scale the X axis using a 1-value
kind of setup, and then overlaying the values that are more human readable to achieve the end result.
Any suggestions on how to tackle this scenario with customizing a chart axis?