datasweet / kibana-datasweet-formula

This Kibana plugin allows calculated metrics on any standard kibana visualizations.
Apache License 2.0
121 stars 34 forks source link

Enhancement Request: Add datasweet formula to region maps in kibana #13

Closed georgezoto closed 6 years ago

georgezoto commented 6 years ago

Hello datasweet team,

I wanted to ask if you plan to add the amazing datasweet formula feature for regionmaps as well in kibana. What about other types of visualizations like coordinate maps or pie charts?

region maps

Thank you again, George

charlotth commented 6 years ago

Hi @georgezoto

For now, the region map is defined as below :

 schemas: new Schemas([
        {
          group: 'metrics',
          name: 'metric',
          title: 'Value',
          min: 1,
          max: 1,
          aggFilter: ['count', 'avg', 'sum', 'min', 'max', 'cardinality', 'top_hits',
            'sum_bucket', 'min_bucket', 'max_bucket', 'avg_bucket'],
          defaults: [
            { schema: 'metric', type: 'count' }
          ]
        },
        {
          group: 'buckets',
          name: 'segment',
          icon: 'fa fa-globe',
          title: 'shape field',
          min: 1,
          max: 1,
          aggFilter: ['terms']
        }
      ])
}

So to add datasweet_formula to region map, we have to tweak the region_map definition. I am not sure this is a good thing.