New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@xchart/marker

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xchart/marker

Marker tool for XChart

  • 0.1.14
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
0
Weekly downloads
 
Created
Source

@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

Keywords

FAQs

Package last updated on 16 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc