in powerbi-visual-builder/src_visual/visual.ts [683:723]
currency: parseSafe(
(dataView.metadata.objects?.[SettingsNames.General]
.currency as any) || defaultCurrency,
defaultCurrency
),
decimal:
(dataView.metadata.objects?.[SettingsNames.General]
.decimalSeparator as any) || defaultDecimalSeparator,
thousands:
(dataView.metadata.objects?.[SettingsNames.General]
.thousandSeparator as any) || defaultThousandSeparator,
grouping: parseSafe(
(dataView.metadata.objects?.[SettingsNames.General]
.group as any) || defaultGroup,
defaultGroup
)
});
} catch (ex) {
console.warn("Loading localization settings failed");
}
const { dataset } = getDatasetResult;
// Check if dataset is the same
const datasetJSON = JSON.stringify(dataset);
if (datasetJSON != this.currentDatasetJSON) {
this.handleMouseMove = null;
this.unmountContainer();
}
this.currentDatasetJSON = datasetJSON;
// Recreate chartContainer if not exist
if (!this.chartContainer) {
this.divChart.innerHTML = "";
this.chartTemplate.reset();
const defaultTable = this.getDefaultTable(this.template);
const columns = defaultTable.columns as PowerBIColumn[];
this.chartTemplate.assignTable(
defaultTable.name,
defaultTable.name
);
for (const column of columns) {