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
585
Grouping Bar Charts?
posted

I am using a xamWEbChart 10.3 in a SL4 app.

I have a stacked bar chart with 20 horizontal bars. My user would like to see bar 1 and bar 2 grouped so that they are touching, then a space, then bar 3 and 4 touching, etc.

Is there any way to do this?

 

Steven

Parents
No Data
Reply
  • 816
    Suggested Answer
    posted

    Yes, you can accomplish this by adding two Series to the SeriesCollection.  This will group the bars so that they are touching.

        <Grid x:Name="LayoutRoot" Background="White">
            <igChart:XamWebChart>
                <igChart:XamWebChart.Series>
                    <igChart:Series ChartType="Column">
                        <igChart:Series.DataPoints>
                            <igChart:DataPoint   Value="10" Label="A" />
                            <igChart:DataPoint   Value="20" Label="B" />
                            <igChart:DataPoint   Value="30" Label="C"  />
                        </igChart:Series.DataPoints>
                    </igChart:Series>
                    <igChart:Series ChartType="Column">
                        <igChart:Series.DataPoints>
                            <igChart:DataPoint   Value="40" Label="A" />
                            <igChart:DataPoint   Value="50" Label="B" />
                            <igChart:DataPoint   Value="60" Label="C"  />
                        </igChart:Series.DataPoints>
                    </igChart:Series>
                </igChart:XamWebChart.Series>
            </igChart:XamWebChart>
    
Children