forked from extern/egroupware
Update jqplot to
jquery.jqplot.1.0.0b2_r947
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
* jqPlot
|
||||
* Pure JavaScript plotting plugin using jQuery
|
||||
*
|
||||
* Version: 1.0.0b2_r792
|
||||
* Version: 1.0.0b2_r947
|
||||
*
|
||||
* Copyright (c) 2009-2011 Chris Leonello
|
||||
* jqPlot is currently available for use in all personal or commercial projects
|
||||
@ -92,17 +92,19 @@
|
||||
// current series passed in
|
||||
// must return null or an object {label:label, color:color}
|
||||
function addTrendlineLegend(series) {
|
||||
var lt = series.trendline.label.toString();
|
||||
var ret = null;
|
||||
if (this.renderer.constructor != $.jqplot.PieRenderer && series.trendline.show && lt) {
|
||||
ret = {label:lt, color:series.trendline.color};
|
||||
if (series.trendline && series.trendline.show) {
|
||||
var lt = series.trendline.label.toString();
|
||||
if (lt) {
|
||||
ret = {label:lt, color:series.trendline.color};
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
// called within scope of a series
|
||||
function parseTrendLineOptions (target, data, seriesDefaults, options, plot) {
|
||||
if (this.renderer.constructor == $.jqplot.LineRenderer) {
|
||||
if (this._type && (this._type === 'line' || this._type == 'bar')) {
|
||||
this.trendline = new $.jqplot.Trendline();
|
||||
options = options || {};
|
||||
$.extend(true, this.trendline, {color:this.color}, seriesDefaults.trendline, options.trendline);
|
||||
@ -115,7 +117,7 @@
|
||||
// if we have options, merge trendline options in with precedence
|
||||
options = $.extend(true, {}, this.trendline, options);
|
||||
|
||||
if (options.show && this.renderer.constructor != $.jqplot.PieRenderer) {
|
||||
if (this.trendline && options.show) {
|
||||
var fit;
|
||||
// this.renderer.setGridData.call(this);
|
||||
var data = options.data || this.data;
|
||||
|
Reference in New Issue
Block a user