PDA

View Full Version : [CLOSED] MVC - Bar Chart - SeriesLabel with Contrast = true



immenso
Oct 15, 2013, 2:01 PM
Hi,

With bar chart, I handle to customize bar color and set SeriesLabel().Contrast(true) but the result is not good.

7045


.Series(X.BarSeries()
.Axis(Position.Bottom)
.Highlight(true)
.XField("Title")
.CustomConfig(collection => collection.Add(new ConfigItem("fill", SessionManager.Instance.SelectedItemFill, ParameterMode.Value)))
.YField("Value")
.Label(X.SeriesLabel().Display(SeriesLabelDisplay. InsideStart).Field(new[] { "Value" }).Contrast(true).Font(Constants.ChartLabelFont).O rientation(Orientation.Horizontal).Renderer(functi on => function.Handler = "return Ext.String.format('{0}, {1}', item.value[0], item.value[1]);")
).Renderer(function => function.Handler = "attributes.fill = this.fill ; return attributes;")))

Could you please tell me how to fix it?
Thanks,

Daniil
Oct 15, 2013, 4:26 PM
Hi @immenso,

Could you, please, provide a full test case?