add support to accept visualization options (#14254)

* allow query provider to specify visual options

* make it reusable

* add comment

* fix error

* null check
This commit is contained in:
Alan Ren
2021-02-11 15:40:45 -08:00
committed by GitHub
parent c511d1a78f
commit 756454efa9
4 changed files with 50 additions and 2 deletions

View File

@@ -983,4 +983,23 @@ declare module 'azdata' {
*/
MsGraph = 7
}
export interface ResultSetSummary {
/**
* The visualization options for the result set.
*/
visualization?: VisualizationOptions;
}
/**
* Defines all the supported visualization types
*/
export type VisualizationType = 'bar' | 'count' | 'doughnut' | 'horizontalBar' | 'image' | 'line' | 'pie' | 'scatter' | 'table' | 'timeSeries';
/**
* Defines the configuration options for visualization
*/
export interface VisualizationOptions {
type: VisualizationType;
}
}