When the built-in charts in Zoho Analytics are not enough, a developer can build a custom visualization with a JavaScript library such as D3.js, Highcharts, or Plotly, and package it as a plugin. This guide is for that developer. It explains the two files you write, the functions Zoho Analytics gives you, and the traps to watch for. For adding the finished visual and managing it, see Zoho Analytics Custom Visuals: Using the Gallery and Managing Plugins. It is based on Zoho's help page as we read it on 29 October 2026, and the plan note there applies: Zoho says the feature is for Enterprise users.
| File | Job |
|---|---|
| ZAViz_Manifest.json | Describes the visual: its name, icon, library dependencies, the drop areas for columns, and the settings users can change. |
| main.js | Draws the visual. |
Put both in one ZIP file. An Account or Organization Admin uploads it.
These are its top-level properties:
| Property | What it holds |
|---|---|
| name | The name shown in the interface. |
| icon | A web address or local path to the icon. |
| dependencies | The libraries the visual needs, as web addresses or local files. |
| structure | The drop areas where users place columns. |
| settings | The options users can change in the Settings panel. |
Each drop area is an array of four values, in this order:
| Position | Value |
|---|---|
| 1. Name | The label shown for the drop area. |
| 2. Cardinality | "single" for one column, or "multi" for several. |
| 3. Data type | "MEASURE" for numbers, or "DIMENSIONAL" for categories. |
| 4. Supported operations | The aggregations allowed. An empty string allows all. |
Settings are grouped into named tabs, and each setting needs a uniqueName (how your code finds its value), a type, a label, and a defaultValue. The multipleToggle and dropdown types also need an options list. The supported types are:
| Type | Use for |
|---|---|
| checkBox, toggle | On or off choices, as a tick box or a switch. |
| inputText | Free text. |
| colorComponent | A colour picker. |
| multipleToggle, dropdown | A choice from a fixed list of text options. |
Here is an example manifest. It is our own illustration, built from the structure above, and we have not tested it in a live workspace.
{
"name": "Sales Waterfall",
"icon": "icons/waterfall.png",
"dependencies": ["https://cdn.plot.ly/plotly-3.0.0.min.js"],
"structure": [
["Category", "single", "DIMENSIONAL", ""],
["Value", "single", "MEASURE", ""]
],
"settings": {
"Title": [
{
"uniqueName": "chartTitle",
"type": "inputText",
"label": "Title",
"defaultValue": ""
}
]
}
}
You must write a function called generateCustomVisual. Zoho Analytics calls it whenever the visual needs to be drawn or refreshed. It receives three things:
| Parameter | What it is |
|---|---|
| container | The page element Zoho Analytics gives you as your drawing area. Everything you draw must go inside it. |
| data | The values of the columns the user dropped in, as an array of rows, one row per record. Each row holds values in the order the columns were dropped, and only the selected columns, with their aggregations, are included. |
| metaData | Describes the data and the user's settings, in two parts: columns and customSettings. |
One entry for each dropped column, in the same order as the values in each row.
| Field | Meaning |
|---|---|
| operation | The aggregation applied, such as GROUPBY or SUM. |
| datatype | ordinal for categories, numeric for numbers. |
| columnname | The display name of the column. |
| dataindex | Where the column's value sits in each row, starting from 0. |
| dropBoxName | The drop area the column was placed in, so you can tell columns apart in code. |
The current values of the options from the Settings panel, read by each setting's uniqueName.
Here is a matching main.js for the manifest above. Again, this is our own illustration of how the pieces fit, and we have not tested it in a live workspace.
function generateCustomVisual(container, data, metaData) {
const title = metaData.customSettings.chartTitle;
const labels = data.map(function (row) { return row[0]; });
const values = data.map(function (row) { return row[1]; });
Plotly.newPlot(
container,
[{ type: "waterfall", x: labels, y: values }],
{ title: title }
);
}
const text = ZAViz_Utils.getFormattedValue(2, 17443.52);
const fontColor = ZAViz_Utils.getSuitableStyle("fontColor");
const backgroundColor = ZAViz_Utils.getSuitableStyle("backgroundColor");
const legendColor = ZAViz_Utils.getSuitableStyle("legendColor");
These let people click a data point in your visual and get the standard Zoho Analytics actions. In each one, the clicked data is an object whose keys are column indexes (counting from 1) and whose values are the clicked values.
| Function | What it does |
|---|---|
| showInteractionMenu(dataPoints, coordinates) | Shows the standard interaction menu at the clicked point. The coordinates are optional, and without them the menu appears in the middle of the chart. |
| invokeViewUnderlyingData(clicked_data) | Opens the underlying data for the clicked point. |
| invokeExplainData(clicked_data) | Opens the Explain Data view for the clicked point. |
| invokeDrillThrough(clicked_data, view_name) | Drills through from the clicked point to the named view. |
| invokeDrillAction(clicked_data, name) | Runs the named drill action for the clicked point. |
const clicked_data = { 1: "West", 2: "110.06" };
ZAViz_ActionsAPI.invokeExplainData(clicked_data);
ZAViz_ActionsAPI.invokeDrillThrough(clicked_data, "Product wise Sales");
You connect these to your chart library's own click event, passing the clicked point's values. Zoho's page shows examples for Plotly and Highcharts.
This section is our own advice, not Zoho's.