当前位置: 首页 > news >正文

南阳做网站优化哪个软件发视频可以赚钱

南阳做网站优化,哪个软件发视频可以赚钱,免费模式营销案例,西宁手机网站建设在WPF里使用livecharts,如果折线图或者柱状图有多个的时候,可能会出现两个数字遮挡问题,这时候要设置DataLabelsTemplate 属性。 如LineSeries设置代码如下: 第一个折线图的DataLabelsTemplate var stackPanelFactory new Fra…

在WPF里使用livecharts,如果折线图或者柱状图有多个的时候,可能会出现两个数字遮挡问题,这时候要设置DataLabelsTemplate 属性。

如LineSeries设置代码如下:

第一个折线图的DataLabelsTemplate

var stackPanelFactory = new FrameworkElementFactory(typeof(StackPanel));
stackPanelFactory.SetValue(StackPanel.OrientationProperty, Orientation.Horizontal);
var textBlockFactoryA = new FrameworkElementFactory(typeof(TextBlock));
textBlockFactoryA.SetValue(TextElement.ForegroundProperty, new SolidColorBrush((System.Windows.Media.Color)System.Windows.Media.ColorConverter.ConvertFromString("#5BABEF")));
textBlockFactoryA.SetBinding(TextBlock.TextProperty, new Binding("FormattedText"));
textBlockFactoryA.SetValue(TextBlock.MarginProperty, new Thickness(0, 0, 0, -8));
stackPanelFactory.AppendChild(textBlockFactoryA);
var dataTemplate = new DataTemplate() { VisualTree = stackPanelFactory };

第二个折线图的DataLabelsTemplate

 var stackPanelFactory2 = new FrameworkElementFactory(typeof(StackPanel));stackPanelFactory2.SetValue(StackPanel.OrientationProperty, Orientation.Horizontal);var textBlockFactoryA2 = new FrameworkElementFactory(typeof(TextBlock));textBlockFactoryA2.SetValue(TextElement.ForegroundProperty, new SolidColorBrush(Colors.White));textBlockFactoryA2.SetBinding(TextBlock.TextProperty, new Binding("FormattedText"));textBlockFactoryA2.SetValue(TextBlock.MarginProperty, new Thickness(0, 0, 0, -40));stackPanelFactory2.AppendChild(textBlockFactoryA2);var dataTemplate2 = new DataTemplate() { VisualTree = stackPanelFactory2 };

设置LineSeries

Func<double, string> Formatter;
SeriesCollection = new SeriesCollection
{new LineSeries{Title = "",DataLabels=true,//注意设置在这里DataLabelsTemplate= dataTemplate,Values = inValueList,Stroke=new SolidColorBrush((System.Windows.Media.Color)System.Windows.Media.ColorConverter.ConvertFromString("#5BABEF")),Foreground= new SolidColorBrush((System.Windows.Media.Color)System.Windows.Media.ColorConverter.ConvertFromString("#5BABEF")),FontSize=26,},new LineSeries{Title="",DataLabels=true,//注意设置在这里DataLabelsTemplate= dataTemplate2,Values= outValueList,Stroke =new SolidColorBrush(Colors.White),Foreground= new SolidColorBrush(Colors.White),FontSize=26,},};Formatter = value => value.ToString("N");
lvcWeekLabel.Labels = Labels;
lvcWeekLabel.LabelFormatter = Formatter;
lvcWeek.Series = SeriesCollection;

具体位置可能要根据你的图表大小调整,主要就是调整

textBlockFactoryA2.SetValue(TextBlock.MarginProperty, new Thickness(0, 0, 0, -40));

这句话。另外字体大小什么的也可以根据需求调整

http://www.yayakq.cn/news/887875/

相关文章:

  • 网站被攻击的方法广州做网站信科建设
  • 临潼建设项目环境影响网站用wordpress付费网站
  • 佛山企业如何建网站在中国做国外网站
  • 做网站如何用代码把字体变大wordpress图片二级域名
  • 做安装系统网站有钱赚吗cpa推广联盟平台
  • 浅谈电子商务网站建设东莞市桥头镇网络工程公司
  • 网站如何后台管理橱柜网站源码
  • 安徽城乡建设厅网站证件动漫设计是什么
  • 滕州网站建wordpress目录介绍
  • 几大门户网站网站开发需要掌握哪些技术
  • dede网站不能够生成骑士cms怎么从别的网站采集信息
  • 上海专业网站建设公司排名如何整理做网站的素材
  • 网站建设信息在哪儿发布互联网技术包括哪些
  • 北京网站建设公司分享网站改版注意事项免费刷粉网站推广免费
  • 网站登记备案 个人做网站和推广找哪家好
  • 网站建设的电话回访wordpress cdn图片加速
  • 有哪些做红色旅游景点的网站网页模板dw
  • 微网站和网站同步像素成都高端网页设计公司
  • 网站常用的颜色体育设施 网站模版
  • 做网站f12的用处主播培训
  • 网站上线2年才做301百度和阿里哪个厉害做网站
  • 深圳企业做网站公司哪家好网络设计主要是干什么的
  • 域名备案用的网站建设方案哪里有建站代理加盟
  • 企业网站维护工作外贸网络推广的公司
  • html模板网站模板下载c2c商城网站建设二次开发
  • 帝国做的网站怎么上传加强心理咨询网站的建设
  • 商业设计网站推荐wordpress 博客论坛
  • 最新站长seo网站外链发布平台怎么快速优化关键词排名
  • 集团网站 wordpress网站建设简介电话
  • 韩国设计公司网站wordpress群晖插件