@dz-web/quote-chart
TypeScript icon, indicating that this package has built-in type declarations

0.2.20 • Public • Published

Install

npm install @dz-web/quote-chart

Or

yarn add @dz-web/quote-chart

Usage

import { QuoteChart, LineChart } from '@dz-web/quote-chart';

var time = [2, 24, 234, 234]; 
var ma5 = [2, 24, 234, 234];

var chart = new QuoteChart({
  selector: '#quote-chart-container',
  categoryAxis: {
    data: [time],
  },
  grids: [
    {
      id: 'k-line',
      precision: 2,
      header: {
        options: {
          title: 'MA',
          showCloseBtn: false,
          showZoomInBtn: true,
          showZoomOutBtn: true,
        },
      },
      valueAxis: {
        boundaryGap: [0, 0],
        splitNumber: 3,
      },
      series: [
        {
          generator: LineChart,
          type: 'main-auxiliary',
          options: {
            lineStyle: {
              color: '#f58f24',
            },
          },
          data: ma5,
        },
      ],
    },
  ],
  categoryAxis: {
    splitNumber: 5,
    gap: [0, 1, 0, 1],
    data: time,
  },
});

DOCs

Readme

Keywords

Package Sidebar

Install

npm i @dz-web/quote-chart

Weekly Downloads

1

Version

0.2.20

License

MIT

Unpacked Size

186 kB

Total Files

37

Last publish

Collaborators

  • webpatch
  • moonlit