Thanks for the help. Function GetNearestPoint doesn't work not only for speed but also in bad result. I try to describe what I would like to plot in the colour map.
I have let say 5 XY datasets of 10 members (for example 10 differents temperatures during the day in 5 different places around the world).
day time: 6 8 10 12 14 16 18 20 22 24
London: 15.5 16.8 25.4 23.2 24.2 25.6 20.5 18.9 15.8 15.0
New York: 20.2 21.8 22.0 23.5 24.8 25.0 24.8 23.2 22.1 20.1
Tokyo: 18.2 19.1 19.8 19.9 20.1 21.1 22.0 21.1 20.8 20.7
Berlin: 25.5 25.8 26.1 26.0 26.2 26.5 26.4 26.1 25.8 25.7
Madrid: 28.2 28.6 28.7 28.9 29.2 30.5 30.1 30.0 29.8 29.4
So I have 5 XY datasets like for London [6, 15.5][8, 16.8][10, 25.4]....
In the color map I would like to have X axis like 6 8 10 12 ...., Y axis like easy 1, 2, 3, 4, 5 (London, New York, ...) and the color level represent the temperature.
It start to be clear?
Premek