Apakah Highstock memiliki fitur terbatas?

Penulis:Fmzero, Dibuat: 2019-05-30 09:15:08, Diperbarui:

TekanhighstockSaya menulis sebuah tes. Tidak ada gambar langsung.Pengamatan

var ObjChart = null
var preBarTime = 0

var chart = {
    __isStock: true,
    extension: {
        layout: 'single', // 不参于分组,单独显示, 默认为分组 'group'
        height: 600,      // 指定高度        // 指定宽度占的单元值, 总值 为12
    },
    plotOptions: {
        candlestick: {
            color: '#d75442',
            upColor: '#6ba583'
        }
    },
    rangeSelector: {
        buttons: [{
            type: 'hour',
            count: 1,
            text: '1h'
        }, {
            type: 'hour',
            count: 3,
            text: '3h'
        }, {
            type: 'hour',
            count: 8,
            text: '8h'
        }, {
            type: 'all',
            text: 'All'
        }],
        selected: 2,
        inputEnabled: true
    },
    legend: {
        enabled: true,
    },
    tooltip: {xDateFormat: '%Y-%m-%d %H:%M:%S, %A'},    // 缩放工具
    title : { text : '双坐标折线'},                       // 标题
    rangeSelector: {                                    // 选择范围
        buttons:  [{type: 'hour',count: 1, text: '1h'}, {type: 'hour',count: 3, text: '3h'}, {type: 'hour', count: 8, text: '8h'}, {type: 'all',text: 'All'}],
        selected: 3,
        inputEnabled: true
    },
    xAxis: { type: 'datetime'},                         // 坐标轴横轴 即:x轴, 当前设置的类型是 :时间
    yAxis : [{ // Primary yAxis                                          // 坐标轴纵轴 即:y轴, 默认数值随数据大小调整。
		labels: {
			format: '{value}',
		},
		title: {
			text: 'BTC/USDT',
		},
        showInLegend: true,
  		opposite: false
    }],
    series: [{
						type: 'candlestick',
						name: 'BTC',
						id: 'btc',
						zIndex: 2,
						data: []
				}, {
						type: 'column',
						name: 'Volume',
						id: 'volume',
						data: [],
						yAxis: 1
				}, {
						type: 'vbp',
						linkedTo: 'btc',
						params: {
								volumeSeriesID: 'volume'
						},
						dataLabels: {
								enabled: false
						},
						zoneLines: {
								enabled: false
						}
				}
             ]
};
function main() {
	ObjChart = Chart(chart)
	ObjChart.reset();
	LogReset()
	LogVacuum()
    while(1){
        var records = exchange.GetRecords()
        if(records == null || typeof(records) === 'undefined' || records.length == 0) {

        } else {
	        for(var index = 0; index < records.length; index++) {
	        	if(records[i].Time > preBarTime){
	        		ObjChart.add(0, [records[i].Time, records[i].Open, records[i].High, records[i].Low, records[i].Close])
	        		ObjChart.add(1, [records[i].Time, records[i].Volume])
	    		}
	        }
	        if(typeof(records[records.length - 1].Time) !== 'undefined') {
	        	preBarTime = records[records.length - 1].Time
	        }
        }
        Sleep(1000 * 60)
    }
}

Lebih banyak

Mimpi kecilSaya mencoba. Menghapus seri `` Aku tidak tahu. type: 'column', name: 'Volume', id: 'volume', data: [], Y-Axis: 1 Aku tidak tahu. `` Dengan cara ini, Anda dapat melihat bahwa highstock tidak memiliki kolom pengukuran.

FmzeroApakah ada kesimpulan dari mimpi?

Mimpi kecilBaiklah, cari di highstocks.org.

FmzeroVolume berdasarkan harga

Mimpi kecilO__O "... VbP adalah apa?

FmzeroTerima kasih. Sayangnya saya hanya menyukai VbP: ((( Saya tidak tahu apa yang akan terjadi.

Mimpi kecilSaya telah menulis contoh untuk Anda, jika Anda melihat apakah itu membantu: `` var chart = { __isStock: benar, PlotOptions: { seri: { // pilihan umum untuk semua seri Aku tidak tahu. Aku tidak tahu. // pilihan yang dibagikan untuk semua seri ema Aku tidak tahu. Aku tidak tahu. xAxis: { type: 'datetime'}, series: [ {type: 'ema', data: [1, 2, 3, 4, 5, 6, 7, 8, 8]} [Menyanyi] Aku tidak tahu. fungsi main (() { var obj = Chart (Chart) obj.reset ((() var i = 10.000 Var j = 1 while ((1) { obj.add ((0, [i++, j++]); Sleep ((1000) Aku tidak tahu. Aku tidak tahu. `` /upload/asset/169db73891980a34c22a.png

FmzeroJadi, tujuan saya adalah untuk menguji indikator di highstock, [vbp](https://api.highcharts.com/highstock/series.vbp highstock tidak hanya sekarang garis k, ada juga indikator lain, seperti SMA, EMA

Mimpi kecilseries hanya meninggalkan yang pertama, sisanya dihapus seharusnya dapat ditampilkan, lihat dulu di tes kembali.

FmzeroApakah saya tidak bisa menunjukkannya? [Bagian] (https://api.highcharts.com/highstock/series.column) API