diff --git a/src/sql/parts/dashboard/widgets/insights/insightsWidget.component.ts b/src/sql/parts/dashboard/widgets/insights/insightsWidget.component.ts index e1f092b8d7..7d6e928229 100644 --- a/src/sql/parts/dashboard/widgets/insights/insightsWidget.component.ts +++ b/src/sql/parts/dashboard/widgets/insights/insightsWidget.component.ts @@ -231,7 +231,7 @@ export class InsightsWidget extends DashboardWidget implements IDashboardWidget, if (componentInstance.setConfig) { componentInstance.setConfig(this.insightConfig.type[this._typeKey]); } - componentInstance.data = { columns: result.columnInfo.map(item => item.columnName), rows: result.rows.map(row => row.map(item => item.displayValue)) }; + componentInstance.data = { columns: result.columnInfo.map(item => item.columnName), rows: result.rows.map(row => row.map(item => (item.invariantCultureDisplayValue === null || item.invariantCultureDisplayValue === undefined) ? item.displayValue : item.invariantCultureDisplayValue)) }; if (componentInstance.init) { componentInstance.init(); diff --git a/src/sql/parts/grid/views/query/chartViewer.component.ts b/src/sql/parts/grid/views/query/chartViewer.component.ts index 173cf466e0..46faffe96f 100644 --- a/src/sql/parts/grid/views/query/chartViewer.component.ts +++ b/src/sql/parts/grid/views/query/chartViewer.component.ts @@ -329,7 +329,7 @@ export class ChartViewerComponent implements OnInit, OnDestroy, IChartViewAction this._executeResult = {}; this._executeResult.columns = dataSet.columnDefinitions.map(def => def.name); this._executeResult.rows = dataSet.dataRows.getRange(0, dataSet.dataRows.getLength()).map(gridRow => { - return gridRow.values.map(cell => cell.displayValue); + return gridRow.values.map(cell => (cell.invariantCultureDisplayValue === null || cell.invariantCultureDisplayValue === undefined) ? cell.displayValue : cell.invariantCultureDisplayValue); }); } diff --git a/src/sql/sqlops.d.ts b/src/sql/sqlops.d.ts index ce9298dbde..e24c601848 100644 --- a/src/sql/sqlops.d.ts +++ b/src/sql/sqlops.d.ts @@ -816,6 +816,7 @@ declare module 'sqlops' { export interface DbCellValue { displayValue: string; isNull: boolean; + invariantCultureDisplayValue: string; } export interface ResultSetSubset {