Skip to content

Commit

Permalink
Correct tariff line
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolas committed Jan 8, 2025
1 parent 3de45db commit 1bb4696
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion media/js/src/graphs/LinearDemandSupplySurplus.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 [
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 1bb4696

Please sign in to comment.