This repository has been archived by the owner on Oct 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from sirensolutions/branch-5.5.2
Update to kibi 5.5.2
- Loading branch information
Showing
3 changed files
with
522 additions
and
520 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"name": "kibi_radar_vis", | ||
"version": "5.4.0-1", | ||
"version": "5.5.2", | ||
"kibana" : { | ||
"version": "5.4.3" | ||
"version": "5.5.2" | ||
}, | ||
"authors": [ | ||
"SIREn Solutions <[email protected]>" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,76 +1,78 @@ | ||
define(function (require) { | ||
// we need to load the css ourselves | ||
require('plugins/kibi_radar_vis/kibi_radar_vis.less'); | ||
import { VisVisTypeProvider } from 'ui/vis/vis_type'; | ||
import { TemplateVisTypeProvider } from 'ui/template_vis_type/template_vis_type'; | ||
import { VisSchemasProvider } from 'ui/vis/schemas'; | ||
import { VisTypesRegistryProvider } from 'ui/registry/vis_types'; | ||
|
||
// we also need to load the controller and used by the template | ||
require('plugins/kibi_radar_vis/kibi_radar_vis_controller'); | ||
// we need to load the css ourselves | ||
import 'plugins/kibi_radar_vis/kibi_radar_vis.less'; | ||
// we also need to load the controller and used by the template | ||
import 'plugins/kibi_radar_vis/kibi_radar_vis_controller'; | ||
import template from 'plugins/kibi_radar_vis/kibi_radar_vis.html'; | ||
// register the provider with the visTypes registry | ||
VisTypesRegistryProvider.register(RadarVisProvider); | ||
|
||
// register the provider with the visTypes registry | ||
require('ui/registry/vis_types').register(RadarVisProvider); | ||
function RadarVisProvider(Private) { | ||
const VisType = Private(VisVisTypeProvider); | ||
const TemplateVisType = Private(TemplateVisTypeProvider); | ||
const Schemas = Private(VisSchemasProvider); | ||
|
||
function RadarVisProvider(Private) { | ||
const VisType = Private(require('ui/vis/vis_type')); | ||
const TemplateVisType = Private(require('ui/template_vis_type/template_vis_type')); | ||
const Schemas = Private(require('ui/vis/schemas')); | ||
|
||
// return the visType object, which kibana will use to display and configure new | ||
// Vis object of this type. | ||
return new TemplateVisType({ | ||
name: 'radar', | ||
title: 'Kibi Radar Chart', | ||
description: 'A radar chart is a graphical method of displaying multivariate data ' + | ||
'in the form of a two-dimensional chart of three or more ' + | ||
'quantitative variables represented on axes starting from the same point.' + | ||
' The relative position and angle of the axes is typically uninformative.', | ||
icon: 'fa-empire', | ||
category: VisType.CATEGORY.KIBI, | ||
template: require('plugins/kibi_radar_vis/kibi_radar_vis.html'), | ||
params: { | ||
defaults: { | ||
fontSize: 60, | ||
shareYAxis: true, | ||
addTooltip: true, | ||
addLegend: true, | ||
isDonut: false, | ||
isFacet: false, | ||
addLevel: true, | ||
addAxe: true, | ||
addVertice: true, | ||
addPolygon: true, | ||
addLevelLabel: true, | ||
addAxeLabel: true, | ||
addLevelScale: 1, | ||
addLabelScale: 0.9, | ||
addLevelNumber: 5 | ||
}, | ||
editor: require('plugins/kibi_radar_vis/kibi_radar_vis_params.html') | ||
// return the visType object, which kibana will use to display and configure new | ||
// Vis object of this type. | ||
return new TemplateVisType({ | ||
name: 'radar', | ||
title: 'Kibi Radar Chart', | ||
description: 'A radar chart is a graphical method of displaying multivariate data ' + | ||
'in the form of a two-dimensional chart of three or more ' + | ||
'quantitative variables represented on axes starting from the same point.' + | ||
' The relative position and angle of the axes is typically uninformative.', | ||
icon: 'fa-empire', | ||
category: VisType.CATEGORY.KIBI, | ||
template, | ||
params: { | ||
defaults: { | ||
fontSize: 60, | ||
shareYAxis: true, | ||
addTooltip: true, | ||
addLegend: true, | ||
isDonut: false, | ||
isFacet: false, | ||
addLevel: true, | ||
addAxe: true, | ||
addVertice: true, | ||
addPolygon: true, | ||
addLevelLabel: true, | ||
addAxeLabel: true, | ||
addLevelScale: 1, | ||
addLabelScale: 0.9, | ||
addLevelNumber: 5 | ||
}, | ||
editor: require('plugins/kibi_radar_vis/kibi_radar_vis_params.html') | ||
}, | ||
schemas: new Schemas([ | ||
{ | ||
group: 'metrics', | ||
name: 'metric', | ||
title: 'Metric', | ||
min: 3, | ||
defaults: [ | ||
{ type: 'count', schema: 'metric' }, | ||
{ type: 'count', schema: 'metric' }, | ||
{ type: 'count', schema: 'metric' } | ||
], | ||
aggFilter: ['count','cardinality', 'avg', 'sum', 'min', 'max'] | ||
}, | ||
schemas: new Schemas([ | ||
{ | ||
group: 'metrics', | ||
name: 'metric', | ||
title: 'Metric', | ||
min: 3, | ||
defaults: [ | ||
{ type: 'count', schema: 'metric' }, | ||
{ type: 'count', schema: 'metric' }, | ||
{ type: 'count', schema: 'metric' } | ||
], | ||
aggFilter: ['count','cardinality', 'avg', 'sum', 'min', 'max'] | ||
}, | ||
{ | ||
group: 'buckets', | ||
name: 'segment', | ||
icon: 'fa fa-scissors', | ||
title: 'Split Slices', | ||
min: 1, | ||
max: 1, | ||
aggFilter: ['terms','range'] | ||
} | ||
]) | ||
}); | ||
} | ||
{ | ||
group: 'buckets', | ||
name: 'segment', | ||
icon: 'fa fa-scissors', | ||
title: 'Split Slices', | ||
min: 1, | ||
max: 1, | ||
aggFilter: ['terms','range'] | ||
} | ||
]) | ||
}); | ||
} | ||
|
||
// export the provider so that the visType can be required with Private() | ||
return RadarVisProvider; | ||
}); | ||
// export the provider so that the visType can be required with Private() | ||
export default RadarVisProvider; |
Oops, something went wrong.