Ejemplo n.º 1
0
 public ChartOption(ChartTitle titleMod, string toolbox)
 {
     this.title = titleMod;
     if (!string.IsNullOrEmpty(toolbox))//为空使用默认配置
     {
         this.toolbox = JsonConvert.DeserializeObject <JObject>(toolbox);
     }
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
 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();
 }
Ejemplo n.º 4
0
 /// <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}%)";
 }
Ejemplo n.º 5
0
 /// <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;
 }
Ejemplo n.º 6
0
 /// <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;
 }
Ejemplo n.º 7
0
 public DashOption(ChartTitle title, string toolbox)
     : base(title, toolbox)
 {
     this.tooltip.formatter = "{a} <br/>{b} : {c}%";
 }