@kusto/monaco-kusto
Version:
CSL, KQL plugin for the Monaco Editor
32 lines (31 loc) • 1.19 kB
TypeScript
export type VisualizationType = 'anomalychart' | 'areachart' | 'barchart' | 'columnchart' | 'ladderchart' | 'linechart' | 'piechart' | 'pivotchart' | 'scatterchart' | 'stackedareachart' | 'timechart' | 'table' | 'timeline' | 'timepivot' | 'card' | 'plotly';
export type Scale = 'linear' | 'log';
export type LegendVisibility = 'visible' | 'hidden';
export type YSplit = 'none' | 'axes' | 'panels';
export type Kind = 'default' | 'unstacked' | 'stacked' | 'stacked100' | 'map';
export interface RenderOptions {
visualization?: null | VisualizationType;
title?: null | string;
xcolumn?: null | string;
series?: null | string[];
ycolumns?: null | string[];
xtitle?: null | string;
ytitle?: null | string;
xaxis?: null | Scale;
yaxis?: null | Scale;
legend?: null | LegendVisibility;
ysplit?: null | YSplit;
accumulate?: null | boolean;
kind?: null | Kind;
anomalycolumns?: null | string[];
ymin?: null | number;
ymax?: null | number;
}
export interface RenderInfo {
options: RenderOptions;
location: {
startOffset: number;
endOffset: number;
};
}
export type RenderOptionKeys = keyof RenderOptions;