介绍 Visifire 常用属性的设置

转载自http://www.cnblogs.com/xinyus/p/3422198.html

主要介绍 Visifire 常用属性的设置,用来生成不同样式的图例

设置Chart的属

  //设置title的值
  // 创建一个标题的对象
  Title title = new Title();
  // 设置标题的名称
  title.Text = titleText;
  title.Padding = new Thickness(0, 10, 5, 0);
  // 向图标添加标题
  chart.Titles.Add(title);

  //是否显示3D效果
  chart.View3D = view3D;
  //图表数据过多滚动显示
  chart.ScrollingEnabled = isScroll;
  chart.Watermark = false;//去掉水印
  //设置绘制图表的形状 (枚举)
  ds.RenderAs = RenderAs.Column;    // 设置绘制线条的样式   ds.Linetyle = LineStyles.Dotted;
//图标描述
  ds.LegendText = legendText;
  ds.ShowInLegend = showLegend;
  //是否显示坐标点数据
  ds.LabelEnabled = showLabel;

设置坐标轴的属性

  #region 设置x抽信息
  AxisLabels xLabel = new AxisLabels();
  xLabel.FontColor = new SolidColorBrush(Colors.Gray); //x轴刻度文本信息颜色

  ChartGrid xGrid = new ChartGrid();//设置x轴的纵向刻度虚线
  xGrid.Enabled = false;

  Axis xAxis = new Axis();
  xAxis.Enabled = true; //是否显示X轴刻度、文本
  xAxis.AxisLabels = xLabel;
  xAxis.Grids.Add(xGrid);

  chart.AxesX.Add(xAxis);
  #endregion

  #region 设置y抽信息
  AxisLabels yLabel = new AxisLabels();
  yLabel.FontColor = new SolidColorBrush(Colors.LightGray); //y轴刻度文本信息颜色

  ChartGrid yGrid = new ChartGrid();// 设置y轴的横向刻度虚线
  yGrid.Enabled = true;

  Axis yAxis = new Axis();
  yAxis.Enabled = yAxisEnabeld; //是否显示Y轴刻度、文本
  yAxis.Grids.Add(yGrid);
  yAxis.AxisMinimum = minValue;  //y轴刻度最小值
  yAxis.AxisMaximum = maxValue;  //y轴刻度最大值
  yAxis.Prefix = pre; //"给刻度添加前缀";
  yAxis.Suffix = suf; //"给刻度添加后缀 如%";
  yAxis.Interval = 10;    //设置y轴刻度的增量 -- 即2个刻度值之间的的间隔
  yAxis.IntervalType = IntervalTypes.Number;
  yAxis.AxisLabels = yLabel;
  chart.AxesY.Add(yAxis);
  #endregion

设置坐标轴各数据的属性

 //设置坐标点的大小(线条图)
 dp.MarkerScale = 10;
 dp.MarkerSize = 5;

 //坐标点的颜色
 dp.Color = new SolidColorBrush(Colors.Red);
 //坐标点数值的颜色
 dp.LabelFontColor = new SolidColorBrush(Colors.Blue);

时间: 2024-08-29 12:00:23

介绍 Visifire 常用属性的设置的相关文章

Silverlight 图表控件 Visifire 常用属性

首要介绍 Visifire 常用属性的设置,用来生成不合样式的图例 设置Chart的属 //设置title的值 // 创建一个题目标对象 Title title = new Title(); // 设置题目标名称 title.Text = titleText; title.Padding = new Thickness(0, 10, 5, 0); // 向图标添加题目 chart.Titles.Add(title); //是否显示3D结果 chart.View3D = view3D; //图表数

UITextField常用属性及设置

定义一个TextField userNameField = [[UITextField alloc] initWithFrame:CGRectMake(userNameImg.frame.origin.x+30,userNameImg.frame.origin.y, 165, 40)];  1. userNameField.placeholder = @"User Name"; userNameField.attributedPlaceholder= [[NSAttributedStr

0821基础控件(UILabel常用属性)

一.UILabel常用属性1--实例化和设置文字 // 实例化UILabel并指定其边框 UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0.0, 210.0, 320.0, 40.0)]; // 设置label显示的文本 [label setText:@"Hello World"]; // 设置字体和字体大小 [label setFont:[UIFont fontWithName:@"Helvetica-B

0821基础控件(UIButton常用属性)

一.可以通过代码的方式创建UIButton 1.通用实例化对象方法: UIButton *button = [[UIButton alloc] initWithFrame:rect]; 2.快速实例化对象方法: UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect]; 提示: 在OC开发中,实例化任何类型的非自定义对象,都请首先尝试一下是否存在快速定义方法.如果存在快速定义方法,就尽量不要使用init之类的方法实例

SVG DOM常用属性和方法介绍

将以Adobe SVG Viewer提供的属性和方法为准,因为不同解析器对JavaScript以及相关的属性和方法支持的程度不同,有些方法和属性是某个解析器所特有的.SVG支持DOM2标准. 12.2.1  文档初始化相关 evt属性 evt表示事件本身,可以通过evt获取与当前事件相关的信息,用户可以在script中定义响应函数,进行相应的处理.它与普通JavaScript脚本中的event基本相同,只不过在普通JavaScript的脚本中简写成“e”. ownerDocument属性 通过引

C#中gridView常用属性和技巧介绍

1.隐藏最上面的GroupPanel gridView1.OptionsView.ShowGroupPanel=false; 2.得到当前选定记录某字段的值 sValue=Table.Rows[gridView1.FocusedRowHandle][FieldName].ToString(); 3.数据只读 gridView1.OptionsBehavior.Editable=false; 4.不显示MasterDetailView gridView1.OptionsDetail.EnableM

Android中TextView和EditView常用属性设置

Android开发中最常用的差不多就是TextView和EditView了,在使用它时,我们也会设置它的一些属性,为了让我们设计的更好看,设置的更合理.这里记下它的常用属性,方便后期查阅. EditText属性描述 android:layout_gravity="center_vertical"//设置控件显示的位置:默认top,这里居中显示,还有bottom android:background="@android:drawable/edit_text"这个属性,

DEV控件:gridControl常用属性设置(转)

DEV控件:gridControl常用属性设置    1.隐藏最上面的GroupPanel   gridView1.OptionsView.ShowGroupPanel=false;    2.得到当前选定记录某字段的值   sValue=Table.Rows[gridView1.FocusedRowHandle][FieldName].ToString();   3.数据只读   gridView1.OptionsBehavior.Editable=false;   4.不显示MasterDe

DEV控件:gridControl常用属性设置【转载】

DEV控件:gridControl常用属性设置  1.隐藏最上面的GroupPanel   gridView1.OptionsView.ShowGroupPanel=false;  2.得到当前选定记录某字段的值   sValue=Table.Rows[gridView1.FocusedRowHandle][FieldName].ToString(); 3.数据只读   gridView1.OptionsBehavior.Editable=false; 4.不显示MasterDetailView