1👍
✅
Your
<LineChart chartData={activityData} options={{
plugins: {
tooltip: {
displayColors: false // tried this also
}
}
}}/>
is working OK, if you enable the options
argument in LineChart.js (stackblitz fork)
However, the attempt to set options
at the same level as labels
and datasets
will not work, since labels
and datasets
are keys of data
, and options
should not be part of data
, but at the same level as data
; in react-charts2 this means options
should be a separate argument to the Line
(or other) component, see this doc link.
Source:stackexchange.com