@progress/kendo-charts 1.32.1-dev.202310240903 → 1.32.1-dev.202311011640
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-charts.js +1 -1
- package/dist/cdn/main.js +1 -1
- package/dist/es/chart/candlestick-chart/candlestick-chart.js +2 -2
- package/dist/es/chart/funnel-chart/funnel-chart.js +2 -1
- package/dist/es2015/chart/candlestick-chart/candlestick-chart.js +2 -2
- package/dist/es2015/chart/funnel-chart/funnel-chart.js +2 -1
- package/dist/npm/main.js +4 -3
- package/dist/systemjs/kendo-charts.js +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import ClusterLayout from '../layout/cluster-layout';
|
|
|
3
3
|
import Candlestick from './candlestick';
|
|
4
4
|
|
|
5
5
|
import ClipAnimationMixin from '../mixins/clip-animation-mixin';
|
|
6
|
-
import { CANDLESTICK } from '../constants';
|
|
6
|
+
import { CANDLESTICK, OHLC } from '../constants';
|
|
7
7
|
import areNumbers from '../utils/are-numbers';
|
|
8
8
|
|
|
9
9
|
import { MIN_VALUE, MAX_VALUE } from '../../common/constants';
|
|
@@ -92,7 +92,7 @@ var CandlestickChart = (function (CategoricalChart) {
|
|
|
92
92
|
|
|
93
93
|
pointOptions = this.evalPointOptions(pointOptions, value, fields);
|
|
94
94
|
|
|
95
|
-
if (series.type === CANDLESTICK) {
|
|
95
|
+
if (series.type === CANDLESTICK || series.type === OHLC) {
|
|
96
96
|
if (value.open > value.close) {
|
|
97
97
|
color = data.fields.downColor || series.downColor || series.color;
|
|
98
98
|
}
|
|
@@ -14,6 +14,7 @@ var FunnelChart = (function (ChartElement) {
|
|
|
14
14
|
ChartElement.call(this, options);
|
|
15
15
|
|
|
16
16
|
this.plotArea = plotArea;
|
|
17
|
+
this.chartService = plotArea.chartService;
|
|
17
18
|
this.points = [];
|
|
18
19
|
this.labels = [];
|
|
19
20
|
this.legendItems = [];
|
|
@@ -123,7 +124,7 @@ var FunnelChart = (function (ChartElement) {
|
|
|
123
124
|
if (labelTemplate) {
|
|
124
125
|
text = labelTemplate(data);
|
|
125
126
|
} else if (labels.format) {
|
|
126
|
-
text = this.
|
|
127
|
+
text = this.chartService.format.auto(labels.format, text);
|
|
127
128
|
}
|
|
128
129
|
|
|
129
130
|
if (!labels.color) {
|
|
@@ -3,7 +3,7 @@ import ClusterLayout from '../layout/cluster-layout';
|
|
|
3
3
|
import Candlestick from './candlestick';
|
|
4
4
|
|
|
5
5
|
import ClipAnimationMixin from '../mixins/clip-animation-mixin';
|
|
6
|
-
import { CANDLESTICK } from '../constants';
|
|
6
|
+
import { CANDLESTICK, OHLC } from '../constants';
|
|
7
7
|
import areNumbers from '../utils/are-numbers';
|
|
8
8
|
|
|
9
9
|
import { MIN_VALUE, MAX_VALUE } from '../../common/constants';
|
|
@@ -80,7 +80,7 @@ class CandlestickChart extends CategoricalChart {
|
|
|
80
80
|
|
|
81
81
|
pointOptions = this.evalPointOptions(pointOptions, value, fields);
|
|
82
82
|
|
|
83
|
-
if (series.type === CANDLESTICK) {
|
|
83
|
+
if (series.type === CANDLESTICK || series.type === OHLC) {
|
|
84
84
|
if (value.open > value.close) {
|
|
85
85
|
color = data.fields.downColor || series.downColor || series.color;
|
|
86
86
|
}
|
|
@@ -14,6 +14,7 @@ class FunnelChart extends ChartElement {
|
|
|
14
14
|
super(options);
|
|
15
15
|
|
|
16
16
|
this.plotArea = plotArea;
|
|
17
|
+
this.chartService = plotArea.chartService;
|
|
17
18
|
this.points = [];
|
|
18
19
|
this.labels = [];
|
|
19
20
|
this.legendItems = [];
|
|
@@ -112,7 +113,7 @@ class FunnelChart extends ChartElement {
|
|
|
112
113
|
if (labelTemplate) {
|
|
113
114
|
text = labelTemplate(data);
|
|
114
115
|
} else if (labels.format) {
|
|
115
|
-
text = this.
|
|
116
|
+
text = this.chartService.format.auto(labels.format, text);
|
|
116
117
|
}
|
|
117
118
|
|
|
118
119
|
if (!labels.color) {
|