Skip to content

Commit

Permalink
Chart: fix labels background in candlestick series (#26096)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Bulychev <[email protected]>
  • Loading branch information
iBat and Alexander Bulychev authored Nov 29, 2023
1 parent 71a5511 commit 28d8495
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/devextreme/js/viz/series/financial_series.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export const stock = _extend({}, scatterSeries, {
styles.positive = positiveStyle;
styles.reduction = reductionStyle;
styles.reductionPositive = reductionPositiveStyle;
styles.labelColor = innerColor;
styles.labelColor = that._options.mainSeriesColor;

return styles;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ const checkGroups = function(assert, series) {
series.createPoints();

assert.deepEqual(this.createPoint.getCall(0).args[2].styles, {
labelColor: 'innerColor',
labelColor: 'mainSeriesColor',
hover: {
fill: 'mainSeriesColor',
stroke: 'mainSeriesColor',
Expand Down Expand Up @@ -753,7 +753,7 @@ const checkGroups = function(assert, series) {
series.createPoints();

assert.deepEqual(series._getPointOptions().styles, {
labelColor: 'innerColor',
labelColor: 'mainSeriesColor',
hover: {
fill: 'mainSeriesColor',
stroke: 'mainSeriesColor',
Expand Down Expand Up @@ -847,7 +847,7 @@ const checkGroups = function(assert, series) {

const styles = series._getPointOptions().styles;

assert.strictEqual(styles.labelColor, 'innerColor', 'label color');
assert.strictEqual(styles.labelColor, 'mainSeriesColor', 'label color');

assert.deepEqual(styles.hover, {
fill: 'color_1',
Expand Down Expand Up @@ -938,7 +938,7 @@ const checkGroups = function(assert, series) {
series.createPoints();

assert.deepEqual(series._getPointOptions().styles, {
labelColor: 'innerColor',
labelColor: 'mainSeriesColor',
hover: {
fill: 'seriesColor',
stroke: 'seriesColor',
Expand Down Expand Up @@ -1034,7 +1034,7 @@ const checkGroups = function(assert, series) {
series.createPoints();

assert.deepEqual(series._getPointOptions().styles, {
labelColor: 'innerColor',
labelColor: 'mainSeriesColor',
hover: {
fill: 'seriesColor',
stroke: 'seriesColor',
Expand Down Expand Up @@ -1129,7 +1129,7 @@ const checkGroups = function(assert, series) {
series.createPoints();

assert.deepEqual(series._getPointOptions().styles, {
labelColor: 'innerColor',
labelColor: 'mainSeriesColor',
hover: {
fill: 'h-color',
stroke: 'h-color',
Expand Down Expand Up @@ -1243,7 +1243,7 @@ const checkGroups = function(assert, series) {
assert.deepEqual(series.getAllPoints()[0].updateOptions.lastCall.args[0].styles, {
usePointCustomOptions: true,
useLabelCustomOptions: undefined,
labelColor: 'innerColor',
labelColor: 'mainSeriesColor',
hover: {
fill: 'c-h-color',
stroke: 'c-h-color',
Expand Down Expand Up @@ -1919,7 +1919,7 @@ const checkGroups = function(assert, series) {
series.createPoints();

assert.deepEqual(this.createPoint.getCall(0).args[2].styles, {
labelColor: 'innerColor',
labelColor: 'mainSeriesColor',
hover: {
fill: 'mainSeriesColor',
stroke: 'mainSeriesColor',
Expand Down Expand Up @@ -2258,7 +2258,7 @@ const checkGroups = function(assert, series) {
assert.deepEqual(series.getAllPoints()[0].updateOptions.lastCall.args[0].styles, {
usePointCustomOptions: true,
useLabelCustomOptions: undefined,
labelColor: 'innerColor',
labelColor: 'mainSeriesColor',
hover: {
fill: 'c-h-color',
stroke: 'c-h-color',
Expand Down

0 comments on commit 28d8495

Please sign in to comment.