# \[kibana7.5\] Kibana plugin generator

**URL:** <https://discuss.elastic.co/t/kibana7-5-kibana-plugin-generator/215893>\
**Category:** Kibana\
**Created:** [January 21, 2020, 1:59pm UTC](https://discuss.elastic.co/t/kibana7-5-kibana-plugin-generator/215893 "2020-01-21T13:59:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kwang\_hee\_Han](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kwang_hee_han/32/34412_2.png) [@kwang\_hee\_Han](https://discuss.elastic.co/u/kwang_hee_Han)\
**Post date:** [January 21, 2020, 1:59pm UTC](https://discuss.elastic.co/t/kibana7-5-kibana-plugin-generator/215893/1 "2020-01-21T13:59:58Z")

</div>

Hello,

I use Kibana 7.5 and make kiban plugin using " [**kbn-plugin-generator**] . ([https://github.com/elastic/kibana/tree/master/packages/kbn-plugin-generator](https://github.com/elastic/kibana/tree/master/packages/kbn-plugin-generator))

I checked manual kibana 7.5 - visualization factory. [https://www.elastic.co/guide/en/kibana/current/development-visualization-factory.html](https://www.elastic.co/guide/en/kibana/current/development-visualization-factory.html)

I registered using 'ui/registry/vis\_types' which mentioned above documentation. But, when I install my plugin to production site kibana7.5. I got a error.

> **"ui/registry/vis\_types" not found**

I check github source code 7.5 not exsits but ["ui/registry/\_registry"](https://github.com/elastic/kibana/blob/7.5/src/legacy/ui/public/registry/_registry.js) is exists.(Not exsits registry/vis\_types!).

I think I should use "ui/registry/\_registry" but I don't know how to using them instead ui/registry/vis\_types.

```
import './index.less';
import { cvpComponent } from './cvp_plugin_vis_controller';
import { VisFactoryProvider } from 'ui/vis/vis_factory';
import { Schemas } from 'ui/vis/editors/default/schemas';
import { VisTypesRegistryProvider } from 'ui/registry/vis_types';

// register the provider with the visTypes registry
VisTypesRegistryProvider.register(cvpCalcVisProvider);

function cvpCalcVisProvider(Private, i18n) {
  const VisFactory = Private(VisFactoryProvider);
  return VisFactory.createReactVisualization({
    type: 'metric',
    name: 'CVP-Calculator',
    title: 'CVP-Calculator',
    icon: 'visMetric',
    description: 'CVP Project caculator for compound`s intersection',
    visConfig: {
      component: cvpComponent,
      defaults: {
        type: 'metric',
        addTooltip: true,
        addLegend: false,
        metric: {
          percentageMode: false,
          useRange: false,
          colorSchema: 'Green to Red',
          metricColorMode: 'None',
          colorRange: [{ from: 0, to: 10000 }],
          labels: {
            show: true,
          },
          invertColors: false,
          style: {
            bgFill: '#000',
            bgColor: false,
            labelColor: false,
            subText: '',
            fontSize: 60,
          },
        },
      },
    },
    editorConfig: {
      schemas: new Schemas([
        {
          group: 'metrics',
          name: 'metric',
          title: i18n('metricVis.schemas.metricTitle', { defaultMessage: 'Metric' }),
          min: 1,
          aggFilter: [
            '!std_dev',
            '!geo_centroid',
            '!derivative',
            '!serial_diff',
            '!moving_avg',
            '!cumulative_sum',
            '!geo_bounds',
          ],
          defaults: [{ type: 'count', schema: 'metric' }],
        },
        {
          group: 'buckets',
          name: 'group',
          title: i18n('metricVis.schemas.splitGroupTitle', { defaultMessage: 'Split Group' }),
          min: 1,
          max: 3,
          aggFilter: ['!geohash_grid', '!filter'],
        },
      ]),
    },
  });
}

```

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [January 28, 2020, 4:52pm UTC](https://discuss.elastic.co/t/kibana7-5-kibana-plugin-generator/215893/2 "2020-01-28T16:52:24Z")

</div>

Hello,  
If you want a plugin for the 7.5 version of Kibana, you need to use the plugin generator from the 7.5 branch: [https://github.com/elastic/kibana/tree/7.5/packages/kbn-plugin-generator](https://github.com/elastic/kibana/tree/7.5/packages/kbn-plugin-generator)

---

<div class="post-metadata">

**Author:** ![kwang\_hee\_Han](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kwang_hee_han/32/34412_2.png) [@kwang\_hee\_Han](https://discuss.elastic.co/u/kwang_hee_Han)\
**Post date:** [January 29, 2020, 1:06am UTC](https://discuss.elastic.co/t/kibana7-5-kibana-plugin-generator/215893/3 "2020-01-29T01:06:58Z")

</div>

@Marius_Dragomir.  
You means that if i checkout kibana 7.5 and using "kbn-plugin-generator" then generator set the default code for 7.5?

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [January 29, 2020, 10:56am UTC](https://discuss.elastic.co/t/kibana7-5-kibana-plugin-generator/215893/4 "2020-01-29T10:56:44Z")

</div>

Yes.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 26, 2020, 10:57am UTC](https://discuss.elastic.co/t/kibana7-5-kibana-plugin-generator/215893/5 "2020-02-26T10:57:01Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
