Oct 15, 2013, 2:01 PM
[CLOSED] MVC - Bar Chart - SeriesLabel with Contrast = true
Hi,
With bar chart, I handle to customize bar color and set SeriesLabel().Contrast(true) but the result is not good.
Thanks,
With bar chart, I handle to customize bar color and set SeriesLabel().Contrast(true) but the result is not good.
.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).Orientation(Orientation.Horizontal).Renderer(function => 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,
Last edited by Daniil; Oct 22, 2013 at 2:39 PM.
Reason: [CLOSED]