Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: Cameron DeCoster <[email protected]>
  • Loading branch information
emilykl and camdecoster authored Nov 12, 2025
commit a1c0e8bb5f8635cf421d5d8af08813789488fb87
2 changes: 1 addition & 1 deletion src/components/fx/hover.js
Original file line number Diff line number Diff line change
Expand Up @@ -1665,7 +1665,7 @@ function getHoverLabelText(d, showCommonLabel, hovermode, fullLayout, t0, g) {
// Ignore hovertemplate if hoverlabel.split is set
// This ensures correct behavior of hoverlabel.split for candlestick and OHLC traces
// Not very elegant but it works
if (d.trace?.hoverlabel?.split) d.hovertemplate = false;
if (d.trace?.hoverlabel?.split) d.hovertemplate = '';

const { hovertemplate = false } = d;
if (hovertemplate) {
Expand Down
2 changes: 0 additions & 2 deletions src/traces/candlestick/attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

var extendFlat = require('../../lib').extendFlat;
var axisHoverFormat = require('../../plots/cartesian/axis_format_attributes').axisHoverFormat;
var hovertemplateAttrs = require('../../plots/template_attributes').hovertemplateAttrs;
var templatefallbackAttrs = require('../../plots/template_attributes').templatefallbackAttrs;
var OHLCattrs = require('../ohlc/attributes');
var boxAttrs = require('../box/attributes');

Expand Down
4 changes: 1 addition & 3 deletions src/traces/ohlc/attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

var extendFlat = require('../../lib').extendFlat;
var scatterAttrs = require('../scatter/attributes');
var baseAttrs = require('../../plots/attributes');
var axisHoverFormat = require('../../plots/cartesian/axis_format_attributes').axisHoverFormat;
var hovertemplateAttrs = require('../../plots/template_attributes').hovertemplateAttrs;
var templatefallbackAttrs = require('../../plots/template_attributes').templatefallbackAttrs;
const { hovertemplateAttrs, templatefallbackAttrs } = require('../../plots/template_attributes');
var dash = require('../../components/drawing/attributes').dash;
var fxAttrs = require('../../components/fx/attributes');
var delta = require('../../constants/delta.js');
Expand Down