From 1bb4696d5ad85af6a09a5f11ae6e4e30bafd69bd Mon Sep 17 00:00:00 2001 From: Nikolas Nyby Date: Wed, 8 Jan 2025 15:21:27 -0500 Subject: [PATCH] Correct tariff line --- media/js/src/graphs/LinearDemandSupplySurplus.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/media/js/src/graphs/LinearDemandSupplySurplus.js b/media/js/src/graphs/LinearDemandSupplySurplus.js index 2f7b2b2e2..e57c099cd 100644 --- a/media/js/src/graphs/LinearDemandSupplySurplus.js +++ b/media/js/src/graphs/LinearDemandSupplySurplus.js @@ -186,6 +186,10 @@ const epsqbar = function(c, b, a, d, qbar) { return a + d * qbar; }; +const tariffline = function(wp, t) { + return wp + t; +}; + export class LinearDemandSupplySurplus extends Graph { static getRuleOptions() { return [ @@ -607,7 +611,7 @@ export class LinearDemandSupplySurplus extends Graph { this.l4 = this.board.create( 'functiongraph', [positiveRange(() => { - return me.options.gA6; + return tariffline(me.options.gA5, me.options.gA6); }), 0, this.options.gXAxisMax], { name: 'Tariff', withLabel: true,