0.2.20 • Published 3 years ago

@dz-web/quote-chart v0.2.20

Weekly downloads
42
License
MIT
Repository
-
Last release
3 years ago

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

0.2.20

3 years ago

0.2.19

3 years ago

0.2.18

3 years ago

0.2.17

3 years ago

0.2.16

3 years ago

0.2.15

3 years ago

0.2.14

3 years ago

0.2.13

3 years ago

0.2.12

3 years ago

0.2.11

3 years ago

0.2.10

3 years ago

0.2.9

3 years ago

0.2.8

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.3

3 years ago

0.2.4

3 years ago

0.2.1

3 years ago

0.1.1

3 years ago