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
435
Need to make a "simple" column chart
posted

I have the following dataset:

 

State      Count

Open       13

Closed   23

Canceled  15

 

The problem is, when i bind this to the chart, all three "columns" are the same color.  How do I make them different colors?  Also, It will says Open, Closed and Canceled (in horizontal text) with the word "Count" vertical above each word.  How do i get rid of the "Count" caption?

 

Thanks,
Rob

  • 2406
    Verified Answer
    posted

    Hi Rob,

    The "Count" caption could be hidden as follows:

    UltraChart1.Axis.X.Labels.ItemFormat = Infragistics.UltraChart.Shared.Styles.AxisItemLabelFormat.None;

    The columns color could be set to different colors by ModelStyle of the chart:

    UltraChart1.ColorModel.ModelStyle = Infragistics.UltraChart.Shared.Styles.ColorModels.DataValueCustomLinear;

    Let me know if this helps.