C# 动态数据显示中的图表

C# 动态数据显示中的图表,c#,charts,highcharts,bar-chart,dynamic-data-display,C#,Charts,Highcharts,Bar Chart,Dynamic Data Display,我正在Microsoft visual studio 2010中开发,包括参考动态数据显示。 我想创建条形图(inthorizental axis X intvertical axis)和条形图2(DateTime horizental axis X intvertical axis)以及饼图。 我发现创建酒吧很困难。我需要从数据库“Access”中获取日期。 我读到的所有例子都是c代码中定义的日期。 我真的希望你能理解我,这是我第一次在这里问问题,所以要客气:)。谢谢,祝你今天愉快。 链接到工

我正在Microsoft visual studio 2010中开发,包括参考动态数据显示。 我想创建条形图(inthorizental axis X intvertical axis)和条形图2(DateTime horizental axis X intvertical axis)以及饼图。 我发现创建酒吧很困难。我需要从数据库“Access”中获取日期。 我读到的所有例子都是c代码中定义的日期。 我真的希望你能理解我,这是我第一次在这里问问题,所以要客气:)。谢谢,祝你今天愉快。 链接到工作示例将被接受

<Window x:Class="GraphService.ManagersCharts.BarChartManager"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        mc:Ignorable="d"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:d3="http://research.microsoft.com/DynamicDataDisplay/1.0"
        Title="Window1"
        WindowState="Normal"
        Height="500"
        Width="800"
        Background="Wheat">

        <Grid >
        <d3:ChartPlotter Name="plotter"
                         Margin="10,10,20,10">
            <d3:ChartPlotter.HorizontalAxis>
                <d3:HorizontalIntegerAxis Name="HorizentalAxis" />
            </d3:ChartPlotter.HorizontalAxis>
            <d3:ChartPlotter.VerticalAxis>
                <d3:VerticalIntegerAxis Name="VerticalAxis" />
            </d3:ChartPlotter.VerticalAxis>

            <d3:Header FontFamily="Arial"
                       Content="Bar Chart" />
            <d3:VerticalAxisTitle FontFamily="Arial"
                                  Content="" />
            <d3:HorizontalAxisTitle FontFamily="Arial"
                                    Content="" />
        </d3:ChartPlotter>
    </Grid>

</Window>


希望下面的链接能帮助你…..你可以添加你的代码你所做的一切会变得简单帮助我所做的是创建基本图形(Int X Int),但我不知道如何将数据加载到其中并创建条形图。此外,我不知道如何使水平轴成为日期时间。我正在添加xaml代码,我不认为它真的有帮助,这只是一个乞讨。