Commit ed3353f8 authored by Aron Fiechter's avatar Aron Fiechter
Browse files

Use real data in YearRange

parent 9a931699
......@@ -9,6 +9,7 @@ export default function YearRange() {
const nodes = useSelector(selectNodes);
const resultsById = useSelector(selectResultsById);
const years = useSelector(selectYears);
useEffect(() => {
const yearCounts = nodes
......@@ -53,7 +54,7 @@ export default function YearRange() {
],
xAxis: {
type: 'category',
data: [2010, 2011, 2012, 2013, 2014, 2015],
data: years.x,
silent: false,
splitLine: {
show: false,
......@@ -71,7 +72,7 @@ export default function YearRange() {
series: [
{
type: 'bar',
data: [1, 2, 3, 4, 5, 6],
data: years.y,
large: true,
},
],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment