]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Support radar tooltip mode 'label'
authorEvert Timberg <evert.timberg+github@gmail.com>
Sat, 23 Apr 2016 00:48:41 +0000 (20:48 -0400)
committerEvert Timberg <evert.timberg+github@gmail.com>
Sat, 23 Apr 2016 00:48:41 +0000 (20:48 -0400)
src/core/core.tooltip.js

index ddf78f62ad91a62ad96dbcf9e921eaebcc29693c..88fb9b1220f96ece19579f717932f804a85a1c28 100644 (file)
@@ -250,7 +250,7 @@ module.exports = function(Chart) {
                                                                datasetIndex: datasetIndex
                                                        });
                                                }
-                                       }, null, element._yScale.options.stacked);
+                                       }, null);
 
                                        helpers.each(this._active, function(active) {
                                                if (active) {
@@ -259,10 +259,10 @@ module.exports = function(Chart) {
                                                                backgroundColor: active._view.backgroundColor
                                                        });
                                                }
-                                       }, null, element._yScale.options.stacked);
+                                       }, null);
 
                                        tooltipPosition = this.getAveragePosition(this._active);
-                                       tooltipPosition.y = this._active[0]._yScale.getPixelForDecimal(0.5);
+                                       //tooltipPosition.y = this._active[0]._yScale.getPixelForDecimal(0.5);
                                }
 
                                // Build the Text Lines