npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-native-sumscope-kline

v1.0.1-3

Published

图表

Downloads

13

Readme

react-native-sumscope-kline

实现功能

缩略k线图 利率债图表 期货图表

Installation

npm install --save react-native-sumscope-kline

Usage example

import {ShrinkageKLineView,MarketKLineView} from 'react-native-sumscope-kline';

// ShrinkageKLineView
<ShrinkageKLineView
    style={{ width: 200, height: 80 }}
    data={this.state.lineData}   
    kLineWidth={1.0}
    kLineColor={"#880000"}
    addArrData={this.state.addData}
    maxCount={200}
/>

// MarketKLineView 
<MarketKLineView
    style={{ width: 300, height: 180 }}
    data={this.state.lineData}
    kLineWidth={2}
    kLineColor={"#F9C152"}
    maxCount={240}
    addArrData={this.state.addData}
    onLinePointChanged={(e) => {console.log(e)}}
/>

<NationalDKLineView
     style={{ width: width, height: width * 0.5, backgroundColor: '#121A19' }}
     data={this.state.lineData}
     lineType={"NationalDKLineView"}
     kLineColor={"#F9C152"}
/>

ShrinkageKLineView Props

Prop | Type | Optional | Default | Description --------------- | ------ | -------- | --------- | ----------- data | array | Yes | [] | 初始显示数据 kLineWidth | float | Yes | | k线宽度 kLineColor | string | Yes | | k线显示颜色 maxCount | number | Yes | | 横向显示刻度总数 addArrData | array | Yes | [] | 增加数据 pointIndex | number | Yes | | 虚线点位置

MarketKLineView Props

Prop | Type | Optional | Default | Description --------------- | ------ | -------- | --------- | ----------- data | array | Yes | [] | 初始显示数据 kLineWidth | float | Yes | | k线宽度 kLineColor | string | Yes | | k线显示颜色 maxCount | number | Yes | | 横向显示刻度总数 addArrData | array | Yes | [] | 增加数据 onLinePointChanged | func | Yes | | 长按k线高亮所在k位置数据回调

NationalDKLineView Props

Prop | Type | Optional | Default | Description --------------- | ------ | -------- | --------- | ----------- lineType | string | Yes | | 图表类型 { NationalDKLineView:债券日k ; NationalTimeKLineView:债券分时 ; NationalDrGcTimeLine:DrGc分时 ; NationalDrGc30DLine :DrGc30日 ; BondTimeKLineView :债券详情-成交分时 ; Bond3MKLineView :债券详情-3M日线 ; Bond3MValKLineView :债券详情-3M估值} data | array | Yes | [] | 初始显示数据 kLineWidth | float | Yes | | k线宽度 kLineColor | string | Yes | | k线显示颜色 maxCount | number | Yes | | 横向显示刻度总数 addArrData | array | Yes | [] | 增加数据 onLinePointChanged | func | Yes | | 长按k线高亮所在k位置数据回调 pointIndex | number | Yes | | 虚线点位置