LoginSignup
1
1

More than 5 years have passed since last update.

enebularの標準INFOMOTION Type(CombinationChart)の使い方

Last updated at Posted at 2016-12-13

enebularのINFOMOTION Typeはプラグイン化されていて独自に拡張も可能ですが、まずは標準のINFOMOTION Typeの使い方を見ていきます。CombinationChartは棒グラフと折れ線グラフの複合グラフです。

初歩デモ準備

enebular Advent Calendar 2016初日の@satton_maroyakaのエントリ、enebularをつかいはじめるにあるスライドを見て準備すると以下のようになります。

image

image

今回は標準INFOMOTION TypeのCombinationChart用にランダム発生データを少し変更します。Functionノードを開いて以下のように変更します。

msg.payload = {
    id : "value" + Math.floor(Math.random() * 5),
    value : Math.floor(Math.random() * 100),
    value1 : Math.floor(Math.random() * 100)
};
return msg;

CombinationChart

INFOMOTIONのCreate Graphで以下のような設定でCombinationChartを作成します。valueBarvalueLineにそれぞれ棒グラフに表示する値と折れ線グラフに表示する値を指定します。

image

これをLiveモードで開くと以下のようになります。

infomotion.gif

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1