Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
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