Home

RN01 Using Nebula charts

Content outdated

We are in the process of migrating all content to impulse version 2.0.

The Nebula chart provider uses the chart implemenentation of the Eclipse Nebula/Visualization project



Types and Options

XY and Intensitivy chart. Both charts can be extended using js scripts.



Compatible data

The XY chart accepts float signals with dimensions 1 and 2 (XY). You can disable the default chart data provider ("Manual fill"). The intensity chart has no default chart data provider.



Intensity chart script example

Use the following chart script example to prepare an intensity chart.

  // configure axes
  graph.getXAxis().setAutoScale(false);
  graph.getXAxis().setTitle("myX");
  graph.getYAxis().setAutoScale(false);
  graph.getYAxis().setTitle("myY");      
  graph.getYAxis().setRange(-50, 50, false);
  
  // configure data
  graph.setMax(100);
  graph.setMin(-100);
  var dataHeight = 64;
  var dataWidth = 64;
  graph.setDataHeight(dataHeight);
  graph.setDataWidth(dataHeight);
  
  // create simulation data
  var simuData = java.lang.reflect.Array.newInstance(java.lang.Integer.TYPE, dataWidth * dataHeight * 2);
  var i,j,seed = 0;
  for (i = 0; i < dataHeight; i++) {
      for (j = 0; j < dataWidth; j++) {
          var xn = j - dataWidth;
          var yn = i - dataHeight;
          var p = Math.sqrt(xn * xn + yn * yn);
          simuData[i * dataWidth + j] = Math.sin(p * 2 * Math.PI / dataWidth + seed * Math.PI / 100) * 100;
      }
  }
  graph.setDataArray(simuData);
toem

technical software and tooling

Company

Contact Us

This email address is being protected from spambots. You need JavaScript enabled to view it.