Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

:lipstick: Allows user to set chart colors and height

Alicia Sykes382d43f52c50
diff --git a/src/components/Widgets/CryptoPriceChart.vue b/src/components/Widgets/CryptoPriceChart.vue
index b5702353..b646a9c4 100644
--- a/src/components/Widgets/CryptoPriceChart.vue
+++ b/src/components/Widgets/CryptoPriceChart.vue
@@ -72,7 +72,7 @@ export default {
title: `${this.asset} Price Chart`,
data: this.chartData,
type: 'axis-mixed',
- height: 200,
+ height: this.chartHeight,
colors: this.chartColors,
truncateLegends: true,
lineOptions: {
diff --git a/src/components/Widgets/StockPriceChart.vue b/src/components/Widgets/StockPriceChart.vue
index 33c2ad30..04b35954 100644
--- a/src/components/Widgets/StockPriceChart.vue
+++ b/src/components/Widgets/StockPriceChart.vue
@@ -77,7 +77,7 @@ export default {
title: `${this.stock} Price Chart`,
data: this.chartData,
type: 'axis-mixed',
- height: 200,
+ height: this.chartHeight,
colors: this.chartColors,
truncateLegends: true,
lineOptions: {