06-26-2018 04:00 AM
So I have a plot showing voltage from -5 to +5 V in my WPF application on the x axis. My Goal is to show -5000mV to +5000mV without the mV. Because if you zoom in, its annoying to read someting like 0.00053523. I tried string formatting but I think this is not the right way for me.
Is there any way to scale each value before it gets shown in the graph? I could multiply all measured values with 1000 but this seems not like the optimal way and I would like to avoid this.
Solved! Go to Solution.
06-26-2018 10:28 AM
Your assessment is correct: multiplying the values before sending them to the graph, or formatting the values displayed by the graph, are the two options available. However, the graph is extensible, so you are not limited to simple string formatting. You could use the custom value formatter from this answer to display values using SI notation (using the format string "s3"
or "s3'V'"
, for example, to format values appropriately for any zoom level). Or you could use the custom value formatter from this answer to apply a fixed scale factor to incoming values (using Rate="1000"
as a multiplier, in this case).