Skip to content

Commit

Permalink
change chart locks
Browse files Browse the repository at this point in the history
  • Loading branch information
marthendalnunes committed May 4, 2021
1 parent b4231e8 commit cde5021
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions tech/config_bounds.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
},
"impact_hour_rate_at_target_goal": {
"value": 150,
"ylim": (0, 200),
},
"maximum_impact_hour_rate": {
"value": 500,
Expand Down Expand Up @@ -107,6 +108,7 @@
},
"impact_hour_rate_at_target_goal": {
"value": 0.005,
"ylim": (0, 10),
},
"maximum_impact_hour_rate": {
"value": 0.01,
Expand Down
2 changes: 2 additions & 0 deletions tech/tech.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,15 @@ def impact_hours_plot(self):
yformatter='%.0f',
hover=True,
xlim=self.config_bounds['min_max_raise']['xlim'],
ylim=self.config_bounds['impact_hour_rate_at_target_goal']['ylim'],
label='Hatch happens ✅'
).opts(axiswise=True)
minimum_raise_plot = df_fill_minimum.hvplot.area(x='Total wxDai Collected',
xformatter='%.0f',
yformatter='%.0f',
color='red',
xlim=self.config_bounds['min_max_raise']['xlim'],
ylim=self.config_bounds['impact_hour_rate_at_target_goal']['ylim'],
label='Hatch fails 🚫'
).opts(axiswise=True)

Expand Down
4 changes: 2 additions & 2 deletions template/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ <h2>Section 1: Hatch Configuration</h2>
{{ embed(roots.B) }}
</div>
</div>
<div class="mdc-layout-grid__cell mdc-layout-grid__cell--span-8 grid-cell" style="z-index: -1">
<div class="mdc-layout-grid__cell mdc-layout-grid__cell--span-8 grid-cell">
<div class="secone">
<div>
{{ embed(roots.D) }}
Expand All @@ -127,7 +127,7 @@ <h2>Section 1: Hatch Configuration</h2>
</div>
</div>
</div>
<div class="mdc-layout-grid__cell mdc-layout-grid__cell--span-12 grid-cell">
<div class="mdc-layout-grid__cell mdc-layout-grid__cell--span-12 grid-cell" style="z-index: -1">
<h3>Redeem-ability of the DAO's wxDai</h3>
<div class="pie-charts">{{ embed(roots.F) }}</div>
</div>
Expand Down

0 comments on commit cde5021

Please sign in to comment.