Supported Charts

The current list of stardust (supported) charts in nebula.js can be found in the visualizations section.

Chart conversion

Converting a visualization to a different registered type:

const viz = await n.render({
  element: document.querySelector('.object'),
  type: 'barchart',
  fields: ['title', '=avg(rating)'],
});
viz.convertTo('piechart');

You first render a bar chart, then pie chart is the registered type to convert to. The API Reference of convertTo can be found here.

You can find an example using charts conversion in the nebula.js repository, here.

ON THIS PAGE

Was this page helpful?