Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 0b6f18a

Browse files
committed
ENH: refs #917. Use line color itself to render official scalars
1 parent b4e22cc commit 0b6f18a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

core/public/js/jquery/jqplot/jqplot.differentColorMarkerLineRenderer.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,16 +247,15 @@
247247
this.renderer.shapeRenderer.draw(ctx, gd, opts);
248248
}
249249
}
250-
251250

252251
// now draw the markers
253252
if (this.markerRenderer.show && !fill) {
254253
for (i=0; i<gd.length; i++) {
255254
// Grab each color and send it to a new markerRenderer.
256255
opts.markerOptions = {
257-
color: this.markerColors[i]
256+
color: this.markerColors[i] || this.color
258257
};
259-
this.markerRenderer = new $.jqplot.MarkerRenderer
258+
this.markerRenderer = new $.jqplot.MarkerRenderer;
260259
this.markerRenderer.init(opts.markerOptions);
261260
this.markerRenderer.draw(gd[i][0], gd[i][1], ctx, opts.markerOptions);
262261
}

modules/tracker/public/js/trend/trend.view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
var midas = midas || {};
22
midas.tracker = midas.tracker || {};
33

4-
midas.tracker.OFFICIAL_COLOR_KEY = 'black';
4+
midas.tracker.OFFICIAL_COLOR_KEY = null;
55
midas.tracker.UNOFFICIAL_COLOR_KEY = 'red';
66

77
/**

0 commit comments

Comments
 (0)