Skip to content

Commit

Permalink
修改jcc_kline版本
Browse files Browse the repository at this point in the history
  • Loading branch information
zcZhang123 committed May 14, 2019
1 parent 63e5c4d commit 1f70054
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jcc_kline",
"version": "0.1.39",
"version": "0.1.41",
"description": "jccdex kline",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/js/KLineSetChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class KLineSetChartController {
oldData: data,
oldCycle: cycle
};
if (data) {
if (this.kline.getOption()) {
let klineOption = {
tooltip: this.getToolTip(),
xAxis: this.getXAxis(data, cycle),
Expand Down
2 changes: 1 addition & 1 deletion src/js/SetMACDChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class MACDChart {

updateMACDOption(data) {
oldMACDData = data;
if (data) {
if (this.macd.getOption()) {
this.macd.hideLoading();
let macdConfig = {
xAxis: this.getMACDXAxis(data),
Expand Down
2 changes: 1 addition & 1 deletion src/js/SetMTMChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class IndicatorChartController {
data: data,
cycle: cycle
};
if (data) {
if (this.indicator.getOption()) {
this.indicator.hideLoading();
let indicatorConfig = {
xAxis: this.getIndicatorXAxis(data, cycle),
Expand Down
2 changes: 1 addition & 1 deletion src/js/SetRSIChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class IndicatorChartController {
data: data,
cycle: cycle
};
if (data) {
if (this.indicator.getOption()) {
this.indicator.hideLoading();
let indicatorConfig = {
xAxis: this.getIndicatorXAxis(data, cycle),
Expand Down
2 changes: 1 addition & 1 deletion src/js/SetStochasticChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class StochasticChartController {
data: data,
cycle: cycle
};
if (data) {
if (this.stochastic.getOption()) {
this.stochastic.hideLoading();
let stochasticConfig = {
xAxis: this.getStochasticXAxis(data, cycle),
Expand Down
2 changes: 1 addition & 1 deletion src/js/SetVRChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class IndicatorChartController {
data: data,
cycle: cycle
};
if (data) {
if (this.indicator.getOption()) {
this.indicator.hideLoading();
let indicatorConfig = {
xAxis: this.getIndicatorXAxis(data, cycle),
Expand Down
2 changes: 1 addition & 1 deletion src/js/SetVolumeChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class VolumeChart {
data: data,
cycle: cycle
};
if (data) {
if (this.volume.getOption()) {
this.volume.hideLoading();
let volumeConfig = {
xAxis: this.getVolumeXAxis(data, cycle),
Expand Down
2 changes: 1 addition & 1 deletion src/js/SetWRChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class IndicatorChartController {
data: data,
cycle: cycle
};
if (data) {
if (this.indicator.getOption()) {
this.indicator.hideLoading();
let indicatorConfig = {
xAxis: this.getIndicatorXAxis(data, cycle),
Expand Down

0 comments on commit 1f70054

Please sign in to comment.