Click here to Skip to main content
15,671,597 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm trying to output some data to the chart. Values that will be plotted are around 10000.
The thing is, that without scaling, the difference in several hundred points looks like nothing, and it's impossible to see the difference between columns.

I'm trying to scale the chart so the visible range of the Y-axis will be equal to the min column value -50 and max column value +50.

Say, if the largest number is 10050 and the smallest is 9950, the visible area of the chart will be from 9900 to 10100.

What I have tried:

I tried to do this:
<pre>chartArray[0] = (ScoreList[0] % 1000);

So it shows not the real values of columns but the difference between them within 1000.
It doesn't work and outputs columns in the wrong way, so disregard it.
Gerry Schmitz 16-Feb-22 22:09pm    
Modify the "raw" values before loading if you can't figure out how to do it in place. In your case, you could even subtract 9000 and get meaning.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900