ユーザ用ツール

サイト用ツール


raspi_iot:閲覧機能を追加

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
raspi_iot:閲覧機能を追加 [2019/04/02 20:55] – [見た目の改善] hirohitoraspi_iot:閲覧機能を追加 [2019/04/06 12:39] (現在) hirohito
行 279: 行 279:
 </code> </code>
  
-軸ラベルについて、これは「何時」のデータであるかを知りたいので、ラベル用配列に「時」だけを適切な間隔で入れておき set_labels メソッドに指定します。+軸ラベルについて、これは「何時」のデータであるかを知りたいので、ラベル用配列に「時」だけを適切な間隔で入れておき labels アトリビュートに指定します。
  
 <code ruby> <code ruby>
行 287: 行 287:
  
 graph.x_axis.interval = 60 graph.x_axis.interval = 60
-graph.x_axis.set_labels( labels )+graph.x_axis.labels = labels
 </code> </code>
  
行 312: 行 312:
 <ul> <ul>
   <li>   <li>
-    <a href="<%=h Alone.make_uri(action:"view_table") %>"> +    <a href="<%=h Alone.make_uri(action:"view_table") %>">最新10件のデータ表示</a>
-      最新10件のデータ表示</a>+
   <li>   <li>
-    <a href="<%=h Alone.make_uri(action:"view_graph") %>"> +    <a href="<%=h Alone.make_uri(action:"view_graph") %>">トレンドグラフ表示</a>
-      トレンドグラフ表示</a>+
 </ul> </ul>
  
行 383: 行 381:
       graph.y_axis.at_labels[:format] = "%.0f"       graph.y_axis.at_labels[:format] = "%.0f"
       graph.x_axis.interval = 60       graph.x_axis.interval = 60
-      graph.x_axis.set_labels( labels )+      graph.x_axis.labels = labels
       @trend_p = graph.draw_buffer()       @trend_p = graph.draw_buffer()
     end     end
行 395: 行 393:
       graph.y_axis.at_labels[:format] = "%.0f"       graph.y_axis.at_labels[:format] = "%.0f"
       graph.x_axis.interval = 60       graph.x_axis.interval = 60
-      graph.x_axis.set_labels( labels )+      graph.x_axis.labels = labels
       @trend_t = graph.draw_buffer()       @trend_t = graph.draw_buffer()
     end     end
raspi_iot/閲覧機能を追加.txt · 最終更新: 2019/04/06 12:39 by hirohito