using System;
using System.Collections.Generic;
namespace HDL_ON.UI.UI2.EchartsOption_Energy
{
public class EchartsOption_Energy
{
/////
/////
/////
public EchartTitle title = new EchartTitle();
///
///
///
public EchartTooltip tooltip;
///
///
///
public EchartGrid grid = new EchartGrid();
///
///
///
public Echart_xAxis xAxis = new Echart_xAxis();
///
///
///
public Echart_yAxis yAxis = new Echart_yAxis();
///
///
///
public List series =new List();
public EchartsOption_Energy()
{
tooltip = new EchartTooltip
{
trigger = "axis",
};
}
}
public class EchartTitle
{
public string text;
}
///
/// 线条属性
///
public class EchartLineStyle
{
///
/// 坐标轴刻度线宽
/// type | string
/// 可选:
/// 'solid'
/// 'dashed'
/// 'dotted'
///
public string type = "solid";
///
///
///
public int width = 1;
///
/// 刻度线的颜色
///
public string color = "#333";
}
public class EchartTooltip
{
///
///
///
public string trigger ="axis";
}
public class EchartGrid
{
///
///
///
public string left = "3%";
///
///
///
public string right = "4%";
///
///
///
public string bottom = "3%";
///
///
///
public bool containLabel = true;
}
///
/// 坐标轴属性
///
public class Echart_xAxis
{
public string type = "category";
public List data = new List();
public int offset = 5;
public bool boundaryGap = false;
}
///
/// 坐标轴属性
///
public class Echart_yAxis
{
public string type = "value";
}
public class EchartSeriesItem
{
///
/// 客厅
///
public string name = "";
///
///
///
public string type = "line";
///
///
///
public bool smooth = true;
///
///
///
public List data;
///
/// none 去掉拐点
///
public string symbol = "none";
///
/// 线条样式
///
public EchartLineStyle lineStyle;
}
}