@xchart/wafer
TypeScript icon, indicating that this package has built-in type declarations

0.1.0-alpha.0 • Public • Published

@xchart/marker

Marker tool for XChart.

Usage

// 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,
        },
    ],
});

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @xchart/wafer

Weekly Downloads

1

Version

0.1.0-alpha.0

License

MIT

Unpacked Size

841 kB

Total Files

16

Last publish

Collaborators

  • cyrilluce
  • haibins
  • yugasun