@nativescript-community/ui-chart
Version:
A powerful chart / graph plugin, supporting line, bar, pie, radar, bubble, and candlestick charts as well as scaling, panning and animations.
21 lines • 612 B
JavaScript
import { PieRadarHighlighter } from './PieRadarHighlighter';
export class PieHighlighter extends PieRadarHighlighter {
constructor(chart) {
super(chart);
}
getClosestHighlight(index, x, y) {
const set = this.mChart.data.getDataSet();
const entry = set.getEntryForIndex(index);
const yProperty = set.yProperty;
return {
entry,
x: index,
y: entry[yProperty],
xPx: x,
yPx: y,
dataSetIndex: 0,
axis: set.axisDependency
};
}
}
//# sourceMappingURL=PieHighlighter.js.map