ResponsiveCalendar не показывает легенду - PullRequest
0 голосов
/ 29 октября 2018

У меня есть следующая зависимость: "@ nivo / calendar": "0.49.0"

И следующий код:

                  <ResponsiveCalendar
                      data={st.timeSpentDaily}
                      from="2018-01-01"
                      to="2018-10-31"
                      emptyColor="#eee"
                      colors={[
                          "#BBDEFB",
                          "#90CAF9",

                      ]}
                      height={setChartSize(props.width)}
                      margin={{
                          top: 24,
                          right: 0,
                          bottom: 0,
                          left: 20
                      }}
                      yearSpacing={40}
                      monthBorderColor="#ffffff"
                      monthLegendOffset={10}
                      dayBorderWidth={2}
                      legends={[
                          {
                              "anchor": "bottom-right",
                              "direction": "row",
                              "translateY": 36,
                              "itemCount": 2,
                              "itemWidth": 34,
                              "itemHeight": 36,
                              "itemDirection": "top-to-bottom"
                          }
                      ]}

                    />

Календарь отображается правильно, но нет легенды? Почему ???

...