[CLOSED] MVC - Bar Chart - SeriesLabel with Contrast = true

  1. #1

    [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.

    Click image for larger version. 

Name:	chart_contrast.png 
Views:	10 
Size:	56.0 KB 
ID:	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).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]
  2. #2
    Hi @immenso,

    Could you, please, provide a full test case?

Similar Threads

  1. Replies: 2
    Last Post: Jun 20, 2013, 10:32 AM
  2. Replies: 2
    Last Post: Oct 04, 2012, 10:14 AM
  3. SeriesLabel Not Working
    By sysmo in forum 2.x Help
    Replies: 0
    Last Post: Oct 03, 2012, 1:46 PM
  4. Replies: 0
    Last Post: May 04, 2010, 7:08 AM
  5. Replies: 0
    Last Post: Sep 04, 2009, 3:23 PM

Posting Permissions