Chart - LSIR/gsn GitHub Wiki

Chart Processing Class

This processing class generates graphs from the data it receives. This is a complex VS because it can be computationally intensive, especially if it is frequently called. This virtual sensor using the JFreeChart library to plot the data.

Parameters:

  • input-stream The name of the stream to plot.
  • title is the graph title.
  • vertical-axis is a legend for the vertical axis.
  • width is the width of the generate graph in pixels (default value: 640)
  • height is the height of the generate graph in pixels (default value: 480)
  • history-size is an integer value representing the number of values to be plot in the graph.
<class-name>gsn.vsensor.ChartVirtualSensor</class-name>
  <init-params>
    <param name="input-Stream">DATA</param>
    <param name="title">GSN Memory Usage</param>
    <param name="type">ANY</param>
    <param name="height">200</param>
    <param name="width">300</param>
    <param name="vertical-axis">Sensor Readings</param>
    <param name="history-size">100</param>
  </init-params>
  <output-structure>
      <field name="DATA" type="binary:image/jpeg"/>
  </output-structure>
  <streams>
      <stream name="DATA" >
           ....
       </stream>
   ...
   </streams>
⚠️ **GitHub.com Fallback** ⚠️