mirror of
https://github.com/qlik-oss/nebula.js.git
synced 2025-12-19 17:58:43 -05:00
chore: fix docs
This commit is contained in:
@@ -89,11 +89,11 @@ import piechart from '@nebula.js/sn-pie-chart';
|
|||||||
embed.createConfiguration({
|
embed.createConfiguration({
|
||||||
types: [
|
types: [
|
||||||
{
|
{
|
||||||
type: 'bar',
|
name: 'bar',
|
||||||
load: () => Promise.resolve(barchart),
|
load: () => Promise.resolve(barchart),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'pie',
|
name: 'pie',
|
||||||
load: () => Promise.resolve(piechart),
|
load: () => Promise.resolve(piechart),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@@ -125,7 +125,7 @@ You can then configure all types you expect might be used:
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
const types = ['bar', 'line', 'pie', 'sankey'].map((t) => ({
|
const types = ['bar', 'line', 'pie', 'sankey'].map((t) => ({
|
||||||
type: t,
|
name: t,
|
||||||
load: () => loadSnType(t),
|
load: () => loadSnType(t),
|
||||||
}));
|
}));
|
||||||
const baseConfig = stardust.embed.createConfiguration({ types });
|
const baseConfig = stardust.embed.createConfiguration({ types });
|
||||||
@@ -135,7 +135,7 @@ The type will be loaded from the remote url the first time you render it:
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
baseConfig(enigmaApp).render({
|
baseConfig(enigmaApp).render({
|
||||||
type: 'bar',
|
name: 'bar',
|
||||||
fields: ['Product', '=sum(Sales)'],
|
fields: ['Product', '=sum(Sales)'],
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user