How to highlight activeEntries in ngrx-charts for a line chart.
The documentation says:
activeEntries object[] [] elements to highlight
https://swimlane.gitbook.io/ngx-charts/examples/line-area-charts/line-chart
However when i pass in an object array i nothing is highlighted.
I have tried the following:
const activeEntries = [
{name: "Mar 20, 2020", value: 73, series: "Table Name"}
];
const activeEntries = [
{name: "Mar 20, 2020", value: 73}
];
My data that i pass in looks like this:
const data = [
{
"name": "Table Name",
"series": [
{name: "Mar 18, 2020", value: 71},
{name: "Mar 19, 2020", value: 72},
{name: "Mar 20, 2020", value: 73}
]
}
];
And a snippet of my template
<ngx-charts-line-chart [activeEntries]="activeEntries" [results]="data" ...></ngx-charts-line-chart>
Am I misunderstanding the docs here?
Thanks for your help