import { i18n } from '@kbn/i18n' ; import { schema } from '@kbn/config-schema' ; import { UiSettingsParams } from 'kibana/server' ; import { HEATMAP_MAX_BUCKETS_SETTING } from '../common' ; export const getUiSettings = ( ) => ( { [ HEATMAP_MAX_BUCKETS_SETTING ] : { name : i18n . translate ( 'visTypeVislib.advancedSettings.visualization.heatmap.maxBucketsTitle' , { defaultMessage : 'Heatmap maximum buckets' , } ) , value : 50 , type : 'number' , description : i18n . translate ( 'visTypeVislib.advancedSettings.visualization.heatmap.maxBucketsText' , { defaultMessage : 'The maximum number of buckets a single datasource can return. ' + 'A higher number might have negative impact on browser rendering performance' , } ) , category : [ 'visualization' ] , schema : schema . number ( ) , } , } ) ;