Custom Charts enable you to develop your own specialized data visualizations and connect them to Luzmo, allowing you and your users to easily add them to Luzmo dashboards. If our built-in chart types don't fully cover your specific visualization needs, you can create custom charts tailored exactly to your requirements.
Why use Custom Charts?
Availability: The ability to create Custom Charts and use them in your dashboards is available on our Elite and Enterprise plans.
Below you can find the steps required to create a Custom Chart and make it usable within Luzmo dashboards.
Once it's up and running, log in to the environment with your Luzmo account. This will bring you to the builder environment. The page features 3 areas:
manifest.json. Changes to the manifest will be reflected in this area.
Columns can be dragged to these chart slots. Once all required slots are filled, a Luzmo query will execute and show you the returned data. This gives you useful information about the shape of the data you'll be working with in your visualization code.render method of your chart code with the data returned by the query. It shows you how your custom chart will look in your dashboards, based on your current code.The builder environment with a dataset selected and some chart slots filled looks like this:

Once the builder environment is up and running, you can start developing your visualization according to Luzmo’s specifications.
A high level outline of the required steps:
manifest.json. Chart slots are used to map your datasets and columns to data that can be used in your chart. You can check if your chart slot definition is valid by running npm run validate.
As a next step, you can select a dataset from the dropdown and drag dataset columns to your chart slots. This will execute a Luzmo query and show you the resulting data.render and resize) in the chart.ts file. Saving the chart.ts file in your IDE will automatically re-render the chart in the builder environment, allowing you to easily make tweaks to your chart.npm run build command to build and bundle your chart. This will create a ZIP file ready for upload to Luzmo in the next step.After developing your chart and building it to a ZIP:
manifest.json: chart slot configurationindex.js: built bundle of your visualization codeicon.svg: chart icon which will be used in the dashboard editor
At some point you might want to upload a new version of your custom chart (e.g. to do some bug fixes or improve a visualization). You can do so via the Re-upload chart code option in the action menu. Simply upload a new ZIP file and confirm via the button.
Once confirmed, the status will change to Update in preview. This means only you can see and test this new version in dashboards, while other users still see the old, published version. Once tested, you can publish this new version again to update the chart for everyone. More information on chart states in the next section.
Custom charts move through three distinct states that control their visibility and availability:
Private
Published
Update in preview
You can manage these states for each custom chart through the Custom Charts settings page, allowing you to control exactly when your charts become available to the wider organization.
Custom Charts seamlessly integrate into your Luzmo dashboards:
manifest.json (e.g. you could limit the data types for some slots).
Start leveraging Custom Charts today to unlock new visualization possibilities and enhance your Luzmo experience!