975
how do I format numbers to 2 decimal places in a chart ?
posted

series.Column("ClosePrice")
                                        .XAxis("EnergyProductAxis")
                                        .YAxis("PriceAxis")
                                        .IsHighlightingEnabled(true)
                                        .IsTransitionInEnabled(true)
                                        .ValueMemberPath(v => v.CurrentMidPrice).to
                                        .ShowTooltip(true)
                                        .Brush("#F50512")
                                        .TransitionInMode(CategoryTransitionInMode.FromZero)
                                        .TransitionDuration(1000)
                                        .TransitionInDuration(1000)
                                        .TransitionInSpeedType(TransitionInSpeedType.Normal)
                                        .Title("Close Price (£/MWh)").Legend(legend => legend.ID("legend1"));

this sometimes displays no decimal places and sometime 2, I need it to consistently show 2 decimal places

so

54.00

65.35

etc