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
589
Column - Setting the bar width
posted

Hi

 

I am using the column chart to display the graph and the bar width depends on the number of  rows in the data table.

For example, if the datatable contains only two rows, then the two bar appears in the chart and each bar occupies 50% of the chart area. If there are four rows, then each bar occupies 25% of the chart area.

I would like to use a constant bar width instead of variant width based on the number of records. Can I set the bar width?. Can you show me an example?

 

Regards, Karthik

Parents
  • 27093
    posted

    Hello Karthik,

     

    It sounds like you are using the StackColumnChart. To override it either run the chartWizzard and select ColumnChart or set the ChartType in the Form :Loaded event like so:

    ultraChart1.ChartType = Infragistics.UltraChart.Shared.Styles.

    ChartType.ColumnChart;

    Sincerely,

    Petar Monov

    Developer Support Engineer,

    Infragistics, Inc

     

  • 589
    posted in reply to [Infragistics] Petar Monov

    Petar,

    Thanks for the response.

    I don’t think, the issue is in selecting the chart type and I have mentioned rows instead of columns in my post that might have caused this confusion.

    Please refer the attached word document.

Reply Children