Drawing chart with decimal value

May 3, 2015 at 12:37 PM
Hello!

I am trying to use the LineChart with decimal value.
If I am trying with decimal the chart is drawing but the Amount is always 0.
    public class Temp
    {
        public string Name { get; set; }
        public decimal Amount { get; set; }
    }
If I am trying with int the chart is drawing and the Amount is showing the correct value.
    public class Temp
    {
        public string Name { get; set; }
        public int Amount { get; set; }
    }

Is it supposed to work with decimal instead of int?

Thanks
Coordinator
May 3, 2015 at 5:12 PM
I vaguely recall there were issues with types other than int or double when I was originally porting it from Silverlight. I would try converting your values to doubles or forking the code and taking a stab at fixing this.
May 3, 2015 at 5:28 PM
xyzzer wrote:
I vaguely recall there were issues with types other than int or double when I was originally porting it from Silverlight. I would try converting your values to doubles or forking the code and taking a stab at fixing this.
Thanks for your quick answer! Unfortunately it is not working with double only with int.