【Exploraty】年別/タイプ別件数(Number of cases by year/type)

過去記事「【SQL】年別総数とタイプ別割合」で作ったデータソースをもとに、Exploratyで可視化します。ほんとUIフレンドリーなツール、使ってて楽しい。

  • 使用データ:[ Google Cloud Public Datasets] chicago_crime_data (Chicago Police Department crime data from 2001 to present)
  • 期間:2010-01-01 ~ 2020-12-31(10年間)


  1. 棒グラフ
  2. エリアグラフ


1.棒グラフ

データフレームをインポート後、テーブル操作で微調整します。

  1. CSVローカル(インポート)
  2. 計算を作成(整数になっていたyearを年に変換=-01-01)
  3. グループ化(year)

チャート画面に移り、グラフ化します。

  • タイプ:バー
  • X軸:year(year)
  • Y軸:primary_count(SUM)
  • 色で分割:primary_type

Tableauと比較するため、同じように上位10位に色を付けています。Tableau はグラフの上にラベル付けができるけど、Exploratryはラベルの置き場所を上下左右から選びます。もちろん、マウスオンすれば個別の詳細はポップアップできます。凡例を個別で常時表示させる機能は見つけきれなかった。そもそも、今回は凡例ラベル多すぎて選べないだけかも?

凡例多すぎて、通常だと画面に収まりません。スライダーが出てくる。

表示するのを制限する=SUMに含まれないから、個別色変更で対応しました。そこは連動しているから仕方ないか…含まれない凡例載せても混乱するだけだし。


2.エリアグラフ

設定を「エリア」に変えただけです。

Exploratryは埋め込み用のiframeコードも便利。Flourishに似てますね。ただ、今回は使ったら画面がつぶれた(下)ので見送り。ameba ownd内のHTML入力ボックスの都合な気もする…。

ボーダーなし縦/幅ともに100%指定でHTMLコードが書かれているので、通常のウェブページであればきれいに表示されます。iframeいじれば縦のばせるかも(してない)。

Exploratry

数年前、データラングリングとデータサイエンスのブートキャンプに参加しました。楽しくもあり、ツールの操作と授業の理解で精いっぱい。振り返れば、あれがデータアナリストを目指すきっかけになりました。

頻繁にバージョンが更新されるので、ユーザーの意見を柔軟に取り入れてる&対応が早いんだと思います。統計の勉強でちょっと離れていたけど、久々さわったらやっぱり使いやすい。

いまのところ一番好きなのはサマリの見やすさとテーブル変換ロング&ワイドの柔軟さ。きっとこれからどんどん増えていく。



********


Based on the data source created in the previous article "[SQL] Total number by year and percentage by type", the data is visualised in Exploraty. Really UI friendly tool, fun to use.

  • Data used: [ Google Cloud Public Datasets] chicago_crime_data (Chicago Police Department crime data from 2001 to present)
  • Period: 2010-01-01 - 2020-12-31 (10 years)


  1. Bar graph
  2. Area graph


1. Bar graph

After importing the data frame, fine tune it with table operations.

  1. CSV local (import)
  2. Create calculation (year converted from integer to year = -01-01)
  3. Group (year)

Go to the chart screen and chart the data.

  • Type: Bar
  • X-axis: year(year)
  • Y axis: primary_count(SUM)
  • Division by colour: primary_type

For comparison with Tableau, the top 10 are coloured same.

Tableau allows you to place labels on the graph, but Exploratry allows you to choose where the labels are placed: top, bottom, left or right. Of course, you can hover the mouse over individual details. I could not find a function to display the legend individually and permanently.

Perhaps this time there are simply too many legend labels to choose from?

There are too many legends to fit on the screen under normal circumstances. Slider appears.

Limit display = not included in the SUM, so I had to change the individual colours. There's nothing you can do about it, because they're linked there... It's just confusing if you put a legend that doesn't show them.


2. area graph

I just changed the setting to 'Area'.

Exploratry also has a useful iframe code for embedding, similar to Flourish. However, this time I used it and the screen was crushed, so I decided to give it a miss... I think it was for the convenience of the HTML input box in ameba ownd...

The HTML code is written in 100% height/width without borders, so a normal web page will be displayed nicely.


Exploratry

A few years ago, I attended a boot camp on data wrangling and data science. It was a lot of fun, but I was busy working with the tools and understanding the lessons. Looking back, it was the start of my journey to become a data analyst.

I think they're flexible and quick to respond to user feedback because the version is updated frequently. I've been away for a while to study statistics, but it's still easy to use after a long time.

What I like most at the moment is the ease of viewing summaries and the flexibility of converting tables long and wide. I'm sure there will be more and more in the future.

DATA idm8

Aim for a comprehensive analysis. Data-informed decision making. データ分析/著作権・知的財産マネジメント