]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Merge pull request #856 from tannerlinsley/editable-chart-config
authorWilliam Entriken <github.com@phor.net>
Mon, 4 May 2015 19:28:03 +0000 (15:28 -0400)
committerWilliam Entriken <github.com@phor.net>
Mon, 4 May 2015 19:28:03 +0000 (15:28 -0400)
Data now editable right from chart config

1  2 
src/Chart.Bar.js
src/Chart.Doughnut.js
src/Chart.Line.js
src/Chart.PolarArea.js
src/Chart.Radar.js

Simple merge
Simple merge
index dbc974cbb73dfd0c6be2016b03008327798d6428,a3acb6a5d25030ef5ac934265cf2eea2ad97a98b..bc88488a950cdba043e2d1565181e921e900a1b7
                name: "Line",
                defaults : defaultConfig,
                initialize:  function(data){
+                       // Save data as a source for updating of values & methods
+                       this.data = data;
                        //Declare the extension of the default point, to cater for the options passed in to the constructor
                        this.PointClass = Chart.Point.extend({
 +                              offsetGridLines : this.options.offsetGridLines,
                                strokeWidth : this.options.pointDotStrokeWidth,
                                radius : this.options.pointDotRadius,
                                display: this.options.pointDot,
Simple merge
Simple merge