Baidu ECharts - 百度数æ®å›¾è¡¨åˆ†æž
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Downloads
Component created
Component changed
Component body
ECharts is a comprehensive charting library offering a painless way of adding interactive charts to your commercial products. On the foundation of ZRender-based (a whole new lightweight canvas library) coordinate system, legend, tooltip, toolbox and other basic components, ECharts currently supports line, column, scatter, pie, radar, candlestick, chord, gauge, funnel, map and force-directed chart types, many of these can be combined in one chart.
ECharts 是一个æä¾›å•†ä¸šäº§å“常用图表,底层基于ZRender(一个全新的轻é‡çº§canvasç±»åº“ï¼‰ï¼Œåˆ›å»ºäº†åæ ‡ç³»ï¼Œå›¾ä¾‹ï¼Œæç¤ºï¼Œå·¥å…·ç®±ç‰åŸºç¡€ç»„件,并在æ¤ä¸Šæž„å»ºå‡ºæŠ˜çº¿å›¾ã€æŸ±çŠ¶å›¾ã€æ•£ç‚¹å›¾ã€K线图ã€é¥¼å›¾ã€é›·è¾¾å›¾ã€åœ°å›¾ã€å’Œå¼¦å›¾ã€åЛ坼å‘布局图ã€ä»ªè¡¨ç›˜ä»¥åŠæ¼æ–—å›¾ï¼ŒåŒæ—¶æ”¯æŒä»»æ„ç»´åº¦çš„å †ç§¯å’Œå¤šå›¾è¡¨æ··åˆå±•现。
Official website : http://echarts.baidu.com/
How to use
$settings['echart']['chartTwo'] = array(
'chartType' => 'map',
'useType' => array('map'),
'containerId' => 'map_chart',
'options' => array(
'tooltip' => array('trigger' => 'item', 'formatter' => '{b}'),
'series' => array(
array(
'name' => "China",
'type' => 'map',
'mapType' => 'china',
'selectedMode' => 'multiple',
'itemStyle' => array('normal' => array('label' => array('show' => TRUE), 'emphasis' => array('show' => TRUE))),
'data' => array(array('name' => '广东', 'selected' => TRUE))
)
)
)
);
// render it.
return render_echarts($settings);
check the echarts example module for full example
