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

HunterPHP , 宇内最叼PHP框架,没有之一,完美继承Drupal 8 和 Laravel的优秀基因! 破解Drupal 与 Laravel的诸多痛点,比如万恶的主题覆写!符合现代开发快速,优质,易扩展 ,标准化等优势!并且已经拥有了Drupal所拥有的大量优质模块,比如Entity, Views等模块, 你不要问我有没有Panels , Display Suite,
webform这些和主题页面定制相关的东西,因为我从核心本质上根本就不存在这些痛点了。Drupal有一社区的扩展 , 而HunterPHP,基于标准Composer扩展,整个Packagist PHP库海洋都是我的扩展库, 人无我有,人有我精,猎人出品,必属精品!

官网:www.hunterphp.com
猎人客栈(QQ群): 41039491 (自由 逗逼 实干 天堂)
我的QQ: 498023235 (人在老家,专职接单)

Project information

Releases