BarChart class

A 3D bar chart.

Signature:

export default class BarChart extends Visualize 

Methods

MethodDescription
setParameter(name, value)Set the rendering parameters of bar chart visualization.

Example

const barchart = new Modelo.Scene3D.Visualize.BarChart(viewer.getRenderScene());
viewer.getScene().addVisualize(barchart);

barchart.setParameter("xres", 2);
barchart.setParameter("yres", 2);
barchart.setScaling([40, 40, 20]);

// Use heatmap to generate the barchart input from a bunch of points.
const heatmap = new Modelo.Scene3D.Visualize.HeatMap(viewer.getRenderScene());
viewer.getScene().addVisualize(heatmap);

var data = [{x: 0.11, y: 0.87}, {x: 0.43, y: 0.127}];

heatmap.setParameter("points", data);
heatmap.setParameter("width", 256);
heatmap.setParameter("height", 256);
heatmap.setParameter("gridSize", 64);

heatmap.getTexture();

barchart.setParameter("dataTexture", heatmap.getTexture());
barchart.setParameter("platteImage", "platte.png");
barchart.setParameter("thickness", 0.8);
barchart.setEnabled(true);