I use System.Windows.Controls.DataVisualization.Charting
to draw and show a chart with a LineSeries whose Y values are in a range between 1 to 5. I add values to LineSeries with System.Collections.Generic.KeyValuePair(TKey,TValue)
. Instead of showing numbers from 1 to 5 in the Y label chart, I want to show letters from E to A.
How can I achieve this results?
First create a Converter to convert the numeric values to alphabet ones:
use that converter to define a custom Y label style :
here the hole UI and the corresponding code behind
the code behind :