Giter VIP home page Giter VIP logo

echarts.net's Introduction

ECharts.Net

Nuget Build status GitHub release Nuget GitHub

Tips

Based on Echarts2.0

How to use?

该类库包含Echarts2.0版本的所有基本类型,操作类ChartOpertation提供以下图表的静态方法,未列出的可以自己实现或者创建分支一起完善。

饼状图:ChartPieDataProcess

线性图:ChartLineDataProcess

时间轴线性图:TimeLineChartLineDataProcess

柱状图:ChartBarDataProcess

折柱混搭:ChartBarAndLineDataProcess

条形图:ChartTiaoBarDataProcess

多维条形图:ChartDuoWeiTiaoBarDataProcess

Demo

ChartPieSeries cps = new ChartPieSeries();
cps.name = "pie demo";
cps.radius = 90;
cps.startAngle = 300;
cps.type = "pie"; 

ChartSeriesData csd_pc = new ChartSeriesData();
csd_pc.name = "电脑";
csd_pc.value = "23";

ChartSeriesData csd_phone = new ChartSeriesData();
csd_phone.name = "手机";
csd_phone.value = "88";

List<object> data = new List<object>();
data.Add(csd_pc);
data.Add(csd_phone);

cps.data = data; 

List<string> legend = new List<string>(4);
legend.Add("电脑");
legend.Add("手机"); 

List<ChartPieSeries> cpss = new List<ChartPieSeries>();
cpss.Add(cps); 

string str = ChartOpertation.ChartPieDataProcess(cpss, legend, true, "pie demo", "subtext", true);

echarts.net's People

Contributors

xhanb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.