react-native-chart-kit icon indicating copy to clipboard operation
react-native-chart-kit copied to clipboard

ContributionChartValue should have `count` property or dynamic via accessor

Open abhidatta0 opened this issue 2 years ago • 0 comments

There is a weak TS support when writing logic on the tooltipDataAttrs value param. Currently this is the structure:

type ContributionChartValue = {
    value: number;
    title: string;
    tooltipDataAttrs: TooltipDataAttrs;
    date: Date;
};

This is different from what we actually find by logging the value (as per the values data in the example)

{"value": {"count": 4, "date": "2017-04-02"}}
{"value": {"count": null, "date": null}}

abhidatta0 avatar Sep 03 '23 14:09 abhidatta0