zaoying / echartsannotation Goto Github PK
View Code? Open in Web Editor NEWECharts的Java注解框架
License: MIT License
ECharts的Java注解框架
License: MIT License
大神,这是不是只兼容JDK1.8?
66666
star少了一点。
假如我现在要使用timeline组件,要实现官网的下面data数组,[
'2002-01-01',
'2003-01-01',
'2004-01-01',
{
value: '2005-01-01',
tooltip: { // 让鼠标悬浮到此项时能够显示 tooltip
。
formatter: '{b} xxxx'
},
symbol: 'diamond', // 此项的图形的特别设置。
symbolSize: 16 // 此项的图形大小的特别设置。
},
'2006-01-01'
]
我现在的写法是,
TimeLineCharts charts=new TimeLineCharts();
Map<String, Object> map=new HashMap<String,Object>();
Map<String, Object> mtool=new HashMap<>();
mtool.put("formatter", "what");
map.put("value", "2005-01-01");
map.put("tooltip", mtool);
map.put("symbol", "diamond");
map.put("symbolSize", 16);
charts.setData(new Object[]{"2002-01-01","2003-01-01","2004-01-01",map,"2006-01-01"});
Object json=EChartsAnnotationProcessor.phraseSingleChart(charts);
System.out.print(JSON.toJSONString(json));
请问我这种写法对么?还是有其它更简洁的写法,还有echarts3中说把公共的组建都放到baseOptions里,这个,我怎么能把我的这个timeline放到options里面,生成json字符串到时候,我把baseOption 并在生成好的字符串中?谢谢了
你好,我想要个
data:[{name:'广州',selected:true}]
格式应该怎么写呀?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.