marker-data-tool
v1.0.1
Published
Marker tool
Downloads
2
Readme
marker
为数据点做标记的工具库
example
// 1. new Marker
const marker = new Marker({
// wrapper box
wrapper: boxRef,
// closable
closable: true,
// close by right click
closeByRightClick: false,
// can move outside
canMoveOutside: true,
});
marker.value!.addMark({
// x position in wrapper(chart) box
x: 10,
// y position in wrapper(chart) box
y: 10,
// current index data, may contain multi line data
data: [
{
// point color
color: 'red',
// point label
label: 'Point',
// point value
value: 10,
},
],
});