diff options
| author | Haishan <[email protected]> | 2020-06-20 22:28:43 +0800 |
|---|---|---|
| committer | Haishan <[email protected]> | 2020-06-20 22:28:43 +0800 |
| commit | 632c6a37350c830902046546fc07ce764ca009a0 (patch) | |
| tree | ed90e7cef41865732dafe7de22e33a3a1c589927 /src/hooks/useLineChart.js | |
| parent | 71a7d8d4c125a5751c94ecb10468994634286425 (diff) | |
feat: add a simple filter for proxy names
Diffstat (limited to 'src/hooks/useLineChart.js')
| -rw-r--r-- | src/hooks/useLineChart.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hooks/useLineChart.js b/src/hooks/useLineChart.js index 40f4c52..8d449e0 100644 --- a/src/hooks/useLineChart.js +++ b/src/hooks/useLineChart.js @@ -1,4 +1,5 @@ import React from 'react'; + import { commonChartOptions } from '../misc/chart'; const { useEffect } = React; @@ -16,7 +17,7 @@ export default function useLineChart( const c = new Chart(ctx, { type: 'line', data, - options: { ...options, ...extraChartOptions } + options: { ...options, ...extraChartOptions }, }); const unsubscribe = subscription && subscription.subscribe(() => c.update()); |
