Skip to content

Commit

Permalink
🐛 Add support for graph colors from config
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Oct 13, 2020
1 parent cc8302f commit d71ef9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Graph.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
{:else if data.length}
<h2>{config.i18n.sevelDayResponseTime}</h2>
<Line
data={{ labels, datasets: [{ label: config.i18n.responseTimeMs, backgroundColor: '#89e0cf', borderColor: '#1abc9c', data }] }}
data={{ labels, datasets: [{ label: config.i18n.responseTimeMs, backgroundColor: config.graphBackgroundColor || '#89e0cf', borderColor: config.graphBorderColor || '#1abc9c', data }] }}
width={800}
height={400}
options={{ responsive: true, maintainAspectRatio: true, scales: { xAxes: [{ display: false, gridLines: { display: false } }] } }} />
Expand Down

0 comments on commit d71ef9a

Please sign in to comment.