爱意满满的作品展示区。
yanm1ng

React 雾霾数据可视化

  •  
  •   yanm1ng ·
    yanm1ng · May 12, 2017 · 4387 views
    This topic created in 3304 days ago, the information mentioned may be changed or developed.

    雾霾数据分析平台

    利用 node.js 爬取雾霾数据后用 echarts 和 antd 进行展示,临时写的代码还比较乱。。。 GitHub 仓库地址 https://github.com/yanm1ng/react-visualized-platform

    step1

    npm i
    npm run dev
    

    step2

    open bowser at http://localhost:8980/#/map

    数据来源

    http://datacenter.mep.gov.cn

    分析工具

    • ECharts
    • Ant-Design

    部署

    可以将 spider 文件夹放到远程服务器然后建立一个 crontab 定时任务

    > crontab -e
    > 00 12 * * * /usr/local/bin/node /dev/spider/index.js 2>&1 # 每天 12:00 执行
    

    效果

    1. 全国地图 Map
    2. 所有城市 City
    3. 城市折线 Line
    4 replies    2017-05-16 09:49:47 +08:00
    bellchu
        1
    bellchu  
       May 12, 2017
    不错 放公司 Intranet
    Eleutherios
        2
    Eleutherios  
       May 12, 2017 via iPhone   ❤️ 1
    建议把爬虫和展示拆成两个组件
    antowa
        3
    antowa  
       May 15, 2017
    提个建议:把配色更新下。现在有点偏灰
    yanm1ng
        4
    yanm1ng  
    OP
       May 16, 2017
    @antowa 好的👌
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2643 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 59ms · UTC 12:23 · PVG 20:23 · LAX 05:23 · JFK 08:23
    ♥ Do have faith in what you're doing.