Giter Site home page Giter Site logo

resas-yumemi's Introduction

resas-yumemi

RESAS API を用いて都道府県別の総人口データを取得し, グラフで確認できるSPA.

firebase hosting で公開中 → https://resas-yumemi.web.app/

総制作時間: 約21時間

RESAS API : https://opendata.resas-portal.go.jp/

Vue3 HighCharts (グラフ描画に利用) : https://github.com/smithalan92/vue3-highcharts

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

resas-yumemi's People

Contributors

suecalystegia00 avatar

Watchers

 avatar

resas-yumemi's Issues

都道府県にチェックを入れると、RESAS APIから選択された都道府県の「人口構成」を取得する

ちゃんとブランチを切ること😡😡😡

#4 でチェックの付いた都道府県のコードを配列として生成できている.

これを用いて,APIから該当する人口構成を取得する.
ただし,一度取得した人口構成データはキャッシュしておくようにして,極力APIの呼び出し回数を減らす.

人口構成データは state.population に入れるようにしておく.

グラフが再描画されない

VueHighchartsのリファレンス(https://github.com/smithalan92/vue3-highcharts)曰く,
"redrawOnUpdate"プロパティをtrueにしておくと,グラフデータであるoptionsが更新されたタイミングで再描画する仕様らしい.
しかし,Vue devTool でもoptionsが更新されたことが確認できたにもかかわらず,グラフは再描画されない.

スクリーンショット 2021-12-05 15 15 10

しかし開発環境でリロードがかかると,正常に表示されるため,データ形式の問題ではなさそう.
よくわからない...?

Originally posted by @susanbasket0410 in #8 (comment)

チェックを外すとデータが同一化する

複数の都道府県にチェックを入れてから,
prefCodeが小さい都道府県のチェックを外すと,prefCodeが最も大きい都道府県のデータに全てのデータが収束する

2021-12-06.15.07.05.mov

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.