示例#1
0
文件: ECharts.cs 项目: baixue001/IPS
 public ChartOption(ChartTitle titleMod, string toolbox)
 {
     this.title = titleMod;
     if (!string.IsNullOrEmpty(toolbox))//为空使用默认配置
     {
         this.toolbox = JsonConvert.DeserializeObject <JObject>(toolbox);
     }
 }
示例#2
0
文件: ECharts.cs 项目: baixue001/IPS
 public FunnelChartOption(ChartTitle titleMod, string toolbox)
     : base(titleMod, toolbox)
 {
     this.title.x       = "center";
     this.legend.orient = "vertical";
     this.legend.x      = "left";
     this.legend.y      = "center";
     this.calculable    = true;
 }
示例#3
0
文件: ECharts.cs 项目: baixue001/IPS
 public MapChartOption(ChartTitle titleMod, string toolbox)
     : base(titleMod, toolbox)
 {
     this.title.x       = "center";
     this.legend.orient = "vertical";
     this.legend.x      = "left";
     //this.legend.data = ndata;
     this.dataRange      = new ChartDataRange();
     this.roamController = new ChartRoamController();
 }
示例#4
0
文件: ECharts.cs 项目: baixue001/IPS
 /// <summary>
 /// 饼状图表配置类
 /// </summary>
 /// <param name="title"></param>
 /// <param name="subtitle"></param>
 public PieChartOption(ChartTitle title, string toolbox)
     : base(title, toolbox)
 {
     this.title.x           = "center";
     this.legend.orient     = "vertical";
     this.legend.x          = "left";
     this.legend.y          = "center";
     this.calculable        = true;
     this.tooltip.formatter = "{a} <br/>{b} : {c} ({d}%)";
 }
示例#5
0
文件: ECharts.cs 项目: baixue001/IPS
 /// <summary>
 /// 实例化柱状配置类
 /// </summary>
 /// <param name="title">标题</param>
 /// <param name="subttile">副标题</param>
 /// <param name="data">数据名称</param>
 /// <param name="category">X轴名</param>
 public BarChartOption(ChartTitle title, string toolbox, string datatype = "")
     : base(title, toolbox)
 {
     this.tooltip.trigger = "axis";
     this.calculable      = true;
     this.xAxis           = new XAxis();
     this.xAxis.type      = "category";
     this.yAxis           = new YAxis();
     this.yAxis.type      = "value";
     this.datatype        = datatype;
 }
示例#6
0
文件: ECharts.cs 项目: baixue001/IPS
 /// <summary>
 /// 实例化散点图标类
 /// </summary>
 /// <param name="title"></param>
 /// <param name="subtitle"></param>
 /// <param name="ndata"></param>
 public ScatterChartOption(ChartTitle title, string toolbox)
     : base(title, toolbox)
 {
     this.tooltip.trigger               = "axis";
     this.tooltip.formatter             = null;
     this.tooltip.showDelay             = 0;
     this.tooltip.axisPointer           = new ChartAxisPointer();
     this.tooltip.axisPointer.lineStyle = new ChartLineStyle();
     this.xAxis           = new XAxis();
     this.xAxis.type      = "value";
     this.xAxis.power     = 1;
     this.xAxis.precision = 2;
     this.xAxis.scale     = true;
     this.yAxis           = new YAxis();
     this.yAxis.type      = "value";
     this.yAxis.power     = 1;
     this.yAxis.precision = 2;
     this.yAxis.scale     = true;
 }
示例#7
0
文件: ECharts.cs 项目: baixue001/IPS
 public DashOption(ChartTitle title, string toolbox)
     : base(title, toolbox)
 {
     this.tooltip.formatter = "{a} <br/>{b} : {c}%";
 }