parent
98fd4b99bc
commit
a4a74c81ef
|
@ -50,7 +50,7 @@ export class VisTypeVislibPlugin
|
|||
core: VisTypeVislibCoreSetup,
|
||||
{ expressions, visualizations, charts }: VisTypeVislibPluginSetupDependencies
|
||||
) {
|
||||
if (!core.uiSettings.get(LEGACY_CHARTS_LIBRARY, true)) {
|
||||
if (!core.uiSettings.get(LEGACY_CHARTS_LIBRARY, false)) {
|
||||
// Register only non-replaced vis types
|
||||
convertedTypeDefinitions.forEach(visualizations.createBaseVisualization);
|
||||
visualizations.createBaseVisualization(pieVisTypeDefinition);
|
||||
|
|
|
@ -63,7 +63,7 @@ export class VisTypeXyPlugin
|
|||
core: VisTypeXyCoreSetup,
|
||||
{ expressions, visualizations, charts, usageCollection }: VisTypeXyPluginSetupDependencies
|
||||
) {
|
||||
if (!core.uiSettings.get(LEGACY_CHARTS_LIBRARY, true)) {
|
||||
if (!core.uiSettings.get(LEGACY_CHARTS_LIBRARY, false)) {
|
||||
setUISettings(core.uiSettings);
|
||||
setThemeService(charts.theme);
|
||||
setPalettesService(charts.palettes);
|
||||
|
|
|
@ -20,7 +20,7 @@ export const uiSettingsConfig: Record<string, UiSettingsParams<boolean>> = {
|
|||
name: i18n.translate('visTypeXy.advancedSettings.visualization.legacyChartsLibrary.name', {
|
||||
defaultMessage: 'Legacy charts library',
|
||||
}),
|
||||
value: true,
|
||||
value: false,
|
||||
description: i18n.translate(
|
||||
'visTypeXy.advancedSettings.visualization.legacyChartsLibrary.description',
|
||||
{
|
||||
|
|
|
@ -50,6 +50,7 @@ export default async function ({ readConfigFile }) {
|
|||
defaults: {
|
||||
'accessibility:disableAnimations': true,
|
||||
'dateFormat:tz': 'UTC',
|
||||
'visualization:visualize:legacyChartsLibrary': true,
|
||||
},
|
||||
},
|
||||
|
||||
|
|
|
@ -101,6 +101,7 @@ export default async function ({ readConfigFile }) {
|
|||
defaults: {
|
||||
'accessibility:disableAnimations': true,
|
||||
'dateFormat:tz': 'UTC',
|
||||
'visualization:visualize:legacyChartsLibrary': true,
|
||||
},
|
||||
},
|
||||
// the apps section defines the urls that
|
||||
|
|
Loading…
Reference in a new issue