Click here to Skip to main content
15,891,828 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to draw lines in a chart that there's Y1 are decimal and are less than 1 and greater than 0 . but cant show this lines are diffrent . and output is just a line that Y's are 1.
Posted
Comments
Afzaal Ahmad Zeeshan 20-Dec-14 14:10pm    
That maybe because, the value within 1 and 0 is still approximately equal to the same value. Your co-ordinates (in real are far but for you) are not enough far, that to be shown distinguishedly. Did you try to increase their distance, or tried to zoom in?
Member 11323446 20-Dec-14 14:36pm    
yes my problem is that . i cant shown distinguishedly. I dont want to zoom in chart. my y_coordinate contains numbers like 0.2 or 0.000000000005 .
Afzaal Ahmad Zeeshan 20-Dec-14 15:32pm    
Please see my answer to your problem. This seems to be a not solvable problem as it stands now!

1 solution

The problem is that the line object in the WPF won't be distinguished well, because the difference between their origins and the co-ordinates is way too small for the human-eye to detect any such difference.

As, you've said in your comment,

Quote:
my y_coordinate contains numbers like 0.2 or 0.000000000005.


.. which means that the different is approximately equal to zero so the lines would seem to overlap. Color of them is another big major factor, trying to make this problem a little bigger. If you donot want to change the difference factor, then try changing the color of each of the line which might make it possible for the user to see the change. Which in most cases will also fail, because the last line will overlap most of the lines; no matter what color they belong to!
 
Share this answer
 
Comments
Member 11323446 22-Dec-14 9:34am    
i can convert the points to integer and solve this. but cant find solution when we have decimal points that are between 0 and 1 how we can show this little paths in form and or zoom this paths? tnx for your solution afzaal :)
Afzaal Ahmad Zeeshan 22-Dec-14 9:56am    
Multiply all of these values to a same factor, like multiply the values by 10. :)
Member 11323446 22-Dec-14 14:33pm    
but my values are not in a range . they are like 0.02 or 0.00002 . if i multiply this values to 10 yet i have value between 0 and 1.
Afzaal Ahmad Zeeshan 22-Dec-14 14:36pm    
Then multiply by 100, 1000 or so on. 10 was just an example.

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