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
280
How do I put a StackedBar series and a Bar series on the same chart?
posted

I'm using the XamWebChart and I am trying to display some StackedBar data and Bar data for the same item next to each other but the StackedBar data appears to be getting drawn on top of the Bar data so as to make it invisible.  Any ideas on how I can get both to display side by side without any problems?

Parents
No Data
Reply
  • 28496
    Suggested Answer
    Offline posted

    unfortunately we don't have this type of chart available.  the closest you can get is displaying a stack with only one value in it, like this code will do:

    <igChart:XamChart x:Name="theChart">
              
                <igChart:XamChart.Series>
                    <igChart:Series ChartType="StackedBar" Label="Series A">
                        <igChart:Series.DataPoints>
                            <igChart:DataPoint Value="1" />
                            <igChart:DataPoint Value="2" />
                        </igChart:Series.DataPoints>
                    </igChart:Series>
                    <igChart:Series ChartType="StackedBar" Label="Series B">
                        <igChart:Series.DataPoints>
                            <igChart:DataPoint Value="1" />
                        </igChart:Series.DataPoints>
                    </igChart:Series>
                </igChart:XamChart.Series>
            
            </igChart:XamChart>

Children
No Data