Skip to content

Commit

Permalink
#29 cleanup of unused meta.
Browse files Browse the repository at this point in the history
  • Loading branch information
itayw committed Nov 18, 2014
1 parent 2823fe7 commit 0378847
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 543 deletions.
82 changes: 0 additions & 82 deletions src/lib/viz/DimensionPicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,85 +312,3 @@ DimensionPicker.template = function (options) {
'</div>';
return html;
};

DimensionPicker.meta = {
key: 'dimensionpicker',
jQueryTag: 'Metric',
title: 'Metric Box',
tagline: '',
description: '' +
'Metric Boxes...',
longDescription: '',
example: {
css: 'width:100%',
options: {
caption: 'Mouse moves (last month)',
template: '<div class="jio dimensionbox value"></div><div class="jio dimensionbox caption"></div>',
query: {
timeframe: 'last_month',
interval: 'day',
dimensions: ['mousemoves'],
collection: 'demo-mousemoves',
"realtime": true
}
},
draw: '$("#example").Metric(options);'
},
template: DimensionPicker.template(),
metaOptions: {
container: {
datatype: 'string',
defaultValue: null,
description: '`optional` if using jQuery plugin. contains the Id of the HTML container.'
},
template: {
datatype: 'string',
defaultValue: null,
description: '`optional` Specify the HTML template to use instead of the default one.'
},
caption: {
datatype: 'string',
defaultValue: null,
description: '`optional` the caption for the dimension.'
},
query: {
datatype: 'object',
defaultValue: null,
description: '`required` contains the <a href="/data/query">query</a> object.'
}
},
metaMethods: {
init: {
signature: '.init(options)',
description: 'Initialize the visualization with a set of `options`.',
example: '$(\'#visualization\').init(options);'
},
update: {
signature: '.update(options)',
description: 'Update an existing visualization with a set of `options`.',
example: '$(\'#visualization\').update(options);'
},
destroy: {
signature: '.destroy()',
description: 'Destroy the visualization.',
example: '$(\'#visualization\').destroy();'
}
},
metaEvents: {
load: {
description: 'Visualization loaded.'
},
draw: {
description: 'The visualization HTML frame has been drawn on screen.'
},
destroy: {
description: 'Visualization destroyed.'
},
update: {
description: 'The underlying data has changed.'
},
select: {
description: 'Selection changed, dimension box clicked.'
}
}
};
82 changes: 0 additions & 82 deletions src/lib/viz/Metric.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,85 +254,3 @@ Metric.template = function (options) {
'</div>';
return html;
};

Metric.meta = {
key: 'metricbox',
jQueryTag: 'Metric',
title: 'Metric Box',
tagline: '',
description: '' +
'Metric Boxes...',
longDescription: '',
example: {
css: 'width:100%',
options: {
caption: 'Mouse moves (last month)',
template: '<div class="jio metricbox value"></div><div class="jio metricbox caption"></div>',
query: {
timeframe: 'last_month',
interval: 'day',
metrics: ['mousemoves'],
collection: 'demo-mousemoves',
"realtime": true
}
},
draw: '$("#example").Metric(options);'
},
template: Metric.template(),
metaOptions: {
container: {
datatype: 'string',
defaultValue: null,
description: '`optional` if using jQuery plugin. contains the Id of the HTML container.'
},
template: {
datatype: 'string',
defaultValue: null,
description: '`optional` Specify the HTML template to use instead of the default one.'
},
caption: {
datatype: 'string',
defaultValue: null,
description: '`optional` the caption for the metric.'
},
query: {
datatype: 'object',
defaultValue: null,
description: '`required` contains the <a href="/data/query">query</a> object.'
}
},
metaMethods: {
init: {
signature: '.init(options)',
description: 'Initialize the visualization with a set of `options`.',
example: '$(\'#visualization\').init(options);'
},
update: {
signature: '.update(options)',
description: 'Update an existing visualization with a set of `options`.',
example: '$(\'#visualization\').update(options);'
},
destroy: {
signature: '.destroy()',
description: 'Destroy the visualization.',
example: '$(\'#visualization\').destroy();'
}
},
metaEvents: {
load: {
description: 'Visualization loaded.'
},
draw: {
description: 'The visualization HTML frame has been drawn on screen.'
},
destroy: {
description: 'Visualization destroyed.'
},
update: {
description: 'The underlying data has changed.'
},
select: {
description: 'Selection changed, metric box clicked.'
}
}
};
82 changes: 0 additions & 82 deletions src/lib/viz/MetricPicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,85 +311,3 @@ MetricPicker.template = function (options) {
'</div>';
return html;
};

MetricPicker.meta = {
key: 'metricpicker',
jQueryTag: 'Metric',
title: 'Metric Box',
tagline: '',
description: '' +
'Metric Boxes...',
longDescription: '',
example: {
css: 'width:100%',
options: {
caption: 'Mouse moves (last month)',
template: '<div class="jio metricbox value"></div><div class="jio metricbox caption"></div>',
query: {
timeframe: 'last_month',
interval: 'day',
metrics: ['mousemoves'],
collection: 'demo-mousemoves',
"realtime": true
}
},
draw: '$("#example").Metric(options);'
},
template: MetricPicker.template(),
metaOptions: {
container: {
datatype: 'string',
defaultValue: null,
description: '`optional` if using jQuery plugin. contains the Id of the HTML container.'
},
template: {
datatype: 'string',
defaultValue: null,
description: '`optional` Specify the HTML template to use instead of the default one.'
},
caption: {
datatype: 'string',
defaultValue: null,
description: '`optional` the caption for the metric.'
},
query: {
datatype: 'object',
defaultValue: null,
description: '`required` contains the <a href="/data/query">query</a> object.'
}
},
metaMethods: {
init: {
signature: '.init(options)',
description: 'Initialize the visualization with a set of `options`.',
example: '$(\'#visualization\').init(options);'
},
update: {
signature: '.update(options)',
description: 'Update an existing visualization with a set of `options`.',
example: '$(\'#visualization\').update(options);'
},
destroy: {
signature: '.destroy()',
description: 'Destroy the visualization.',
example: '$(\'#visualization\').destroy();'
}
},
metaEvents: {
load: {
description: 'Visualization loaded.'
},
draw: {
description: 'The visualization HTML frame has been drawn on screen.'
},
destroy: {
description: 'Visualization destroyed.'
},
update: {
description: 'The underlying data has changed.'
},
select: {
description: 'Selection changed, metric box clicked.'
}
}
};
106 changes: 0 additions & 106 deletions src/lib/viz/Pie.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,109 +228,3 @@ Pie.template = function (options) {
'</div>';
return html;
};

Pie.meta = {
key: 'pie-chart',
jQueryTag: 'Pie',
title: 'Pie Chart',
tagline: '',
description: '' +
'Pie Charts are mainly used to provide a high-level overview of metrics based on categories. ' +
'For example, how many visitors a site had based on their browser.',
longDescription: '',
example: {
css: 'height:250px;width:100%',
options: {
query: {
timeframe: 'last_month',
interval: 'day',
dimensions: ['browser'],
metrics: ['mousemoves'],
collection: 'demo-mousemoves',
"realtime": true
}
},
draw: '$("#example").Pie(options);',
external: [
{
title: 'Change Pie Limits',
src: 'http://jsfiddle.com'
},
{
title: 'Another example',
src: 'http://jsfiddle.com'
},
{
title: 'And yet another',
src: 'http://jsfiddle.com'
}
]
},
template: Pie.template(),
metaOptions: {
container: {
datatype: 'string',
defaultValue: null,
description: '`optional` if using jQuery plugin. contains the Id of the HTML container.'
},
template: {
datatype: 'string',
defaultValue: null,
description: '`optional` Specify the HTML template to use instead of the default one.'
},
query: {
datatype: 'object',
defaultValue: null,
description: '`required` contains the <a href="/data/query">query</a> object.'
},
chart: {
datatype: 'object',
defaultValue: null,
description: '`optional` Options for the <a href="http://api.highcharts.com/highcharts">charting</a> provider.'
},
limit: {
datatype: 'number',
defaultValue: '5',
description: '`optional` The number of items to show.'
},
legend: {
datatype: 'bool',
defaultValue: 'true',
description: '`optional` Show the Pie Chart legend.'
}
},
metaMethods: {
init: {
signature: '.init(options)',
description: 'Initialize the visualization with a set of `options`.',
example: '$(\'#visualization\').init(options);'
},
update: {
signature: '.update(options)',
description: 'Update an existing visualization with a set of `options`.',
example: '$(\'#visualization\').update(options);'
},
destroy: {
signature: '.destroy()',
description: 'Destroy the visualization.',
example: '$(\'#visualization\').destroy();'
}
},
metaEvents: {
load: {
description: 'Visualization loaded.'
},
draw: {
description: 'The visualization HTML frame has been drawn on screen.'
},
destroy: {
description: 'Visualization destroyed.'
},
update: {
description: 'The underlying data has changed.'
},
select: {
description: 'Selection changed, pie chart slice clicked.'
}
}
};
Loading

0 comments on commit 0378847

Please sign in to comment.