Skip to content
This repository has been archived by the owner on Oct 30, 2021. It is now read-only.

Commit

Permalink
Merge pull request #30 from sirensolutions/branch-5.5.2
Browse files Browse the repository at this point in the history
Update to kibi 5.5.2
  • Loading branch information
szydan authored Aug 30, 2017
2 parents b0ff813 + ee15a9c commit 92c398b
Show file tree
Hide file tree
Showing 3 changed files with 522 additions and 520 deletions.
4 changes: 2 additions & 2 deletions package.json
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]>"
Expand Down
144 changes: 73 additions & 71 deletions public/kibi_radar_vis.js
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;
Loading

0 comments on commit 92c398b

Please sign in to comment.