binbot-charts 0.2.24 → 0.2.27
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.
|
@@ -89,13 +89,13 @@ function TVChartContainer(_ref) {
|
|
|
89
89
|
if (chartOrderLines && chartOrderLines.length > 0) {
|
|
90
90
|
chartOrderLines.forEach(item => {
|
|
91
91
|
orderLines.forEach(order => {
|
|
92
|
-
if (item.
|
|
92
|
+
if (item.id == order.id) {
|
|
93
93
|
item.setText(order.text).setTooltip(order.tooltip).setQuantity(order.quantity).setPrice(order.price);
|
|
94
94
|
}
|
|
95
95
|
});
|
|
96
96
|
});
|
|
97
97
|
} else {
|
|
98
|
-
if (orderLines && orderLines.length > 0) {
|
|
98
|
+
if (widgetState && orderLines && orderLines.length > 0) {
|
|
99
99
|
orderLines.forEach(order => {
|
|
100
100
|
const lineStyle = order.lineStyle || 0;
|
|
101
101
|
let chartOrderLine = widgetState.chart().createOrderLine().setText(order.text).setTooltip(order.tooltip).setQuantity(order.quantity).setQuantityFont("inherit 14px Arial").setQuantityBackgroundColor(order.color).setQuantityBorderColor(order.color).setLineStyle(lineStyle).setLineLength(25).setLineColor(order.color).setBodyFont("inherit 14px Arial").setBodyBorderColor(order.color).setBodyTextColor(order.color).setPrice(order.price); // set custom id easier search
|
package/package.json
CHANGED