When I try the following I just get the underlining number: 343526.3
<ChartSeriesTooltip Visible="true">
<Template>
@(string.Format("{0:C2}", (context.FormattedValue as object)))
</Template>
</ChartSeriesTooltip>
When I try, I get:
<ChartSeriesTooltip Visible="true">
<Template>
@(string.Format("{0:C2}", (context.DataItem as object)))
</Template>
</ChartSeriesTooltip>
I am not sure what I am doing wrong here.
the class tis attached to:
public class MDRevNCostOverTime
{
[DisplayFormat(DataFormatString = "{0:C}")]
public decimal Series1 { get; set; }
[DisplayFormat(DataFormatString = "{0:C}")]
public decimal Series2 { get; set; }
}