0.2.20 • Published 4 years ago
@dz-web/quote-chart v0.2.20
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
4 years ago
0.2.19
4 years ago
0.2.18
4 years ago
0.2.17
4 years ago
0.2.16
4 years ago
0.2.15
4 years ago
0.2.14
4 years ago
0.2.13
4 years ago
0.2.12
4 years ago
0.2.11
5 years ago
0.2.10
5 years ago
0.2.9
5 years ago
0.2.8
5 years ago
0.2.7
5 years ago
0.2.6
5 years ago
0.2.5
5 years ago
0.2.3
5 years ago
0.2.4
5 years ago
0.2.1
5 years ago
0.1.1
5 years ago