我想在我的 Silverlight 工具包水平条形图上显示 3 个系列...2 个普通条形系列和 1 个堆叠条形系列(由 2 个组成SeriesDefinition
)。当我添加前 2 个普通条形系列时,它们按预期彼此相邻显示。但是当我添加堆叠系列时,它占据了整行的高度。有什么方法可以组合这两种类型的系列,使其从上到下显示为 - 堆叠、条形、条形?
这是我目前的设置方式:
<charts:Chart Title="Manufacturer Overview" LegendTitle="Legend" Style="{StaticResource ZChartNoBackground}">
<charts:Chart.Series>
<charts:StackedBarSeries>
<charts:SeriesDefinition Title="Oppotunities"
ItemsSource="{Binding Path=TotalValueInFunnelByVendor}"
IndependentValueBinding="{Binding IndependentValue}"
DependentValueBinding="{Binding DependentValue}">
</charts:SeriesDefinition>
<!--SAMPLE DATA UNTIL REAL DATA IS IN-->
<charts:SeriesDefinition Title="Flow Business"
ItemsSource="{Binding Path=TotalValueInFunnelByVendor}"
IndependentValueBinding="{Binding IndependentValue}"
DependentValueBinding="{Binding DependentValue}">
</charts:SeriesDefinition>
</charts:StackedBarSeries>
<charts:BarSeries Title="Sales to date"
ItemsSource="{Binding Path=SalesToDateByVendor}"
IndependentValueBinding="{Binding IndependentValue}"
DependentValueBinding="{Binding DependentValue}">
</charts:BarSeries>
<charts:BarSeries Title="Forecasted"
ItemsSource="{Binding Path=ForecastedSalesByVendor}"
IndependentValueBinding="{Binding IndependentValue}"
DependentValueBinding="{Binding DependentValue}">
</charts:BarSeries>
</charts:Chart.Series>
</charts:Chart>
这是图表的图像。请注意,绿色和红色条已正确放置,但堆叠条是行的高度,位于其他 2 个系列的“后面”: