Changeset 11222 for branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/Scripts
- Timestamp:
- 07/24/14 09:16:42 (10 years ago)
- Location:
- branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/Scripts
- Files:
-
- 90 added
- 6 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/Scripts/CollapsingSection.js
r11084 r11222 3 3 $(".collapse").click(function () { 4 4 if ($(this).html() == "-") { 5 $(this).parent().children("canvas, div, fieldset, label ").fadeOut();5 $(this).parent().children("canvas, div, fieldset, label, .chartContainer, a, table").fadeOut(); 6 6 $(this).html("+"); 7 7 } 8 8 else { 9 $(this).parent().children("canvas, div, fieldset, label ").fadeIn();9 $(this).parent().children("canvas, div, fieldset, label, .chartContainer, a, table").fadeIn(); 10 10 $(this).html("-"); 11 11 } … … 18 18 var jqCaller = $(caller); 19 19 if (jqCaller.html() == "-") { 20 jqCaller.parent().children("canvas, div, fieldset, label, .chartContainer ").fadeOut();20 jqCaller.parent().children("canvas, div, fieldset, label, .chartContainer, a, table").fadeOut(); 21 21 jqCaller.html("+"); 22 22 } 23 23 else { 24 jqCaller.parent().children("canvas, div, fieldset, label, .chartContainer ").fadeIn();24 jqCaller.parent().children("canvas, div, fieldset, label, .chartContainer, a, table").fadeIn(); 25 25 jqCaller.html("-"); 26 26 } … … 30 30 section */ 31 31 function CollapsedByDefault(caller) { 32 $(caller).parent().children("canvas, div, fieldset, label, .chartContainer ").hide();32 $(caller).parent().children("canvas, div, fieldset, label, .chartContainer, a, table").hide(); 33 33 } 34 34 … … 36 36 function OpenOnError(caller) { 37 37 var jqCaller = $(caller); 38 jqCaller.parent().children("canvas, div, fieldset, label, .chartContainer ").fadeIn();38 jqCaller.parent().children("canvas, div, fieldset, label, .chartContainer, a, table").fadeIn(); 39 39 jqCaller.parent().children("button").html("-"); 40 40 } … … 45 45 var jqCaller = $(caller); 46 46 if (jqCaller.html() == "-") { 47 jqCaller.parent().children("canvas, div, fieldset, label, .chartContainer, .tabSection ").hide();47 jqCaller.parent().children("canvas, div, fieldset, label, .chartContainer, .tabSection, a, table").hide(); 48 48 jqCaller.html("+"); 49 49 } 50 50 else { 51 jqCaller.parent().children("canvas, div, fieldset, label, .chartContainer, .tabSection ").show();51 jqCaller.parent().children("canvas, div, fieldset, label, .chartContainer, .tabSection, a, table").show(); 52 52 jqCaller.html("-"); 53 53 } -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/Scripts/jqPlot/plugins/jqplot.dateAxisRenderer.js
r9646 r11222 3 3 * Pure JavaScript plotting plugin using jQuery 4 4 * 5 * Version: 1.0.0b2_r1012 5 * Version: 1.0.8 6 * Revision: 1250 6 7 * 7 * Copyright (c) 2009-201 1Chris Leonello8 * Copyright (c) 2009-2013 Chris Leonello 8 9 * jqPlot is currently available for use in all personal or commercial projects 9 10 * under both the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL … … 33 34 * A plugin for a jqPlot to render an axis as a series of date values. 34 35 * This renderer has no options beyond those supplied by the <Axis> class. 35 * It supplies it 's own tick formatter, so the tickOptions.formatter option36 * It supplies its own tick formatter, so the tickOptions.formatter option 36 37 * should not be overridden. 37 38 * … … 334 335 var threshold = 30; 335 336 var insetMult = 1; 337 var daTickInterval = null; 338 339 // if user specified a tick interval, convert to usable. 340 if (this.tickInterval != null) 341 { 342 // if interval is a number or can be converted to one, use it. 343 // Assume it is in SECONDS!!! 344 if (Number(this.tickInterval)) { 345 daTickInterval = [Number(this.tickInterval), 'seconds']; 346 } 347 // else, parse out something we can build from. 348 else if (typeof this.tickInterval == "string") { 349 var parts = this.tickInterval.split(' '); 350 if (parts.length == 1) { 351 daTickInterval = [1, parts[0]]; 352 } 353 else if (parts.length == 2) { 354 daTickInterval = [parts[0], parts[1]]; 355 } 356 } 357 } 336 358 337 359 var tickInterval = this.tickInterval; … … 401 423 //////// 402 424 425 // special case when there is only one point, make three tick marks to center the point 426 else if (this.min == null && this.max == null && db.min == db.max) 427 { 428 var onePointOpts = $.extend(true, {}, this.tickOptions, {name: this.name, value: null}); 429 var delta = 300000; 430 this.min = db.min - delta; 431 this.max = db.max + delta; 432 this.numberTicks = 3; 433 434 for(var i=this.min;i<=this.max;i+= delta) 435 { 436 onePointOpts.value = i; 437 438 var t = new this.tickRenderer(onePointOpts); 439 440 if (this._overrideFormatString && this._autoFormatString != '') { 441 t.formatString = this._autoFormatString; 442 } 443 444 t.showLabel = false; 445 t.showMark = false; 446 447 this._ticks.push(t); 448 } 449 450 if(this.showTicks) { 451 this._ticks[1].showLabel = true; 452 } 453 if(this.showTickMarks) { 454 this._ticks[1].showTickMarks = true; 455 } 456 } 403 457 // if user specified min and max are null, we set those to make best ticks. 404 458 else if (this.min == null && this.max == null) { 459 405 460 var opts = $.extend(true, {}, this.tickOptions, {name: this.name, value: null}); 461 406 462 // want to find a nice interval 407 463 var nttarget, … … 425 481 426 482 // If tickInterval is specified, we'll try to honor it. 427 // Not g auranteed to get this interval, but we'll get as close as483 // Not guaranteed to get this interval, but we'll get as close as 428 484 // we can. 429 485 // tickInterval will be used before numberTicks, that is if 430 486 // both are specified, numberTicks will be ignored. 431 487 else if (this.tickInterval) { 432 titarget = this.tickInterval;488 titarget = new $.jsDate(0).add(daTickInterval[0], daTickInterval[1]).getTime(); 433 489 } 434 490 435 491 // if numberTicks specified, try to honor it. 436 // Not g auranteed, but will try to get close.492 // Not guaranteed, but will try to get close. 437 493 else if (this.numberTicks) { 438 494 nttarget = this.numberTicks; … … 446 502 this._autoFormatString = ret[1]; 447 503 448 min = Math.floor(min/tempti) * tempti;449 504 min = new $.jsDate(min); 450 min = min.getTime();505 min = Math.floor((min.getTime() - min.getUtcOffset())/tempti) * tempti + min.getUtcOffset(); 451 506 452 507 nttarget = Math.ceil((max - min) / tempti) + 1; … … 606 661 } 607 662 608 // if user specified a tick interval, convert to usable. 609 if (this.tickInterval != null) 610 { 611 // if interval is a number or can be converted to one, use it. 612 // Assume it is in SECONDS!!! 613 if (Number(this.tickInterval)) { 614 this.daTickInterval = [Number(this.tickInterval), 'seconds']; 615 } 616 // else, parse out something we can build from. 617 else if (typeof this.tickInterval == "string") { 618 var parts = this.tickInterval.split(' '); 619 if (parts.length == 1) { 620 this.daTickInterval = [1, parts[0]]; 621 } 622 else if (parts.length == 2) { 623 this.daTickInterval = [parts[0], parts[1]]; 624 } 625 } 663 if (this.tickInterval != null && daTickInterval != null) { 664 this.daTickInterval = daTickInterval; 626 665 } 627 666
Note: See TracChangeset
for help on using the changeset viewer.