using Syncfusion.UI.Xaml.Charts;
public static SfChart InitCompareChart(string fundName, double tenThousandRate, double sevenRate)
{
List<FundDay> fdl = new List<FundDay>();
fdl.Add(new FundDay(fundName, tenThousandRate, sevenRate));
fdl.Add(new FundDay("定期三年", 1.0274, 3.75));
fdl.Add(new FundDay("定期二年", 0.5753, 2.10));
fdl.Add(new FundDay("定期一年", 0.4109, 1.50));
fdl.Add(new FundDay("定期半年", 0.3562, 1.30));
fdl.Add(new FundDay("定期三月", 0.3014, 1.10));
fdl.Add(new FundDay("活期", 0.0959, 0.35)); SfChart chart = new SfChart();
chart.HorizontalAlignment = HorizontalAlignment.Stretch;
chart.VerticalAlignment = VerticalAlignment.Stretch;
chart.Header = string.Format("{0}与央行基准存款利率比较", fundName);
chart.FontSize = ; //https://www.syncfusion.com/products/wpf/sfchart/chart-types
BarSeries series1 = new BarSeries();//ColumnSeries 垂直;BarSeries 水平
series1.Label = "七日年化收益(%)";
series1.ItemsSource = fdl;
series1.XBindingPath = "Date"; // XBindingPath to provide the path for category data in the source object.
series1.YBindingPath = "SevenRate"; // YBindingPath to provide the path for numeric data in the source object.
series1.AdornmentsInfo = new ChartAdornmentInfo();
series1.AdornmentsInfo.ShowLabel = true; BarSeries series2 = new BarSeries();
series2.Label = "当日万份收益(元)";
series2.ItemsSource = fdl;
series2.XBindingPath = "Date";
series2.YBindingPath = "TenThousandRate";
series2.AdornmentsInfo = new ChartAdornmentInfo();
series2.AdornmentsInfo.ShowLabel = true; //Adding Series to the Chart Series Collection
chart.Series.Add(series1);
chart.Series.Add(series2); //http://help.syncfusion.com/winrt/sfchart/axis
chart.PrimaryAxis = new CategoryAxis();
chart.PrimaryAxis.Foreground = new Windows.UI.Xaml.Media.SolidColorBrush(Windows.UI.Colors.Green);
chart.SecondaryAxis = new NumericalAxis();
chart.SecondaryAxis.Foreground = new Windows.UI.Xaml.Media.SolidColorBrush(Windows.UI.Colors.Green); //Adding Legends for the chart
chart.Legend = new ChartLegend() { Visibility = Visibility.Visible };
return chart;
}
this.chartGrid.Children.Clear();
SfChart chart = Functions.WinrtChartHelper.InitCompareChart(CurrentFund);
this.chartGrid.Children.Add(chart);

//https://www.syncfusion.com/downloads/communitylicense/confirmation
//http://help.syncfusion.com/winrt/sfchart/getting-started

Syncfusion在WinPhone8.1实现统计图的更多相关文章

  1. 【Java EE 学习 74 下】【数据采集系统第六天】【使用Jfreechart的统计图实现】【将JFreechart整合到项目中】

    之前说了JFreechart的基本使用方法,包括生成饼图.柱状统计图和折线统计图的方法.现在需要将其整合到数据采集系统中根据调查结果生成三种不同的统计图. 一.统计模型的分析和设计 实现统计图显示的流 ...

  2. 【Java EE 学习 74 上】【数据采集系统第六天】【使用Jfreechart的统计图实现】【Jfreechart的基本使用方法】

    之前已经实现了数据的采集,现在已经有了基本的数据,下一步就需要使用这些数据实现统计图的绘制了.这里使用Jfreechart实现这些统计图的绘制.首先看一下Jfreechart的基本用法,只有知道了它的 ...

  3. 使用C#和Excel进行报表开发(三)-生成统计图(Chart)

    有的Web项目选用Excel作为报表方案,在服务器端生成Excel文件,然后传送到客户端,由客户端进行打印.在国内的环境下,相对PDF方式,Excel的安装率应该比pdf阅读器的安装率要高,同时,微软 ...

  4. Html5绘制饼图统计图

    这里要介绍的是一个jQuery插件:jquery.easysector.js Html5提供了强大的绘图API,让我们能够使用javascript轻松绘制各种图形.本文将主要讲解使用HTML5绘制饼图 ...

  5. Syncfusion 复选框 ComboBoxAdv

    XAML: <syncfusion:GridTemplateColumn.EditTemplate> <DataTemplate DataType="viewModel:C ...

  6. C# 绘制统计图(柱状图, 折线图, 扇形图)【转载】

    统计图形种类繁多, 有柱状图, 折线图, 扇形图等等, 而统计图形的绘制方法也有很多, 有Flash制作的统计图形, 有水晶报表生成统计图形, 有专门制图软件制作, 也有编程语言自己制作的:这里我们用 ...

  7. Syncfusion的社区许可及免费电子书和白皮书

    今晚由于要忙于其他事情,就简单的给大家推荐一个第三方组件库.特别注明:这是我义务为这家公司打广告.毕竟我从他们公司收获了很多知识. Syncfusion是一家微软生态下的第三方组件/控件供应商,算是后 ...

  8. java利用JFreeChart实现各种数据统计图(柱形图,饼图,折线图)

    最近在做数据挖掘的课程设计,需要将数据分析的结果很直观的展现给用户,这就要用到数据统计图,要实现这个功能就需要几个第三方包了: 1.       jfreechart-1.0.13.jar 2.    ...

  9. Extjs4.2如何实现鼠标点击统计图时弹出窗口来展示统计的具体列表信息

    var pageSize = 20;//初始化每页数据条数 var winTitle = '';//初始化窗口标题 /** *点击统计图时,弹出一个窗口,显示统计的详情列表信息, *该方法为项目中所有 ...

随机推荐

  1. Android按键添加和处理的方案【转】

    本文转载自:http://www.cnblogs.com/skywang12345/p/3142851.html Android按键添加和处理的方案  版本号 说明 作者 日期  1.0  Andro ...

  2. java的list类

    java的list类 目录: list中添加,获取,删除元素: list中是否包含某个元素: list中根据索引将元素数值改变(替换): list中查看(判断)元素的索引: 根据元素索引位置进行的判断 ...

  3. 【BZOJ 1598】 牛跑步

    [题目链接] https://www.lydsy.com/JudgeOnline/problem.php?id=1598 [算法] A*求k短路 [代码] #include<bits/stdc+ ...

  4. Java 8 实战 P4 Beyond Java 8

    目录 Chapter 13. Thinking functionally Chapter 14. Functional programming techniques Chapter 15. compa ...

  5. android有用代码片段

    一.  获取系统版本号: [java] view plaincopy PackageInfo info = this.getPackageManager().getPackageInfo(this.g ...

  6. JavaWEB开发入门

    1.WEB开发的相关知识 WEB,在英语中web即表示网页的意思,它用于表示Internet主机上供外界访问的资源. Internet上供外界访问的Web资源分为: •静态web资源(如html 页面 ...

  7. 【poj1995】快速幂

    题目大意 求a^b %p 1≤a,b,p≤10^9 思路 时间O(10^9)一定会爆T,采用数学方法+位运算,得到O(log b)的快速幂算法 代码 #include<cstdio> #i ...

  8. Apache 虚拟主机 配置方法

    打开httpd.conf文件 去掉LoadModule vhost_alias_module modules/mod_vhost_alias.so前面的#号 去掉Include conf/extra/ ...

  9. 浅谈html运行原理

    浅谈HTML运行原理,所谓的HTML简单的来说就是一个网页,虽然第一节就讲html原理可能大家会听不懂,就当是给一个初步印象把,至少大概知道一个网页的运行流程是怎样的,下面上一张图: 大致的一个htm ...

  10. 移动端弹性滑动以及vue记录滑动位置

    -webkit-overflow-scrolling介绍 -webkit-overflow-scrolling: auto | touch; auto: 普通滚动,当手指从触摸屏上移开,滚动立即停止 ...