Loosing data in a series labels
Posted: Mon Jun 14, 2004 11:05 am
Hi,
I add points to a series using the code:
for(int i = 0; i < scoreDataX.Length; i++)
{
scoreSeries2D.Add((double)scoreDataX, (double)scoreDataY,
scorePlotIDs.ToString(), defaultColor);
Debug.WriteLine("X " + i.ToString() + ": " + scoreDataX.ToString()
+ " Y " + i.ToString() + ": " + scoreDataY.ToString()
+ " ID " + i.ToString() + ": " + scorePlotIDs.ToString());
}
The Debug statement gives the following output:
X 0: 8.807114 Y 0: -1.686315 ID 0: 300000000
X 1: -5.918607 Y 1: 4.803197 ID 1: 300000001
X 2: -2.766465 Y 2: 4.986518 ID 2: 300000002
X 3: -13.3359 Y 3: -12.33331 ID 3: 300000003
X 4: 6.481991 Y 4: -5.348303 ID 4: 300000004
X 5: 2.508724 Y 5: 9.91759 ID 5: 300000005
X 6: -1.698888 Y 6: -4.560288 ID 6: 300000006
X 7: 14.77221 Y 7: 8.219568 ID 7: 300000007
X 8: -5.968975 Y 8: -10.16554 ID 8: 300000008
X 9: -1.721106 Y 9: 3.600026 ID 9: 300000009
X 10: 5.51805 Y 10: -5.213896 ID 10: 300000010
X 11: 13.13388 Y 11: -14.34828 ID 11: 300000011
X 12: 9.796832 Y 12: -5.505568 ID 12: 300000012
X 13: -17.09833 Y 13: 8.642034 ID 13: 300000013
X 14: -12.87222 Y 14: 5.593857 ID 14: 300000014
X 15: -14.1362 Y 15: 8.763436 ID 15: 300000015
X 16: -11.49353 Y 16: 0.2560991 ID 16: 300000016
X 17: 0.1840196 Y 17: 5.066359 ID 17: 300000017
X 18: 6.427471 Y 18: 7.038807 ID 18: 300000018
X 19: 8.283397 Y 19: 10.85125 ID 19: 300000019
X 20: -9.868889 Y 20: -0.3038975 ID 20: 300000020
X 21: -1.336187 Y 21: -4.781142 ID 21: 300000021
X 22: 11.04071 Y 22: -5.904294 ID 22: 300000022
X 23: -2.797259 Y 23: 9.633656 ID 23: 300000023
X 24: 2.065593 Y 24: -0.5431131 ID 24: 300000024
X 25: 11.25348 Y 25: -5.436178 ID 25: 300000025
X 26: 8.721117 Y 26: -1.593235 ID 26: 300000026
X 27: -1.088272 Y 27: 8.525608 ID 27: 300000027
X 28: -1.876912 Y 28: 2.075644 ID 28: 300000028
X 29: 4.454688 Y 29: -6.308055 ID 29: 300000029
X 30: -6.403812 Y 30: 0.4291565 ID 30: 300000030
X 31: -3.213131 Y 31: -11.43222 ID 31: 300000031
X 32: -0.920768 Y 32: 5.734175 ID 32: 300000032
X 33: 10.5321 Y 33: -9.355244 ID 33: 300000033
X 34: 3.251503 Y 34: 12.67462 ID 34: 300000034
X 35: -5.32918 Y 35: -8.798972 ID 35: 300000035
X 36: 6.596635 Y 36: -4.797789 ID 36: 300000036
X 37: -0.7197083 Y 37: -1.760981 ID 37: 300000037
X 38: -2.200247 Y 38: -2.082434 ID 38: 300000038
X 39: -3.065905 Y 39: 1.003144 ID 39: 300000039
X 40: 4.152611 Y 40: 5.41301 ID 40: 300000040
X 41: 3.731406 Y 41: 9.086006 ID 41: 300000041
X 42: -6.553025 Y 42: 3.679504 ID 42: 300000042
X 43: 22.32187 Y 43: -8.451771 ID 43: 300000043
X 44: -6.649737 Y 44: 2.702491 ID 44: 300000044
X 45: -5.93023 Y 45: -10.9881 ID 45: 300000045
X 46: -3.312553 Y 46: -2.83677 ID 46: 300000046
X 47: -4.887503 Y 47: -14.26085 ID 47: 300000047
X 48: 7.529714 Y 48: 3.808398 ID 48: 300000048
X 49: -2.314616 Y 49: -3.268444 ID 49: 300000049
X 50: -3.300919 Y 50: 12.02525 ID 50: 300000050
X 51: -5.990618 Y 51: 4.80233 ID 51: 300000051
X 52: -18.54162 Y 52: -1.481376 ID 52: 300000052
X 53: -0.3408661 Y 53: 1.289963 ID 53: 300000053
X 54: 2.659326 Y 54: 0.8738599 ID 54: 300000054
X 55: 5.288954 Y 55: 10.80279 ID 55: 300000055
X 56: 8.421656 Y 56: -12.28192 ID 56: 300000056
X 57: 4.012159 Y 57: 1.646333 ID 57: 300000057
X 58: 12.8185 Y 58: 12.49392 ID 58: 300000058
X 59: 7.871731 Y 59: -9.728095 ID 59: 300000059
X 60: 3.992452 Y 60: 7.67177 ID 60: 300000060
X 61: -11.58646 Y 61: -5.386061 ID 61: 300000061
X 62: 0.1168265 Y 62: 0.0453207 ID 62: 300000062
X 63: -5.811755 Y 63: -6.564913 ID 63: 300000063
X 64: 13.55665 Y 64: 0.5530406 ID 64: 300000064
X 65: -7.925404 Y 65: 1.2372 ID 65: 300000065
X 66: -4.992062 Y 66: -7.127776 ID 66: 300000066
X 67: 1.799309 Y 67: 6.221422 ID 67: 300000067
X 68: 0.8041393 Y 68: -9.314793 ID 68: 300000068
X 69: -6.721719 Y 69: -0.5586005 ID 69: 300000069
X 70: 3.890765 Y 70: -3.390866 ID 70: 300000070
X 71: 9.392538 Y 71: -9.468134 ID 71: 300000071
X 72: -0.8370125 Y 72: -8.833076 ID 72: 300000072
X 73: -14.30522 Y 73: 0.2148463 ID 73: 300000073
X 74: -2.932679 Y 74: 2.781985 ID 74: 300000074
X 75: -4.055921 Y 75: -5.988229 ID 75: 300000075
X 76: -14.23881 Y 76: -6.225345 ID 76: 300000076
X 77: 7.106741 Y 77: 10.88551 ID 77: 300000077
X 78: -1.836887 Y 78: -9.135163 ID 78: 300000078
X 79: -11.1856 Y 79: -7.552323 ID 79: 300000079
X 80: -9.036282 Y 80: 15.48797 ID 80: 300000080
X 81: 0.5657609 Y 81: -5.699197 ID 81: 300000081
X 82: 3.79484 Y 82: 19.3576 ID 82: 300000082
X 83: -1.647336 Y 83: -2.38414 ID 83: 300000083
X 84: 9.685876 Y 84: 13.86285 ID 84: 300000084
X 85: -9.28321 Y 85: 4.683095 ID 85: 300000085
X 86: -4.149434 Y 86: -1.308298 ID 86: 300000086
X 87: 6.972943 Y 87: 5.112518 ID 87: 300000087
X 88: 4.618228 Y 88: 8.078854 ID 88: 300000088
X 89: -7.275227 Y 89: -0.2109797 ID 89: 300000089
X 90: 7.927324 Y 90: 2.659873 ID 90: 300000090
X 91: 9.165181 Y 91: -10.17105 ID 91: 300000091
X 92: -2.770464 Y 92: 7.365217 ID 92: 300000092
X 93: -0.4845928 Y 93: -8.27889 ID 93: 300000093
X 94: 1.605501 Y 94: 4.243686 ID 94: 300000094
X 95: -2.663626 Y 95: -8.800159 ID 95: 300000095
X 96: -0.7238067 Y 96: 4.662794 ID 96: 300000096
X 97: 1.334391 Y 97: 0.6576027 ID 97: 300000097
X 98: 4.526551 Y 98: 1.117927 ID 98: 300000098
X 99: 4.62224 Y 99: -1.385314 ID 99: 300000099
I.e. all ID:s exist in the original arrays and as I understand should also be added to the series in the label property for each point.
However they have not been added to the series...
In my code the next line is:
for(int i = 0; i < scoreSeries2D.XValues.Count; i++)
{
Debug.WriteLine("X " + i.ToString() + ": " + scoreSeries2D.XValues.ToString()
+ " Y " + i.ToString() + ": " + scoreSeries2D.YValues.ToString()
+ " ID " + i.ToString() + ": " + scoreSeries2D.Label);
}
The output from this Debug statement is:
X 0: -18.5416221618652 Y 0: -1.48137605190277 ID 0: 300000052
X 1: -17.098331451416 Y 1: 8.64203357696533 ID 1: 300000015
X 2: -14.3052215576172 Y 2: 0.214846253395081 ID 2: 300000073
X 3: -14.238808631897 Y 3: -6.22534513473511 ID 3: 300000076
X 4: -14.1361980438232 Y 4: 8.76343631744385 ID 4: 300000016
X 5: -13.3359003067017 Y 5: -12.3333101272583 ID 5: 300000061
X 6: -12.8722238540649 Y 6: 5.59385681152344 ID 6: 300000044
X 7: -11.5864572525024 Y 7: -5.38606119155884 ID 7: 300000010
X 8: -11.4935264587402 Y 8: 0.256099075078964 ID 8: 300000065
X 9: -11.1856002807617 Y 9: -7.55232334136963 ID 9: 300000079
X 10: -9.86888885498047 Y 10: -0.303897529840469 ID 10: 300000045
X 11: -9.28320980072021 Y 11: 4.68309545516968 ID 11: 300000085
X 12: -9.03628158569336 Y 12: 15.4879732131958 ID 12:
X 13: -7.92540407180786 Y 13: 1.23719966411591 ID 13: 300000047
X 14: -7.27522706985474 Y 14: -0.210979744791985 ID 14: 300000089
X 15: -6.72171926498413 Y 15: -0.558600544929504 ID 15: 300000063
X 16: -6.6497368812561 Y 16: 2.70249080657959 ID 16:
X 17: -6.55302476882935 Y 17: 3.67950439453125 ID 17: 300000032
X 18: -6.40381193161011 Y 18: 0.429156482219696 ID 18: 300000066
X 19: -5.99061822891235 Y 19: 4.80233001708984 ID 19: 300000049
X 20: -5.96897506713867 Y 20: -10.1655435562134 ID 20: 300000026
X 21: -5.93022966384888 Y 21: -10.9880981445313 ID 21: 300000034
X 22: -5.91860675811768 Y 22: 4.80319690704346 ID 22: 300000075
X 23: -5.81175518035889 Y 23: -6.56491327285767 ID 23: 300000025
X 24: -5.32917976379395 Y 24: -8.79897212982178 ID 24:
X 25: -4.99206161499023 Y 25: -7.12777614593506 ID 25:
X 26: -4.88750267028809 Y 26: -14.2608547210693 ID 26: 300000086
X 27: -4.14943361282349 Y 27: -1.30829763412476 ID 27: 300000036
X 28: -4.05592107772827 Y 28: -5.98822927474976 ID 28:
X 29: -3.31255316734314 Y 29: -2.83676981925964 ID 29: 300000033
X 30: -3.30091857910156 Y 30: 12.0252475738525 ID 30:
X 31: -3.21313142776489 Y 31: -11.4322166442871 ID 31: 300000053
X 32: -3.06590485572815 Y 32: 1.00314438343048 ID 32:
X 33: -2.93267869949341 Y 33: 2.78198456764221 ID 33: 300000062
X 34: -2.79725861549377 Y 34: 9.6336555480957 ID 34: 300000078
X 35: -2.77046394348145 Y 35: 7.36521673202515 ID 35: 300000092
X 36: -2.7664647102356 Y 36: 4.98651838302612 ID 36:
X 37: -2.66362571716309 Y 37: -8.80015850067139 ID 37: 300000095
X 38: -2.31461620330811 Y 38: -3.26844382286072 ID 38: 300000068
X 39: -2.20024728775024 Y 39: -2.08243441581726 ID 39: 300000083
X 40: -1.87691235542297 Y 40: 2.07564377784729 ID 40: 300000055
X 41: -1.83688652515411 Y 41: -9.13516330718994 ID 41:
X 42: -1.72110569477081 Y 42: 3.60002636909485 ID 42:
X 43: -1.69888818264008 Y 43: -4.56028842926025 ID 43: 300000043
X 44: -1.64733636379242 Y 44: -2.3841404914856 ID 44:
X 45: -1.33618688583374 Y 45: -4.78114223480225 ID 45:
X 46: -1.08827173709869 Y 46: 8.52560806274414 ID 46: 300000070
X 47: -0.920767962932587 Y 47: 5.73417520523071 ID 47: 300000081
X 48: -0.837012529373169 Y 48: -8.83307552337646 ID 48:
X 49: -0.723806738853455 Y 49: 4.66279411315918 ID 49: 300000096
X 50: -0.719708323478699 Y 50: -1.76098096370697 ID 50:
X 51: -0.484592765569687 Y 51: -8.27888965606689 ID 51:
X 52: -0.340866148471832 Y 52: 1.28996336460114 ID 52:
X 53: 0.11682653427124 Y 53: 0.045320700854063 ID 53:
X 54: 0.184019580483437 Y 54: 5.06635904312134 ID 54:
X 55: 0.565760910511017 Y 55: -5.69919729232788 ID 55: 300000094
X 56: 0.804139256477356 Y 56: -9.31479263305664 ID 56:
X 57: 1.33439087867737 Y 57: 0.657602667808533 ID 57: 300000097
X 58: 1.60550081729889 Y 58: 4.24368619918823 ID 58:
X 59: 1.79930865764618 Y 59: 6.22142171859741 ID 59:
X 60: 2.06559300422668 Y 60: -0.543113112449646 ID 60:
X 61: 2.50872445106506 Y 61: 9.91759014129639 ID 61: 300000077
X 62: 2.65932631492615 Y 62: 0.873859941959381 ID 62: 300000071
X 63: 3.2515025138855 Y 63: 12.6746244430542 ID 63:
X 64: 3.73140573501587 Y 64: 9.08600616455078 ID 64: 300000088
X 65: 3.79483985900879 Y 65: 19.3576011657715 ID 65:
X 66: 3.89076542854309 Y 66: -3.39086604118347 ID 66:
X 67: 3.9924521446228 Y 67: 7.67176961898804 ID 67:
X 68: 4.01215887069702 Y 68: 1.64633250236511 ID 68:
X 69: 4.15261125564575 Y 69: 5.41300964355469 ID 69: 300000087
X 70: 4.45468807220459 Y 70: -6.30805540084839 ID 70:
X 71: 4.52655124664307 Y 71: 1.11792683601379 ID 71: 300000098
X 72: 4.61822843551636 Y 72: 8.07885360717773 ID 72:
X 73: 4.62223958969116 Y 73: -1.3853143453598 ID 73: 300000099
X 74: 5.28895378112793 Y 74: 10.8027925491333 ID 74:
X 75: 5.51804971694946 Y 75: -5.21389627456665 ID 75: 300000090
X 76: 6.42747116088867 Y 76: 7.03880739212036 ID 76:
X 77: 6.48199129104614 Y 77: -5.34830331802368 ID 77:
X 78: 6.59663486480713 Y 78: -4.79778909683228 ID 78:
X 79: 6.97294330596924 Y 79: 5.11251783370972 ID 79:
X 80: 7.10674095153809 Y 80: 10.8855123519897 ID 80: 300000091
X 81: 7.52971363067627 Y 81: 3.80839800834656 ID 81:
X 82: 7.87173128128052 Y 82: -9.72809505462646 ID 82:
X 83: 7.92732381820679 Y 83: 2.65987277030945 ID 83:
X 84: 8.28339672088623 Y 84: 10.8512477874756 ID 84:
X 85: 8.42165565490723 Y 85: -12.2819242477417 ID 85:
X 86: 8.72111701965332 Y 86: -1.5932354927063 ID 86:
X 87: 8.80711364746094 Y 87: -1.68631517887115 ID 87:
X 88: 9.16518115997314 Y 88: -10.1710472106934 ID 88:
X 89: 9.39253807067871 Y 89: -9.4681339263916 ID 89:
X 90: 9.68587589263916 Y 90: 13.8628530502319 ID 90:
X 91: 9.79683208465576 Y 91: -5.50556755065918 ID 91:
X 92: 10.5321035385132 Y 92: -9.35524368286133 ID 92:
X 93: 11.0407066345215 Y 93: -5.90429449081421 ID 93:
X 94: 11.253475189209 Y 94: -5.4361777305603 ID 94:
X 95: 12.8185033798218 Y 95: 12.49391746521 ID 95:
X 96: 13.1338787078857 Y 96: -14.3482809066772 ID 96:
X 97: 13.5566492080688 Y 97: 0.553040564060211 ID 97:
X 98: 14.7722053527832 Y 98: 8.21956825256348 ID 98:
X 99: 22.321870803833 Y 99: -8.4517707824707 ID 99:
which means that several ID:s have disappeared, or have never been added correctly to the series in the first place.
Is this a bug, or do I use the wrong method to add points?
Best regards
Elisabeth
I add points to a series using the code:
for(int i = 0; i < scoreDataX.Length; i++)
{
scoreSeries2D.Add((double)scoreDataX, (double)scoreDataY,
scorePlotIDs.ToString(), defaultColor);
Debug.WriteLine("X " + i.ToString() + ": " + scoreDataX.ToString()
+ " Y " + i.ToString() + ": " + scoreDataY.ToString()
+ " ID " + i.ToString() + ": " + scorePlotIDs.ToString());
}
The Debug statement gives the following output:
X 0: 8.807114 Y 0: -1.686315 ID 0: 300000000
X 1: -5.918607 Y 1: 4.803197 ID 1: 300000001
X 2: -2.766465 Y 2: 4.986518 ID 2: 300000002
X 3: -13.3359 Y 3: -12.33331 ID 3: 300000003
X 4: 6.481991 Y 4: -5.348303 ID 4: 300000004
X 5: 2.508724 Y 5: 9.91759 ID 5: 300000005
X 6: -1.698888 Y 6: -4.560288 ID 6: 300000006
X 7: 14.77221 Y 7: 8.219568 ID 7: 300000007
X 8: -5.968975 Y 8: -10.16554 ID 8: 300000008
X 9: -1.721106 Y 9: 3.600026 ID 9: 300000009
X 10: 5.51805 Y 10: -5.213896 ID 10: 300000010
X 11: 13.13388 Y 11: -14.34828 ID 11: 300000011
X 12: 9.796832 Y 12: -5.505568 ID 12: 300000012
X 13: -17.09833 Y 13: 8.642034 ID 13: 300000013
X 14: -12.87222 Y 14: 5.593857 ID 14: 300000014
X 15: -14.1362 Y 15: 8.763436 ID 15: 300000015
X 16: -11.49353 Y 16: 0.2560991 ID 16: 300000016
X 17: 0.1840196 Y 17: 5.066359 ID 17: 300000017
X 18: 6.427471 Y 18: 7.038807 ID 18: 300000018
X 19: 8.283397 Y 19: 10.85125 ID 19: 300000019
X 20: -9.868889 Y 20: -0.3038975 ID 20: 300000020
X 21: -1.336187 Y 21: -4.781142 ID 21: 300000021
X 22: 11.04071 Y 22: -5.904294 ID 22: 300000022
X 23: -2.797259 Y 23: 9.633656 ID 23: 300000023
X 24: 2.065593 Y 24: -0.5431131 ID 24: 300000024
X 25: 11.25348 Y 25: -5.436178 ID 25: 300000025
X 26: 8.721117 Y 26: -1.593235 ID 26: 300000026
X 27: -1.088272 Y 27: 8.525608 ID 27: 300000027
X 28: -1.876912 Y 28: 2.075644 ID 28: 300000028
X 29: 4.454688 Y 29: -6.308055 ID 29: 300000029
X 30: -6.403812 Y 30: 0.4291565 ID 30: 300000030
X 31: -3.213131 Y 31: -11.43222 ID 31: 300000031
X 32: -0.920768 Y 32: 5.734175 ID 32: 300000032
X 33: 10.5321 Y 33: -9.355244 ID 33: 300000033
X 34: 3.251503 Y 34: 12.67462 ID 34: 300000034
X 35: -5.32918 Y 35: -8.798972 ID 35: 300000035
X 36: 6.596635 Y 36: -4.797789 ID 36: 300000036
X 37: -0.7197083 Y 37: -1.760981 ID 37: 300000037
X 38: -2.200247 Y 38: -2.082434 ID 38: 300000038
X 39: -3.065905 Y 39: 1.003144 ID 39: 300000039
X 40: 4.152611 Y 40: 5.41301 ID 40: 300000040
X 41: 3.731406 Y 41: 9.086006 ID 41: 300000041
X 42: -6.553025 Y 42: 3.679504 ID 42: 300000042
X 43: 22.32187 Y 43: -8.451771 ID 43: 300000043
X 44: -6.649737 Y 44: 2.702491 ID 44: 300000044
X 45: -5.93023 Y 45: -10.9881 ID 45: 300000045
X 46: -3.312553 Y 46: -2.83677 ID 46: 300000046
X 47: -4.887503 Y 47: -14.26085 ID 47: 300000047
X 48: 7.529714 Y 48: 3.808398 ID 48: 300000048
X 49: -2.314616 Y 49: -3.268444 ID 49: 300000049
X 50: -3.300919 Y 50: 12.02525 ID 50: 300000050
X 51: -5.990618 Y 51: 4.80233 ID 51: 300000051
X 52: -18.54162 Y 52: -1.481376 ID 52: 300000052
X 53: -0.3408661 Y 53: 1.289963 ID 53: 300000053
X 54: 2.659326 Y 54: 0.8738599 ID 54: 300000054
X 55: 5.288954 Y 55: 10.80279 ID 55: 300000055
X 56: 8.421656 Y 56: -12.28192 ID 56: 300000056
X 57: 4.012159 Y 57: 1.646333 ID 57: 300000057
X 58: 12.8185 Y 58: 12.49392 ID 58: 300000058
X 59: 7.871731 Y 59: -9.728095 ID 59: 300000059
X 60: 3.992452 Y 60: 7.67177 ID 60: 300000060
X 61: -11.58646 Y 61: -5.386061 ID 61: 300000061
X 62: 0.1168265 Y 62: 0.0453207 ID 62: 300000062
X 63: -5.811755 Y 63: -6.564913 ID 63: 300000063
X 64: 13.55665 Y 64: 0.5530406 ID 64: 300000064
X 65: -7.925404 Y 65: 1.2372 ID 65: 300000065
X 66: -4.992062 Y 66: -7.127776 ID 66: 300000066
X 67: 1.799309 Y 67: 6.221422 ID 67: 300000067
X 68: 0.8041393 Y 68: -9.314793 ID 68: 300000068
X 69: -6.721719 Y 69: -0.5586005 ID 69: 300000069
X 70: 3.890765 Y 70: -3.390866 ID 70: 300000070
X 71: 9.392538 Y 71: -9.468134 ID 71: 300000071
X 72: -0.8370125 Y 72: -8.833076 ID 72: 300000072
X 73: -14.30522 Y 73: 0.2148463 ID 73: 300000073
X 74: -2.932679 Y 74: 2.781985 ID 74: 300000074
X 75: -4.055921 Y 75: -5.988229 ID 75: 300000075
X 76: -14.23881 Y 76: -6.225345 ID 76: 300000076
X 77: 7.106741 Y 77: 10.88551 ID 77: 300000077
X 78: -1.836887 Y 78: -9.135163 ID 78: 300000078
X 79: -11.1856 Y 79: -7.552323 ID 79: 300000079
X 80: -9.036282 Y 80: 15.48797 ID 80: 300000080
X 81: 0.5657609 Y 81: -5.699197 ID 81: 300000081
X 82: 3.79484 Y 82: 19.3576 ID 82: 300000082
X 83: -1.647336 Y 83: -2.38414 ID 83: 300000083
X 84: 9.685876 Y 84: 13.86285 ID 84: 300000084
X 85: -9.28321 Y 85: 4.683095 ID 85: 300000085
X 86: -4.149434 Y 86: -1.308298 ID 86: 300000086
X 87: 6.972943 Y 87: 5.112518 ID 87: 300000087
X 88: 4.618228 Y 88: 8.078854 ID 88: 300000088
X 89: -7.275227 Y 89: -0.2109797 ID 89: 300000089
X 90: 7.927324 Y 90: 2.659873 ID 90: 300000090
X 91: 9.165181 Y 91: -10.17105 ID 91: 300000091
X 92: -2.770464 Y 92: 7.365217 ID 92: 300000092
X 93: -0.4845928 Y 93: -8.27889 ID 93: 300000093
X 94: 1.605501 Y 94: 4.243686 ID 94: 300000094
X 95: -2.663626 Y 95: -8.800159 ID 95: 300000095
X 96: -0.7238067 Y 96: 4.662794 ID 96: 300000096
X 97: 1.334391 Y 97: 0.6576027 ID 97: 300000097
X 98: 4.526551 Y 98: 1.117927 ID 98: 300000098
X 99: 4.62224 Y 99: -1.385314 ID 99: 300000099
I.e. all ID:s exist in the original arrays and as I understand should also be added to the series in the label property for each point.
However they have not been added to the series...
In my code the next line is:
for(int i = 0; i < scoreSeries2D.XValues.Count; i++)
{
Debug.WriteLine("X " + i.ToString() + ": " + scoreSeries2D.XValues.ToString()
+ " Y " + i.ToString() + ": " + scoreSeries2D.YValues.ToString()
+ " ID " + i.ToString() + ": " + scoreSeries2D.Label);
}
The output from this Debug statement is:
X 0: -18.5416221618652 Y 0: -1.48137605190277 ID 0: 300000052
X 1: -17.098331451416 Y 1: 8.64203357696533 ID 1: 300000015
X 2: -14.3052215576172 Y 2: 0.214846253395081 ID 2: 300000073
X 3: -14.238808631897 Y 3: -6.22534513473511 ID 3: 300000076
X 4: -14.1361980438232 Y 4: 8.76343631744385 ID 4: 300000016
X 5: -13.3359003067017 Y 5: -12.3333101272583 ID 5: 300000061
X 6: -12.8722238540649 Y 6: 5.59385681152344 ID 6: 300000044
X 7: -11.5864572525024 Y 7: -5.38606119155884 ID 7: 300000010
X 8: -11.4935264587402 Y 8: 0.256099075078964 ID 8: 300000065
X 9: -11.1856002807617 Y 9: -7.55232334136963 ID 9: 300000079
X 10: -9.86888885498047 Y 10: -0.303897529840469 ID 10: 300000045
X 11: -9.28320980072021 Y 11: 4.68309545516968 ID 11: 300000085
X 12: -9.03628158569336 Y 12: 15.4879732131958 ID 12:
X 13: -7.92540407180786 Y 13: 1.23719966411591 ID 13: 300000047
X 14: -7.27522706985474 Y 14: -0.210979744791985 ID 14: 300000089
X 15: -6.72171926498413 Y 15: -0.558600544929504 ID 15: 300000063
X 16: -6.6497368812561 Y 16: 2.70249080657959 ID 16:
X 17: -6.55302476882935 Y 17: 3.67950439453125 ID 17: 300000032
X 18: -6.40381193161011 Y 18: 0.429156482219696 ID 18: 300000066
X 19: -5.99061822891235 Y 19: 4.80233001708984 ID 19: 300000049
X 20: -5.96897506713867 Y 20: -10.1655435562134 ID 20: 300000026
X 21: -5.93022966384888 Y 21: -10.9880981445313 ID 21: 300000034
X 22: -5.91860675811768 Y 22: 4.80319690704346 ID 22: 300000075
X 23: -5.81175518035889 Y 23: -6.56491327285767 ID 23: 300000025
X 24: -5.32917976379395 Y 24: -8.79897212982178 ID 24:
X 25: -4.99206161499023 Y 25: -7.12777614593506 ID 25:
X 26: -4.88750267028809 Y 26: -14.2608547210693 ID 26: 300000086
X 27: -4.14943361282349 Y 27: -1.30829763412476 ID 27: 300000036
X 28: -4.05592107772827 Y 28: -5.98822927474976 ID 28:
X 29: -3.31255316734314 Y 29: -2.83676981925964 ID 29: 300000033
X 30: -3.30091857910156 Y 30: 12.0252475738525 ID 30:
X 31: -3.21313142776489 Y 31: -11.4322166442871 ID 31: 300000053
X 32: -3.06590485572815 Y 32: 1.00314438343048 ID 32:
X 33: -2.93267869949341 Y 33: 2.78198456764221 ID 33: 300000062
X 34: -2.79725861549377 Y 34: 9.6336555480957 ID 34: 300000078
X 35: -2.77046394348145 Y 35: 7.36521673202515 ID 35: 300000092
X 36: -2.7664647102356 Y 36: 4.98651838302612 ID 36:
X 37: -2.66362571716309 Y 37: -8.80015850067139 ID 37: 300000095
X 38: -2.31461620330811 Y 38: -3.26844382286072 ID 38: 300000068
X 39: -2.20024728775024 Y 39: -2.08243441581726 ID 39: 300000083
X 40: -1.87691235542297 Y 40: 2.07564377784729 ID 40: 300000055
X 41: -1.83688652515411 Y 41: -9.13516330718994 ID 41:
X 42: -1.72110569477081 Y 42: 3.60002636909485 ID 42:
X 43: -1.69888818264008 Y 43: -4.56028842926025 ID 43: 300000043
X 44: -1.64733636379242 Y 44: -2.3841404914856 ID 44:
X 45: -1.33618688583374 Y 45: -4.78114223480225 ID 45:
X 46: -1.08827173709869 Y 46: 8.52560806274414 ID 46: 300000070
X 47: -0.920767962932587 Y 47: 5.73417520523071 ID 47: 300000081
X 48: -0.837012529373169 Y 48: -8.83307552337646 ID 48:
X 49: -0.723806738853455 Y 49: 4.66279411315918 ID 49: 300000096
X 50: -0.719708323478699 Y 50: -1.76098096370697 ID 50:
X 51: -0.484592765569687 Y 51: -8.27888965606689 ID 51:
X 52: -0.340866148471832 Y 52: 1.28996336460114 ID 52:
X 53: 0.11682653427124 Y 53: 0.045320700854063 ID 53:
X 54: 0.184019580483437 Y 54: 5.06635904312134 ID 54:
X 55: 0.565760910511017 Y 55: -5.69919729232788 ID 55: 300000094
X 56: 0.804139256477356 Y 56: -9.31479263305664 ID 56:
X 57: 1.33439087867737 Y 57: 0.657602667808533 ID 57: 300000097
X 58: 1.60550081729889 Y 58: 4.24368619918823 ID 58:
X 59: 1.79930865764618 Y 59: 6.22142171859741 ID 59:
X 60: 2.06559300422668 Y 60: -0.543113112449646 ID 60:
X 61: 2.50872445106506 Y 61: 9.91759014129639 ID 61: 300000077
X 62: 2.65932631492615 Y 62: 0.873859941959381 ID 62: 300000071
X 63: 3.2515025138855 Y 63: 12.6746244430542 ID 63:
X 64: 3.73140573501587 Y 64: 9.08600616455078 ID 64: 300000088
X 65: 3.79483985900879 Y 65: 19.3576011657715 ID 65:
X 66: 3.89076542854309 Y 66: -3.39086604118347 ID 66:
X 67: 3.9924521446228 Y 67: 7.67176961898804 ID 67:
X 68: 4.01215887069702 Y 68: 1.64633250236511 ID 68:
X 69: 4.15261125564575 Y 69: 5.41300964355469 ID 69: 300000087
X 70: 4.45468807220459 Y 70: -6.30805540084839 ID 70:
X 71: 4.52655124664307 Y 71: 1.11792683601379 ID 71: 300000098
X 72: 4.61822843551636 Y 72: 8.07885360717773 ID 72:
X 73: 4.62223958969116 Y 73: -1.3853143453598 ID 73: 300000099
X 74: 5.28895378112793 Y 74: 10.8027925491333 ID 74:
X 75: 5.51804971694946 Y 75: -5.21389627456665 ID 75: 300000090
X 76: 6.42747116088867 Y 76: 7.03880739212036 ID 76:
X 77: 6.48199129104614 Y 77: -5.34830331802368 ID 77:
X 78: 6.59663486480713 Y 78: -4.79778909683228 ID 78:
X 79: 6.97294330596924 Y 79: 5.11251783370972 ID 79:
X 80: 7.10674095153809 Y 80: 10.8855123519897 ID 80: 300000091
X 81: 7.52971363067627 Y 81: 3.80839800834656 ID 81:
X 82: 7.87173128128052 Y 82: -9.72809505462646 ID 82:
X 83: 7.92732381820679 Y 83: 2.65987277030945 ID 83:
X 84: 8.28339672088623 Y 84: 10.8512477874756 ID 84:
X 85: 8.42165565490723 Y 85: -12.2819242477417 ID 85:
X 86: 8.72111701965332 Y 86: -1.5932354927063 ID 86:
X 87: 8.80711364746094 Y 87: -1.68631517887115 ID 87:
X 88: 9.16518115997314 Y 88: -10.1710472106934 ID 88:
X 89: 9.39253807067871 Y 89: -9.4681339263916 ID 89:
X 90: 9.68587589263916 Y 90: 13.8628530502319 ID 90:
X 91: 9.79683208465576 Y 91: -5.50556755065918 ID 91:
X 92: 10.5321035385132 Y 92: -9.35524368286133 ID 92:
X 93: 11.0407066345215 Y 93: -5.90429449081421 ID 93:
X 94: 11.253475189209 Y 94: -5.4361777305603 ID 94:
X 95: 12.8185033798218 Y 95: 12.49391746521 ID 95:
X 96: 13.1338787078857 Y 96: -14.3482809066772 ID 96:
X 97: 13.5566492080688 Y 97: 0.553040564060211 ID 97:
X 98: 14.7722053527832 Y 98: 8.21956825256348 ID 98:
X 99: 22.321870803833 Y 99: -8.4517707824707 ID 99:
which means that several ID:s have disappeared, or have never been added correctly to the series in the first place.
Is this a bug, or do I use the wrong method to add points?
Best regards
Elisabeth