
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
HQChart - H5, 微信小程序 沪深/港股/数字货币/期货/美股 K线图(kline),走势图,缩放,拖拽,十字光标,画图工具,截图,筹码图. 分析家语法,通达信语法,(麦语法),第3方数据对接
HQChart
功能:
代码地址 github.com/jones2000/HQChart
源码地址:https://github.com/jones2000/HQChart-Super
镜像地址:https://gitee.com/jones2000/HQChart-Super
jquery, babel-runtime.
Node >= 6
npm install
<template>
<div id="app2">
<div id="minute" ref="minute" ></div>
</div>
</template>
<script>
import HQChart from 'hqchart'
import 'hqchart/src/jscommon/umychart.resource/css/tools.css'
import 'hqchart/src/jscommon/umychart.resource/font/iconfont.css'
function DefaultData(){}
DefaultData.GetMinuteOption=function()
{
var option=
{
Type:'分钟走势图', //创建图形类型
Windows: //窗口指标
[
],
IsAutoUpdate:true, //是自动更新数据
DayCount:1, //1 最新交易日数据 >1 多日走势图
IsShowCorssCursorInfo:true, //是否显示十字光标的刻度信息
IsShowRightMenu:true, //是否显示右键菜单
CorssCursorTouchEnd:true,
MinuteLine:
{
//IsDrawAreaPrice:false, //是否画价格面积图
},
Border: //边框
{
Left:1, //左边间距
Right:1, //右边间距
Top:20,
Bottom:20
},
Frame: //子框架设置
[
{SplitCount:3,StringFormat:0},
{SplitCount:2,StringFormat:0},
{SplitCount:3,StringFormat:0},
],
ExtendChart: //扩展图形
[
//{Name:'MinuteTooltip' } //手机端tooltip
],
};
return option;
}
export default
{
data()
{
var data=
{
Symbol:'600000.sh',
Minute:
{
JSChart:null,
Option:DefaultData.GetMinuteOption(),
}
};
return data;
},
created()
{
},
mounted()
{
this.OnSize();
window.onresize = ()=> { this.OnSize(); }
this.CreateMinuteChart();
},
methods:
{
OnSize()
{
var chartHeight = window.innerHeight-30;
var chartWidth = window.innerWidth-30;
var minute=this.$refs.minute;
minute.style.width=chartWidth+'px';
minute.style.height=chartHeight+'px';
},
CreateMinuteChart() //创建日线图
{
if (this.Minute.JSChart) return;
this.Minute.Option.Symbol=this.Symbol;
let chart=HQChart.Chart.JSChart.Init(this.$refs.minute);
chart.SetOption(this.Minute.Option);
this.Minute.JSChart=chart;
},
}
}
<template>
<div id="app2">
<div id="kline" ref='kline'></div>
</div>
</template>
<script>
import HQChart from 'hqchart'
import 'hqchart/src/jscommon/umychart.resource/css/tools.css'
import 'hqchart/src/jscommon/umychart.resource/font/iconfont.css'
function DefaultData(){}
DefaultData.GetKLineOption = function ()
{
let data =
{
Type: '历史K线图',
Windows: //窗口指标
[
{Index:"MA",Modify: false, Change: false},
{Index:"VOL",Modify: false, Change: false}
],
IsShowCorssCursorInfo:true,
Border: //边框
{
Left: 1,
Right: 1, //右边间距
Top: 25,
Bottom: 25,
},
KLine:
{
Right:1, //复权 0 不复权 1 前复权 2 后复权
Period:0, //周期: 0 日线 1 周线 2 月线 3 年线
PageSize:70,
IsShowTooltip:true
},
};
return data;
}
export default
{
data()
{
var data=
{
Symbol:'600000.sh',
KLine:
{
JSChart:null,
Option:DefaultData.GetKLineOption(),
},
};
return data;
},
created()
{
},
mounted()
{
this.OnSize();
window.onresize = ()=> { this.OnSize(); }
this.CreateKLineChart();
},
methods:
{
OnSize()
{
var chartHeight = window.innerHeight-30;
var chartWidth = window.innerWidth-30;
var kline=this.$refs.kline;
kline.style.width=chartWidth+'px';
kline.style.height=chartHeight+'px';
if (this.KLine.JSChart) this.KLine.JSChart.OnSize();
},
CreateKLineChart() //创建K线图
{
if (this.KLine.JSChart) return;
this.KLine.Option.Symbol=this.Symbol;
let chart=HQChart.Chart.JSChart.Init(this.$refs.kline);
chart.SetOption(this.KLine.Option);
this.KLine.JSChart=chart;
},
}
}
import React from 'react';
import HQChart from 'hqchart';
class kline extends React.Component {
constructor(props) { //构造函数
super(props);
this.initCanvas = this.initCanvas.bind(this);
this.state = {
Symbol:'600000.sh',
KLine:
{
JSChart:null,
Option:{
Symbol:'',
Type: '历史K线图',
Windows: //窗口指标
[
{Index:"MA",Modify: false, Change: false},
{Index:"VOL",Modify: false, Change: false}
],
IsShowCorssCursorInfo:true,
Border: //边框
{
Left: 1,
Right: 1, //右边间距
Top: 25,
Bottom: 25,
},
KLine:
{
Right:1, //复权 0 不复权 1 前复权 2 后复权
Period:0, //周期: 0 日线 1 周线 2 月线 3 年线
PageSize:70,
IsShowTooltip:true
}
}
}
}
}
initCanvas() {
if (this.state.KLine.JSChart) return;
this.state.KLine.Option.Symbol=this.state.Symbol;
let chart=HQChart.Chart.JSChart.Init(document.getElementById("time_graph_canvas"));
chart.SetOption(this.state.KLine.Option);
this.state.KLine.JSChart=chart;
}
componentDidMount() {
this.initCanvas()
}
componentDidUpdate() {
this.initCanvas()
}
render() {
var chartHeight = window.innerHeight-30;
var chartWidth = window.innerWidth-30;
var styleText = {
width: chartWidth+'px',
height: chartHeight+'px',
};
return (
<div style={styleText} id="time_graph_canvas">
</div>
)
}
}
export default kline;
import React from 'react';
import HQChart from 'hqchart';
class minute extends React.Component {
constructor(props) { //构造函数
super(props);
this.initCanvas = this.initCanvas.bind(this);
this.state = {
Symbol:'600000.sh',
Minute:
{
JSChart:null,
Option:{
Type:'分钟走势图', //创建图形类型
Symbol:'',
Windows: //窗口指标
[
],
IsAutoUpdate:true, //是自动更新数据
DayCount:1, //1 最新交易日数据 >1 多日走势图
IsShowCorssCursorInfo:true, //是否显示十字光标的刻度信息
IsShowRightMenu:true, //是否显示右键菜单
CorssCursorTouchEnd:true,
MinuteLine:
{
//IsDrawAreaPrice:false, //是否画价格面积图
},
Border: //边框
{
Left:1, //左边间距
Right:1, //右边间距
Top:20,
Bottom:20
},
Frame: //子框架设置
[
{SplitCount:3,StringFormat:0},
{SplitCount:2,StringFormat:0},
{SplitCount:3,StringFormat:0},
],
ExtendChart: //扩展图形
[
//{Name:'MinuteTooltip' } //手机端tooltip
],
}
}
}
}
initCanvas() {
if (this.state.Minute.JSChart) return;
this.state.Minute.Option.Symbol=this.state.Symbol;
let chart=HQChart.Chart.JSChart.Init(document.getElementById("time_graph_canvas"));
chart.SetOption(this.state.Minute.Option);
this.state.Minute.JSChart=chart;
}
componentDidMount() {
this.initCanvas()
}
componentDidUpdate() {
this.initCanvas()
}
render() {
var chartHeight = window.innerHeight-30;
var chartWidth = window.innerWidth-30;
var styleText = {
width: chartWidth+'px',
height: chartHeight+'px',
};
return (
<div style={styleText} id="time_graph_canvas">
</div>
)
}
}
export default minute;
FAQs
HQChart - H5, 微信小程序 沪深/港股/数字货币/期货/美股 K线图(kline),走势图,缩放,拖拽,十字光标,画图工具,截图,筹码图. 分析家语法,通达信语法,(麦语法),第3方数据对接
We found that hqchart demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.