I'm hoping this is possible as we are allowing end users to optionally set the min and max value axis amounts. I would like the chart itself to set either or both the Min or Max if the decimal? field is null. Right now I'm using the following code snippet:
.ValueAxis(x => x.Numeric()
.Min(Model.YAxisRangeMin.GetValueOrDefault())
.Max(Model.YAxisRangeMax.GetValueOrDefault()))
This works fine if the decimal? fields have values, but if they are null, the defaults are set to 0, which is not good.
Problem is, I really only want to set a Min/Max value if it is not null. Any ideas how to do that within the control? Am I going to have to calculate the max on the server and use that as the default for the YAxisRangeMax if null? Min as 0 is fine.
Thanks!