我正在使用WPF Toolkit进行制图 . 我有问题,我无法解决:

  • 如果我在图表中有多个系列 . 我正在使用日期时间轴 . 问题是图表没有显示我的第一列正确 . 我认为图像是自我解释的:

enter image description here

  • 我的每个树列都有一个复选框 . 但是当我将列的可见性设置为Collapsed时,该列就被隐藏了 . 我想要的是,2个可见列在它们之间划分自由空间,因此每列的宽度会更高 .

有任何想法吗?

图表的XAML:

<charting:Chart BorderThickness="0"
            x:Name="StackedLineChart"
            Title=""
            Margin="5">
        <charting:Chart.Axes>
            <charting:DateTimeAxis Interval="1" IntervalType="Months" x:Name="myDateTimeAxis"
                            Orientation="X" Title="Date">
                <charting:DateTimeAxis.AxisLabelStyle>
                    <Style TargetType="charting:DateTimeAxisLabel">
                        <Setter Property="StringFormat" Value="{}{0:MMMM}"/>
                    </Style>
                </charting:DateTimeAxis.AxisLabelStyle>
            </charting:DateTimeAxis>
            <charting:LinearAxis Orientation="Y" ShowGridLines="True" x:Name="myYAxis"
                                Title="Schedules count"/>
        </charting:Chart.Axes>
        <charting:Chart.LegendStyle>
            <Style TargetType="datavis:Legend">
                <Setter Property="Width" Value="0" />
            </Style>
        </charting:Chart.LegendStyle>
        <charting:Chart.Series>
        <charting:ColumnSeries ItemsSource="{Binding Data}"
                    IndependentValuePath="Date"
                    IsSelectionEnabled="True"
                    DependentValuePath="1Value">
        </charting:ColumnSeries>
        <charting:ColumnSeries ItemsSource="{Binding Data}"
                    IndependentValuePath="Date"
                    IsSelectionEnabled="True"
                    DependentValuePath="2Value">
        </charting:ColumnSeries>
        <charting:ColumnSeries ItemsSource="{Binding Data}"
                    IndependentValuePath="Date"
                    IsSelectionEnabled="True"
                    DependentValuePath="3Value">
        </charting:ColumnSeries>
        </charting:Chart.Series>
    </charting:Chart>