From a508f993cba28a028abb86861d38862d03188f97 Mon Sep 17 00:00:00 2001 From: isisadmin Date: Fri, 2 Oct 2015 02:15:12 +0200 Subject: [PATCH] added datalet documentation --- datalets/barchart-datalet/barchart-datalet.html | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++--- datalets/column3Dchart-datalet/column3Dchart-datalet.html | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++------- datalets/columnchart-datalet/columnchart-datalet.html | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++- datalets/leafletjs-datalet/leafletjs-datalet.html | 115 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------- datalets/linechart-datalet/linechart-datalet.html | 52 +++++++++++++++++++++++++++++++++++++++++++++++++++- datalets/treemap-datalet/treemap-datalet.html | 24 ++++++++++++++++++++++++ 6 files changed, 306 insertions(+), 49 deletions(-) diff --git a/datalets/barchart-datalet/barchart-datalet.html b/datalets/barchart-datalet/barchart-datalet.html index b11e095..4495f4d 100755 --- a/datalets/barchart-datalet/barchart-datalet.html +++ b/datalets/barchart-datalet/barchart-datalet.html @@ -1,14 +1,57 @@ + + + + + + @@ -22,12 +57,14 @@ var column3DchartBehavior = { - + /** + * Bluid Highchart object + * + * @method transformData + */ transformData: function(){ - //Bluid Highchart element chart = new Highcharts.Chart({ chart: { - //To Modify renderTo: 'container', renderTo: this._component.$.charts.$.container, borderColor: '#EBBA95', borderWidth: 2, @@ -44,7 +81,7 @@ } }, xAxis: { - categories: this.properties.categories.value,//this._component.categories, + categories: this.properties.categories.value, title: { text: null } @@ -62,7 +99,7 @@ }, series: this.properties.series.value - });//highcharts + }); // Activate the sliders $('#R0').on('change', function () { @@ -81,6 +118,12 @@ column3DchartDatalet = Polymer({ is: 'column3Dchart-datalet', + /** + * 'ready' callback extend the column3DchartComponentBehavior with HighchartsComponentBehavior and column3DchartBehavior + * and run the Datalet workcycle. + * + * @method ready + */ ready: function(){ var column3DchartComponentBehavior = $.extend({}, HighchartsComponentBehavior, column3DchartBehavior); column3DchartComponentBehavior.properties = $.extend({}, HighchartsComponentBehavior.properties, column3DchartBehavior.properties); diff --git a/datalets/columnchart-datalet/columnchart-datalet.html b/datalets/columnchart-datalet/columnchart-datalet.html index 7a17220..1d2c17d 100755 --- a/datalets/columnchart-datalet/columnchart-datalet.html +++ b/datalets/columnchart-datalet/columnchart-datalet.html @@ -1,14 +1,56 @@ + + + + diff --git a/datalets/linechart-datalet/linechart-datalet.html b/datalets/linechart-datalet/linechart-datalet.html index c203aea..202136c 100755 --- a/datalets/linechart-datalet/linechart-datalet.html +++ b/datalets/linechart-datalet/linechart-datalet.html @@ -1,14 +1,57 @@ + + + +