You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
# Kibana Plugin - Custom Form Filter Visualization
2
2
3
-
This project is a simple tutorial for Kibana new comers trying to developer their own vizualisation plugin. The actual usecase is to create a custom form to filter data to help end-users search their data.
3
+
This project is a simple tutorial for Kibana new comers trying to developer their own vizualisation plugin. The actual usecase of this plugin is to create a custom form to filter data and tailor dashboard output.
4
4
5
5
This plugin is a demo for the accounts data which can be downloaded from elastic web site [here](https://download.elastic.co/demos/kibana/gettingstarted/accounts.zip) then uploaded via `curl -H 'Content-Type: application/x-ndjson' -XPOST 'localhost:9200/bank/account/_bulk?pretty' --data-binary @accounts.json`.
6
6
7
-
As plugin architecture is being under heavy redesign in 7.x and documentation is rather obscure, I did my best to create something simple that works.
7
+
As plugin architecture is being under heavy redesign in 7.x and documentation is rather obscure, I did my best to create something simple that works. The code is also basic, I am JavaScript beginner!
8
8
9
9
This repository is for Kibana v7.7 while [this repository](https://github.com/guyplusplus/Kibana-Plugin-Custom-Form-Filter-Visualization-Legacy) is for 7.6.2 legacy architecture.
10
10
@@ -132,9 +132,11 @@ The form code looks like this and is very simple to modify, based on EUI React c
132
132
</div>
133
133
```
134
134
135
+
I use [Microsoft Code](https://code.visualstudio.com/) to edit code and [Google Chrome](https://www.google.com/chrome/) to debug.
136
+
135
137
## Packaging the plugin as a zip file
136
138
137
-
Simply add the plugin directory inside a `kibana` folder and zip the file. Do not include the `kibana/target` directory. The zip structure is
139
+
Simply add the plugin directory inside a `kibana` folder and zip the file. Do not include the `my-plugin/target` directory in the zip file. The zip structure is
138
140
139
141
```
140
142
my-plugin_7.7.0.zip
@@ -153,8 +155,8 @@ my-plugin_7.7.0.zip
153
155
The plugin can then be installed like this for an apt installed Kibana.
description: 'This sample custom visualization plugin contains a simple UI to adjust filter for accounts test data',
43
+
visConfig: {
44
+
defaults: {
45
+
filterCounter: 0,//0=no action -1=delete all filters,1=first time to add filters with clicking 'Apply filter', then 2 onward each time this button is click
0 commit comments