From 4dceed6e54e2f10adfa1d3f6275bec1d9b60ba87 Mon Sep 17 00:00:00 2001
From: Mark Silverwood <3482679+SlicedSilver@users.noreply.github.com>
Date: Mon, 26 Feb 2024 16:26:13 +0000
Subject: [PATCH 01/10] add attribution logo option
---
src/api/options/layout-options-defaults.ts | 1 +
src/gui/attribution-logo-widget.ts | 83 ++++++++++++++++++++++
src/gui/pane-widget.ts | 8 +++
src/helpers/color.ts | 4 ++
src/model/layout-options.ts | 13 ++++
5 files changed, 109 insertions(+)
create mode 100644 src/gui/attribution-logo-widget.ts
diff --git a/src/api/options/layout-options-defaults.ts b/src/api/options/layout-options-defaults.ts
index e878cecf9c..b764f7df88 100644
--- a/src/api/options/layout-options-defaults.ts
+++ b/src/api/options/layout-options-defaults.ts
@@ -10,4 +10,5 @@ export const layoutOptionsDefaults: LayoutOptions = {
textColor: '#191919',
fontSize: 12,
fontFamily: defaultFontFamily,
+ attributionLogo: true,
};
diff --git a/src/gui/attribution-logo-widget.ts b/src/gui/attribution-logo-widget.ts
new file mode 100644
index 0000000000..6135cee7f7
--- /dev/null
+++ b/src/gui/attribution-logo-widget.ts
@@ -0,0 +1,83 @@
+import { colorStringToGrayscale } from '../helpers/color';
+
+import { IChartWidgetBase } from './chart-widget';
+
+type LogoTheme = 'dark' | 'light';
+
+const svg = ``;
+const css = `a#tv-attr-logo{--fill:#131722;--stroke:#fff;position:absolute;left:10px;bottom:10px;height:19px;width:35px;margin:0;padding:0;border:0;z-index:3;}a#tv-attr-logo[data-dark]{--fill:#D1D4DC;--stroke:#131722;}`;
+
+// This widget doesn't support dynamically responding to options changes
+// because it is expected that the `attributionLogo` option won't be changed
+// and this saves some bundle size.
+export class AttributionLogoWidget {
+ private readonly _chart: IChartWidgetBase;
+ private readonly _container: HTMLElement;
+ private _element: HTMLAnchorElement | undefined = undefined;
+ private _cssElement: HTMLStyleElement | undefined = undefined;
+ private _theme: LogoTheme | undefined = undefined;
+ private _visible: boolean = false;
+
+ public constructor(container: HTMLElement, chart: IChartWidgetBase) {
+ this._container = container;
+ this._chart = chart;
+ this._render();
+ }
+
+ public update(): void {
+ this._render();
+ }
+
+ private _shouldUpdate(): boolean {
+ return this._visible !== this._shouldBeVisible() || this._theme !== this._themeToUse();
+ }
+
+ private _removeElement(): void {
+ if (this._element) {
+ this._container.removeChild(this._element);
+ }
+ if (this._cssElement) {
+ this._container.removeChild(this._cssElement);
+ }
+ this._element = undefined;
+ this._cssElement = undefined;
+ }
+
+ private _themeToUse(): LogoTheme {
+ return colorStringToGrayscale(this._chart.options().layout.textColor) > 160 ? 'dark' : 'light';
+ }
+
+ private _shouldBeVisible(): boolean {
+ return this._chart.options().layout.attributionLogo;
+ }
+
+ private _getUTMSource(): string {
+ const url = new URL(location.href);
+ if (!url.hostname) {
+ // ignore local testing
+ return '';
+ }
+ return '&utm_source=' + url.hostname + url.pathname;
+ }
+
+ private _render(): void {
+ if (!this._shouldUpdate()) {
+ return;
+ }
+ this._removeElement();
+ this._visible = this._shouldBeVisible();
+ if (this._visible) {
+ this._theme = this._themeToUse();
+ this._cssElement = document.createElement('style');
+ this._cssElement.innerText = css;
+ this._element = document.createElement('a');
+ this._element.href = `https://www.tradingview.com/?utm_medium=lwc-link&utm_campaign=lwc-chart${this._getUTMSource()}`;
+ this._element.title = 'Charting by TradingView';
+ this._element.id = 'tv-attr-logo';
+ this._element.innerHTML = svg;
+ this._element.toggleAttribute('data-dark', this._theme === 'dark');
+ this._container.appendChild(this._cssElement);
+ this._container.appendChild(this._element);
+ }
+ }
+}
diff --git a/src/gui/pane-widget.ts b/src/gui/pane-widget.ts
index 07647cb788..2ccf4ff3bf 100644
--- a/src/gui/pane-widget.ts
+++ b/src/gui/pane-widget.ts
@@ -26,6 +26,7 @@ import { TouchMouseEventData } from '../model/touch-mouse-event-data';
import { IPaneRenderer } from '../renderers/ipane-renderer';
import { IPaneView } from '../views/pane/ipane-view';
+import { AttributionLogoWidget } from './attribution-logo-widget';
import { createBoundCanvas, releaseCanvas } from './canvas-utils';
import { IChartWidgetBase } from './chart-widget';
import { drawBackground, drawForeground, DrawFunction, drawSourcePaneViews } from './draw-functions';
@@ -66,6 +67,7 @@ export class PaneWidget implements IDestroyable, MouseEventHandlers {
private _size: Size = size({ width: 0, height: 0 });
private _leftPriceAxisWidget: PriceAxisWidget | null = null;
private _rightPriceAxisWidget: PriceAxisWidget | null = null;
+ private _attributionLogoWidget: AttributionLogoWidget | null = null;
private readonly _paneCell: HTMLElement;
private readonly _leftAxisCell: HTMLElement;
private readonly _rightAxisCell: HTMLElement;
@@ -141,6 +143,8 @@ export class PaneWidget implements IDestroyable, MouseEventHandlers {
treatHorzTouchDragAsPageScroll: () => this._startTrackPoint === null && !this._chart.options().handleScroll.horzTouchDrag,
}
);
+
+ this._attributionLogoWidget = new AttributionLogoWidget(this._paneCell, this._chart);
}
public destroy(): void {
@@ -150,6 +154,7 @@ export class PaneWidget implements IDestroyable, MouseEventHandlers {
if (this._rightPriceAxisWidget !== null) {
this._rightPriceAxisWidget.destroy();
}
+ this._attributionLogoWidget = null;
this._topCanvasBinding.unsubscribeSuggestedBitmapSizeChanged(this._topCanvasSuggestedBitmapSizeChangedHandler);
releaseCanvas(this._topCanvasBinding.canvasElement);
@@ -182,6 +187,9 @@ export class PaneWidget implements IDestroyable, MouseEventHandlers {
}
this.updatePriceAxisWidgetsStates();
+ if (this._attributionLogoWidget) {
+ this._attributionLogoWidget.update();
+ }
}
public chart(): IChartWidgetBase {
diff --git a/src/helpers/color.ts b/src/helpers/color.ts
index c45aa81fcd..85620de092 100644
--- a/src/helpers/color.ts
+++ b/src/helpers/color.ts
@@ -324,6 +324,10 @@ export function generateContrastColors(backgroundColor: string): ContrastColors
};
}
+export function colorStringToGrayscale(backgroundColor: string): number {
+ return rgbaToGrayscale(colorStringToRgba(backgroundColor));
+}
+
export function gradientColorAtPercent(topColor: string, bottomColor: string, percent: number): string {
const [topR, topG, topB, topA] = colorStringToRgba(topColor);
const [bottomR, bottomG, bottomB, bottomA] = colorStringToRgba(bottomColor);
diff --git a/src/model/layout-options.ts b/src/model/layout-options.ts
index c67e6da484..93a18bd9c9 100644
--- a/src/model/layout-options.ts
+++ b/src/model/layout-options.ts
@@ -77,4 +77,17 @@ export interface LayoutOptions {
* @defaultValue `-apple-system, BlinkMacSystemFont, 'Trebuchet MS', Roboto, Ubuntu, sans-serif`
*/
fontFamily: string;
+
+ /**
+ * Display the 'Charting by TradingView' attribution logo on the main chart pane.
+ *
+ * The licence for library specifies that you shall add the "attribution notice"
+ * from the NOTICE file and a link to \ to the page
+ * of your website or mobile application that is available to your users. Using this
+ * attribution logo is sufficient for meeting this requirement. However, if you already
+ * fulfill this requirement then you can disable this attribution logo.
+ *
+ * @defaultValue true
+ */
+ attributionLogo: boolean;
}
From be56810a0762f2be2823ec2597e9887cc9a80f36 Mon Sep 17 00:00:00 2001
From: Mark Silverwood <3482679+SlicedSilver@users.noreply.github.com>
Date: Mon, 26 Feb 2024 16:26:40 +0000
Subject: [PATCH 02/10] update existing e2e graphics test cases to not show
logo
---
.../graphics/test-cases/add-markers-with-autosize-enabled.js | 2 +-
tests/e2e/graphics/test-cases/add-series-after-time.js | 1 +
.../e2e/graphics/test-cases/api/getting-series-price-scale.js | 2 +-
.../test-cases/api/ignore-resize-if-autosize-active.js | 1 +
tests/e2e/graphics/test-cases/api/price-scale-width.js | 1 +
tests/e2e/graphics/test-cases/api/series-data-by-index.js | 2 +-
tests/e2e/graphics/test-cases/api/series-markers.js | 2 +-
tests/e2e/graphics/test-cases/api/subscribe-crosshair-move.js | 2 +-
.../test-cases/api/time-scale-coordinate-to-logical.js | 1 +
.../graphics/test-cases/api/time-scale-coordinate-to-time.js | 1 +
.../test-cases/api/time-scale-logical-to-coordinate.js | 1 +
.../graphics/test-cases/api/time-scale-time-to-coordinate.js | 1 +
.../applying-options/apply-do-not-draw-price-ticks.js | 1 +
.../graphics/test-cases/applying-options/change-bar-colors.js | 1 +
.../test-cases/applying-options/change-candlestick-colors.js | 1 +
.../applying-options/crosshair-mode-hidden-unhide.js | 1 +
.../test-cases/applying-options/crosshair-mode-hidden.js | 1 +
.../test-cases/applying-options/empty-time-scale-options.js | 2 +-
.../test-cases/applying-options/fix-both-edges-then-scroll.js | 2 +-
.../applying-options/fix-both-edges-time-scale-labels.js | 1 +
.../e2e/graphics/test-cases/applying-options/fix-both-edges.js | 1 +
.../e2e/graphics/test-cases/applying-options/fix-left-edge.js | 2 +-
.../test-cases/applying-options/increase-min-bar-spacing.js | 1 +
.../graphics/test-cases/applying-options/make-series-hidden.js | 1 +
.../test-cases/applying-options/make-series-visible.js | 1 +
.../graphics/test-cases/applying-options/move-price-scale.js | 1 +
.../applying-options/move-series-from-right-to-left.js | 1 +
.../test-cases/applying-options/move-series-to-overlay.js | 2 +-
.../graphics/test-cases/applying-options/re-enable-autosize.js | 2 +-
.../test-cases/applying-options/reduce-min-bar-spacing.js | 2 +-
.../applying-options/scale-margins-for-overlay-series.js | 2 +-
.../applying-options/scroll-to-future-then-fix-right-edge.js | 2 +-
.../applying-options/scroll-to-past-then-fix-right-edge.js | 2 +-
.../test-cases/applying-options/series-price-format.js | 2 +-
tests/e2e/graphics/test-cases/applying-options/series-title.js | 2 +-
.../applying-options/unfix-right-edge-then-scroll-to-future.js | 2 +-
.../graphics/test-cases/applying-options/update-chart-width.js | 1 +
tests/e2e/graphics/test-cases/applying-options/watermark.js | 2 +-
.../test-cases/applying-options/zoom-in-then-fix-both-edges.js | 2 +-
.../applying-options/zoom-out-then-fix-both-edges.js | 2 +-
tests/e2e/graphics/test-cases/constrast-colors.js | 2 +-
.../graphics/test-cases/correct-price-range-in-autoscale.js | 2 +-
tests/e2e/graphics/test-cases/crosshair-marker-position.js | 2 +-
tests/e2e/graphics/test-cases/data-validation.js | 2 +-
.../indexed-to-100-scale.js | 1 +
.../normal-scale.js | 1 +
.../percentage-scale.js | 1 +
.../test-cases/dont-draw-lines-when-out-of-visible-range.js | 1 +
tests/e2e/graphics/test-cases/fit-content-with-few-data.js | 2 +-
tests/e2e/graphics/test-cases/fit-content-with-lot-data.js | 1 +
tests/e2e/graphics/test-cases/horizontal-price-scale.js | 3 ++-
.../test-cases/incorrect-autoscale-when-prices-are-small.js | 2 +-
.../e2e/graphics/test-cases/initial-options/base-line-style.js | 1 +
.../test-cases/initial-options/chart-width-and-height.js | 1 +
.../test-cases/initial-options/crosshair-label-color-black.js | 1 +
.../test-cases/initial-options/crosshair-label-color-greys.js | 1 +
.../test-cases/initial-options/crosshair-label-color-named.js | 1 +
.../test-cases/initial-options/crosshair-label-color-white.js | 1 +
.../initial-options/crosshair-label-color-with-transparency.js | 1 +
.../test-cases/initial-options/crosshair-mode-hidden.js | 1 +
tests/e2e/graphics/test-cases/initial-options/crosshair.js | 1 +
.../graphics/test-cases/initial-options/custom-date-format.js | 1 +
.../test-cases/initial-options/custom-percentage-format.js | 1 +
.../initial-options/custom-price-format-with-extending-axis.js | 2 +-
.../graphics/test-cases/initial-options/custom-price-format.js | 2 +-
tests/e2e/graphics/test-cases/initial-options/date-format.js | 1 +
.../graphics/test-cases/initial-options/draw-price-ticks.js | 1 +
.../e2e/graphics/test-cases/initial-options/draw-time-ticks.js | 1 +
tests/e2e/graphics/test-cases/initial-options/fat-bars.js | 1 +
.../initial-options/fix-left-edge-and-update-data.js | 1 +
tests/e2e/graphics/test-cases/initial-options/fix-left-edge.js | 1 +
.../graphics/test-cases/initial-options/gradient-background.js | 1 +
.../graphics/test-cases/initial-options/invalid-bar-spacing.js | 1 +
.../graphics/test-cases/initial-options/left-price-scale.js | 1 +
.../test-cases/initial-options/log-price-scale-mode.js | 1 +
.../graphics/test-cases/initial-options/min-visible-bars.js | 1 +
tests/e2e/graphics/test-cases/initial-options/no-autoscale.js | 1 +
tests/e2e/graphics/test-cases/initial-options/no-base-line.js | 1 +
tests/e2e/graphics/test-cases/initial-options/no-price-line.js | 1 +
.../e2e/graphics/test-cases/initial-options/no-price-scale.js | 1 +
.../test-cases/initial-options/non-auto-scale-price-scale.js | 1 +
tests/e2e/graphics/test-cases/initial-options/price-format.js | 2 +-
.../test-cases/initial-options/price-line-source-default.js | 2 +-
.../initial-options/price-line-source-last-visible.js | 2 +-
.../graphics/test-cases/initial-options/price-line-style.js | 1 +
.../test-cases/initial-options/price-scale-entire-text-only.js | 1 +
.../graphics/test-cases/initial-options/small-candlesticks.js | 1 +
.../test-cases/initial-options/tick-marks-formatter-2.js | 1 +
.../test-cases/initial-options/tick-marks-formatter.js | 1 +
.../graphics/test-cases/initial-options/time-formatter-2.js | 1 +
.../e2e/graphics/test-cases/initial-options/time-formatter.js | 1 +
tests/e2e/graphics/test-cases/initial-options/time-scale.js | 1 +
.../test-cases/initial-options/transparent-background.js | 1 +
tests/e2e/graphics/test-cases/initial-options/use-observer.js | 2 +-
tests/e2e/graphics/test-cases/initial-options/watermark.js | 1 +
.../e2e/graphics/test-cases/initial-options/zero-precision.js | 2 +-
tests/e2e/graphics/test-cases/logical-range/bars-in-gap.js | 2 +-
tests/e2e/graphics/test-cases/logical-range/bars-in-range.js | 2 +-
.../logical-range/subscribe-visible-logical-range-change.js | 2 +-
tests/e2e/graphics/test-cases/months-chart.js | 2 +-
tests/e2e/graphics/test-cases/plugins/autoscaling.js | 2 +-
tests/e2e/graphics/test-cases/plugins/axis-labels.js | 2 +-
tests/e2e/graphics/test-cases/plugins/basic.js | 2 +-
tests/e2e/graphics/test-cases/plugins/custom-series.js | 2 +-
tests/e2e/graphics/test-cases/plugins/layer-bottom.js | 2 +-
tests/e2e/graphics/test-cases/plugins/layer-normal.js | 2 +-
tests/e2e/graphics/test-cases/plugins/layer-top.js | 2 +-
tests/e2e/graphics/test-cases/plugins/layers.js | 2 +-
tests/e2e/graphics/test-cases/plugins/panes.js | 2 +-
tests/e2e/graphics/test-cases/price-line-label-colors.js | 2 +-
.../price-scale/logarithmic-scale-on-extra-small-values.js | 1 +
.../price-scale/logarithmic-scale-on-small-values.js | 1 +
.../test-cases/price-scale/minimum-scale-dimensions.js | 1 +
.../test-cases/price-scale/no-empty-mark-on-price-scale.js | 2 +-
.../price-scale/percentage-first-value-invisible-series.js | 1 +
.../series-label-is-fully-visible-at-edge-of-scale.js | 2 +-
.../graphics/test-cases/remove-series-extended-time-scale.js | 2 +-
tests/e2e/graphics/test-cases/rtl-page.js | 2 +-
.../test-cases/series-markers/marker-in-gap-from-left.js | 2 +-
tests/e2e/graphics/test-cases/series-markers/marker-in-gap.js | 2 +-
.../graphics/test-cases/series-markers/series-arrow-markers.js | 2 +-
.../test-cases/series-markers/series-circle-markers.js | 2 +-
.../test-cases/series-markers/series-markers-aligned.js | 2 +-
.../series-markers/series-markers-max-bar-spacing.js | 2 +-
.../series-markers/series-markers-min-bar-spacing.js | 2 +-
.../series-markers/series-markers-object-business-day.js | 2 +-
.../series-markers/series-markers-out-of-visible-range.js | 2 +-
.../test-cases/series-markers/series-markers-re-aligned.js | 2 +-
.../test-cases/series-markers/series-markers-update.js | 2 +-
.../test-cases/series-markers/series-markers-with-text.js | 1 +
.../test-cases/series-markers/series-square-markers.js | 2 +-
.../series-markers/set-markers-before-series-data.js | 2 +-
tests/e2e/graphics/test-cases/series/2-baseline-series.js | 2 +-
tests/e2e/graphics/test-cases/series/2-points-line-series.js | 2 +-
.../e2e/graphics/test-cases/series/add-series-after-volume.js | 2 +-
.../test-cases/series/alternate-histogram-items-with-gaps.js | 1 +
.../graphics/test-cases/series/area-inverted-after-delay.js | 2 +-
tests/e2e/graphics/test-cases/series/area-inverted.js | 2 +-
tests/e2e/graphics/test-cases/series/area-out-of-viewport.js | 2 +-
.../e2e/graphics/test-cases/series/area-with-custom-colors.js | 2 +-
.../e2e/graphics/test-cases/series/area-with-point-markers.js | 1 +
tests/e2e/graphics/test-cases/series/area-with-whitespaces.js | 2 +-
tests/e2e/graphics/test-cases/series/area.js | 2 +-
tests/e2e/graphics/test-cases/series/bar-semitransparent.js | 2 +-
tests/e2e/graphics/test-cases/series/bar-with-custom-colors.js | 2 +-
tests/e2e/graphics/test-cases/series/bar.js | 2 +-
tests/e2e/graphics/test-cases/series/bars-with-whitespaces.js | 2 +-
.../graphics/test-cases/series/baseline-with-custom-colors.js | 2 +-
.../graphics/test-cases/series/baseline-with-point-markers.js | 2 +-
tests/e2e/graphics/test-cases/series/baseline.js | 2 +-
.../graphics/test-cases/series/candlesticks-semitransparent.js | 2 +-
.../test-cases/series/candlesticks-with-custom-colors.js | 2 +-
.../graphics/test-cases/series/candlesticks-with-huge-range.js | 2 +-
tests/e2e/graphics/test-cases/series/candlesticks.js | 2 +-
.../graphics/test-cases/series/candlestics-with-whitespaces.js | 2 +-
.../series/change-colors-via-set-data-in-histogram.js | 2 +-
.../test-cases/series/crosshair-marker-border-width.js | 2 +-
.../series/crosshair-marker-colors-change-to-default.js | 2 +-
.../test-cases/series/crosshair-marker-colors-change.js | 2 +-
.../e2e/graphics/test-cases/series/crosshair-marker-colors.js | 2 +-
tests/e2e/graphics/test-cases/series/curved-line-2-points.js | 2 +-
tests/e2e/graphics/test-cases/series/curved-line-3-points.js | 2 +-
tests/e2e/graphics/test-cases/series/curved-line-area.js | 2 +-
tests/e2e/graphics/test-cases/series/curved-line-baseline.js | 2 +-
.../graphics/test-cases/series/curved-line-colored-items.js | 2 +-
.../graphics/test-cases/series/hidden-series-and-autoscale.js | 2 +-
.../test-cases/series/histogram-add-new-color-on-update.js | 2 +-
.../test-cases/series/histogram-change-default-color.js | 2 +-
tests/e2e/graphics/test-cases/series/histogram-out-of-range.js | 2 +-
.../test-cases/series/histogram-update-without-set-data.js | 2 +-
.../graphics/test-cases/series/histogram-with-whitespaces.js | 2 +-
tests/e2e/graphics/test-cases/series/histogram.js | 2 +-
tests/e2e/graphics/test-cases/series/line-dotted.js | 2 +-
tests/e2e/graphics/test-cases/series/line-overlap.js | 2 +-
.../series/line-series-with-point-markers-and-hidden-line.js | 1 +
.../series/line-with-custom-color-change-color-later.js | 2 +-
tests/e2e/graphics/test-cases/series/line-with-custom-color.js | 2 +-
.../e2e/graphics/test-cases/series/line-with-point-markers.js | 1 +
.../test-cases/series/line-with-steps-with-custom-color.js | 2 +-
tests/e2e/graphics/test-cases/series/line-with-whitespaces.js | 2 +-
tests/e2e/graphics/test-cases/series/line.js | 2 +-
.../series/no-last-price-animation-on-adding-whitespace.js | 2 +-
...st-price-animation-on-first-set-data-after-reseting-data.js | 2 +-
.../series/no-last-price-animation-on-first-set-data.js | 2 +-
.../series/no-last-price-animation-on-loading-history-data.js | 2 +-
.../test-cases/series/no-visible-points-in-the-middle.js | 1 +
.../series/overlay-series-title-only-overlay-price-scale.js | 2 +-
.../series/overlay-series-title-only-overlay-stacked.js | 2 +-
tests/e2e/graphics/test-cases/series/overlay-series-title.js | 2 +-
.../test-cases/series/override-autoscale-fixed-range.js | 1 +
.../e2e/graphics/test-cases/series/price-line-apply-options.js | 2 +-
.../graphics/test-cases/series/price-line-line-visibility.js | 2 +-
.../test-cases/series/price-line-overlapping-series-title.js | 2 +-
.../test-cases/series/price-line-with-percentage-scale-mode.js | 1 +
.../e2e/graphics/test-cases/series/price-lines-align-labels.js | 1 +
.../test-cases/series/price-lines-do-not-align-labels.js | 1 +
.../e2e/graphics/test-cases/series/price-lines-on-two-axis.js | 1 +
tests/e2e/graphics/test-cases/series/price-lines-remove.js | 2 +-
tests/e2e/graphics/test-cases/series/price-lines.js | 2 +-
tests/e2e/graphics/test-cases/series/series-price-formatter.js | 2 +-
tests/e2e/graphics/test-cases/series/series-type.js | 2 +-
tests/e2e/graphics/test-cases/series/series-visibility.js | 1 +
.../graphics/test-cases/series/set-empty-data-to-histogram.js | 2 +-
.../graphics/test-cases/series/setting-same-data-after-time.js | 2 +-
.../graphics/test-cases/series/several-non-regular-series.js | 2 +-
tests/e2e/graphics/test-cases/series/single-point-area.js | 1 +
tests/e2e/graphics/test-cases/series/single-point-line.js | 1 +
.../test-cases/series/single-visible-point-line-first-bar.js | 1 +
.../test-cases/series/single-visible-point-line-last-bar.js | 1 +
tests/e2e/graphics/test-cases/series/step-line-area.js | 2 +-
tests/e2e/graphics/test-cases/series/step-line-baseline.js | 2 +-
tests/e2e/graphics/test-cases/series/step-line.js | 2 +-
.../test-cases/series/two-series-one-not-autoscaled.js | 1 +
.../graphics/test-cases/series/update-baseline-base-value.js | 2 +-
.../graphics/test-cases/series/update-removed-series-data.js | 1 +
tests/e2e/graphics/test-cases/series/whitespace-updates.js | 2 +-
tests/e2e/graphics/test-cases/set-crosshair-position.js | 2 +-
tests/e2e/graphics/test-cases/set-price-line-label.js | 2 +-
tests/e2e/graphics/test-cases/take-screenshot.js | 1 +
.../test-cases/time-scale/add-data-to-left-two-series.js | 2 +-
tests/e2e/graphics/test-cases/time-scale/add-data-to-left.js | 2 +-
.../test-cases/time-scale/add-data-to-right-two-series.js | 2 +-
tests/e2e/graphics/test-cases/time-scale/add-data-to-right.js | 2 +-
.../time-scale/allow-shift-range-whitespace-replacement.js | 1 +
.../e2e/graphics/test-cases/time-scale/disable-bold-labels.js | 2 +-
.../time-scale/do-not-render-overlapping-marks-font-size-24.js | 1 +
.../test-cases/time-scale/do-not-render-overlapping-marks.js | 1 +
.../time-scale/do-not-shift-on-new-data-from-right.js | 1 +
.../time-scale/do-not-shift-range-when-replacing-whitespace.js | 1 +
.../test-cases/time-scale/fit-content-pricescale-changes.js | 1 +
.../graphics/test-cases/time-scale/hidden-time-scale-size.js | 2 +-
.../lock-visible-range-on-resize-and-fixing-edges.js | 1 +
tests/e2e/graphics/test-cases/time-scale/min-bar-spacing.js | 1 +
.../realign-partially-hidden-time-scale-mark-on-left.js | 1 +
.../realign-partially-hidden-time-scale-mark-on-right.js | 1 +
.../time-scale/realign-partially-hidden-time-scale-marks.js | 1 +
.../time-scale/reset-time-scale-after-set-visible-range.js | 2 +-
.../time-scale/scroll-to-position-after-set-visible-range.js | 2 +-
.../test-cases/time-scale/scroll-to-position-with-no-data.js | 2 +-
.../e2e/graphics/test-cases/time-scale/set-and-clear-series.js | 1 +
.../time-scale/set-right-offset-after-set-visible-range.js | 2 +-
.../time-scale/set-visible-logical-range-with-no-data.js | 2 +-
.../test-cases/time-scale/set-visible-range-after-time.js | 2 +-
.../time-scale/set-visible-range-with-small-range.js | 2 +-
.../test-cases/time-scale/set-visible-range-with-two-series.js | 2 +-
tests/e2e/graphics/test-cases/time-scale/set-visible-range.js | 2 +-
.../time-scale/time-scale-size-on-changing-chart-size.js | 2 +-
.../time-scale/time-scale-size-with-hidden-price-scale.js | 2 +-
...pdates-after-replacing-whitespace-should-shift-timescale.js | 1 +
.../test-cases/time-scale/updates-shift-the-timescale.js | 1 +
...dates-to-existing-data-points-should-not-shift-timescale.js | 1 +
tests/e2e/graphics/test-cases/transparent-color.js | 2 +-
tests/e2e/graphics/test-cases/two-scales/basic.js | 1 +
.../e2e/graphics/test-cases/two-scales/empty-price-scale-id.js | 2 +-
tests/e2e/graphics/test-cases/two-scales/left-percent.js | 1 +
.../graphics/test-cases/two-scales/price-scale-text-colors.js | 1 +
.../graphics/test-cases/two-scales/two-groups-of-overlays.js | 2 +-
.../graphics/test-cases/two-scales/two-overlays-share-scale.js | 2 +-
258 files changed, 259 insertions(+), 155 deletions(-)
diff --git a/tests/e2e/graphics/test-cases/add-markers-with-autosize-enabled.js b/tests/e2e/graphics/test-cases/add-markers-with-autosize-enabled.js
index e5383b9ac5..7c9f8b9752 100644
--- a/tests/e2e/graphics/test-cases/add-markers-with-autosize-enabled.js
+++ b/tests/e2e/graphics/test-cases/add-markers-with-autosize-enabled.js
@@ -25,7 +25,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container, { autoSize: true });
+ const chart = window.chart = LightweightCharts.createChart(container, { autoSize: true, layout: { attributionLogo: false } });
const series = chart.addCandlestickSeries();
diff --git a/tests/e2e/graphics/test-cases/add-series-after-time.js b/tests/e2e/graphics/test-cases/add-series-after-time.js
index f55808c0a6..9a06f845b4 100644
--- a/tests/e2e/graphics/test-cases/add-series-after-time.js
+++ b/tests/e2e/graphics/test-cases/add-series-after-time.js
@@ -15,6 +15,7 @@ function generateData() {
function runTestCase(container) {
const chart = window.chart = LightweightCharts.createChart(container, {
height: 500, width: 600,
+ layout: { attributionLogo: false },
});
return new Promise(resolve => {
diff --git a/tests/e2e/graphics/test-cases/api/getting-series-price-scale.js b/tests/e2e/graphics/test-cases/api/getting-series-price-scale.js
index 424d6d1f86..0f911bc006 100644
--- a/tests/e2e/graphics/test-cases/api/getting-series-price-scale.js
+++ b/tests/e2e/graphics/test-cases/api/getting-series-price-scale.js
@@ -1,5 +1,5 @@
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const series = chart.addAreaSeries();
series.setData([
{ time: '1990-04-24', value: 0 },
diff --git a/tests/e2e/graphics/test-cases/api/ignore-resize-if-autosize-active.js b/tests/e2e/graphics/test-cases/api/ignore-resize-if-autosize-active.js
index baa8195d45..40a1659ab1 100644
--- a/tests/e2e/graphics/test-cases/api/ignore-resize-if-autosize-active.js
+++ b/tests/e2e/graphics/test-cases/api/ignore-resize-if-autosize-active.js
@@ -15,6 +15,7 @@ function generateData() {
function runTestCase(container) {
const chart = (window.chart = LightweightCharts.createChart(container, {
autoSize: true,
+ layout: { attributionLogo: false },
}));
const series = chart.addLineSeries();
series.setData(generateData());
diff --git a/tests/e2e/graphics/test-cases/api/price-scale-width.js b/tests/e2e/graphics/test-cases/api/price-scale-width.js
index e3a729bd99..849cee1c1a 100644
--- a/tests/e2e/graphics/test-cases/api/price-scale-width.js
+++ b/tests/e2e/graphics/test-cases/api/price-scale-width.js
@@ -6,6 +6,7 @@ function runTestCase(container) {
leftPriceScale: {
visible: false,
},
+ layout: { attributionLogo: false },
});
const series = chart.addLineSeries({ priceScaleId: 'overlay-scale' });
diff --git a/tests/e2e/graphics/test-cases/api/series-data-by-index.js b/tests/e2e/graphics/test-cases/api/series-data-by-index.js
index cbb6558cd9..35c26f979c 100644
--- a/tests/e2e/graphics/test-cases/api/series-data-by-index.js
+++ b/tests/e2e/graphics/test-cases/api/series-data-by-index.js
@@ -90,7 +90,7 @@ function checkSeries(series, data, compareItemsFn) {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const lineSeries = chart.addLineSeries();
checkSeries(
diff --git a/tests/e2e/graphics/test-cases/api/series-markers.js b/tests/e2e/graphics/test-cases/api/series-markers.js
index ac0992eea2..b06dfe62ab 100644
--- a/tests/e2e/graphics/test-cases/api/series-markers.js
+++ b/tests/e2e/graphics/test-cases/api/series-markers.js
@@ -17,7 +17,7 @@ function compare(markers, seriesApiMarkers) {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const series = chart.addAreaSeries();
series.setData([
{ time: '1990-04-24', value: 0 },
diff --git a/tests/e2e/graphics/test-cases/api/subscribe-crosshair-move.js b/tests/e2e/graphics/test-cases/api/subscribe-crosshair-move.js
index 4d9b8d5686..0592dd6e64 100644
--- a/tests/e2e/graphics/test-cases/api/subscribe-crosshair-move.js
+++ b/tests/e2e/graphics/test-cases/api/subscribe-crosshair-move.js
@@ -1,5 +1,5 @@
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const series = chart.addAreaSeries();
series.setData([
{ time: '1990-04-24', value: 0 },
diff --git a/tests/e2e/graphics/test-cases/api/time-scale-coordinate-to-logical.js b/tests/e2e/graphics/test-cases/api/time-scale-coordinate-to-logical.js
index 4f7ee6a9d2..cf10064349 100644
--- a/tests/e2e/graphics/test-cases/api/time-scale-coordinate-to-logical.js
+++ b/tests/e2e/graphics/test-cases/api/time-scale-coordinate-to-logical.js
@@ -12,6 +12,7 @@ function runTestCase(container) {
leftPriceScale: {
visible: false,
},
+ layout: { attributionLogo: false },
});
const series = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/api/time-scale-coordinate-to-time.js b/tests/e2e/graphics/test-cases/api/time-scale-coordinate-to-time.js
index 5f94065354..19ef70a781 100644
--- a/tests/e2e/graphics/test-cases/api/time-scale-coordinate-to-time.js
+++ b/tests/e2e/graphics/test-cases/api/time-scale-coordinate-to-time.js
@@ -12,6 +12,7 @@ function runTestCase(container) {
leftPriceScale: {
visible: false,
},
+ layout: { attributionLogo: false },
});
const series = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/api/time-scale-logical-to-coordinate.js b/tests/e2e/graphics/test-cases/api/time-scale-logical-to-coordinate.js
index 7196df4f6d..c7b1b79302 100644
--- a/tests/e2e/graphics/test-cases/api/time-scale-logical-to-coordinate.js
+++ b/tests/e2e/graphics/test-cases/api/time-scale-logical-to-coordinate.js
@@ -16,6 +16,7 @@ function runTestCase(container) {
leftPriceScale: {
visible: false,
},
+ layout: { attributionLogo: false },
});
const series = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/api/time-scale-time-to-coordinate.js b/tests/e2e/graphics/test-cases/api/time-scale-time-to-coordinate.js
index fd27cf2a77..06f4c7c054 100644
--- a/tests/e2e/graphics/test-cases/api/time-scale-time-to-coordinate.js
+++ b/tests/e2e/graphics/test-cases/api/time-scale-time-to-coordinate.js
@@ -16,6 +16,7 @@ function runTestCase(container) {
leftPriceScale: {
visible: false,
},
+ layout: { attributionLogo: false },
});
const series = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/applying-options/apply-do-not-draw-price-ticks.js b/tests/e2e/graphics/test-cases/applying-options/apply-do-not-draw-price-ticks.js
index ee0d317990..df8a872b40 100644
--- a/tests/e2e/graphics/test-cases/applying-options/apply-do-not-draw-price-ticks.js
+++ b/tests/e2e/graphics/test-cases/applying-options/apply-do-not-draw-price-ticks.js
@@ -17,6 +17,7 @@ function runTestCase(container) {
rightPriceScale: {
ticksVisible: true,
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/applying-options/change-bar-colors.js b/tests/e2e/graphics/test-cases/applying-options/change-bar-colors.js
index 7c37f3eab2..610d7d45ac 100644
--- a/tests/e2e/graphics/test-cases/applying-options/change-bar-colors.js
+++ b/tests/e2e/graphics/test-cases/applying-options/change-bar-colors.js
@@ -44,6 +44,7 @@ function runTestCase(container) {
barSpacing: 40,
timeVisible: true,
},
+ layout: { attributionLogo: false },
});
const bar = chart.addBarSeries({
diff --git a/tests/e2e/graphics/test-cases/applying-options/change-candlestick-colors.js b/tests/e2e/graphics/test-cases/applying-options/change-candlestick-colors.js
index f3d760299e..4678a27e5c 100644
--- a/tests/e2e/graphics/test-cases/applying-options/change-candlestick-colors.js
+++ b/tests/e2e/graphics/test-cases/applying-options/change-candlestick-colors.js
@@ -44,6 +44,7 @@ function runTestCase(container) {
barSpacing: 40,
timeVisible: true,
},
+ layout: { attributionLogo: false },
});
const candlestick = chart.addCandlestickSeries({
diff --git a/tests/e2e/graphics/test-cases/applying-options/crosshair-mode-hidden-unhide.js b/tests/e2e/graphics/test-cases/applying-options/crosshair-mode-hidden-unhide.js
index 45976110f7..fd16e452e9 100644
--- a/tests/e2e/graphics/test-cases/applying-options/crosshair-mode-hidden-unhide.js
+++ b/tests/e2e/graphics/test-cases/applying-options/crosshair-mode-hidden-unhide.js
@@ -35,6 +35,7 @@ function runTestCase(container) {
},
mode: LightweightCharts.CrosshairMode.Normal,
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/applying-options/crosshair-mode-hidden.js b/tests/e2e/graphics/test-cases/applying-options/crosshair-mode-hidden.js
index e9f468b55d..21428d10ff 100644
--- a/tests/e2e/graphics/test-cases/applying-options/crosshair-mode-hidden.js
+++ b/tests/e2e/graphics/test-cases/applying-options/crosshair-mode-hidden.js
@@ -29,6 +29,7 @@ function runTestCase(container) {
},
mode: LightweightCharts.CrosshairMode.Normal,
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/applying-options/empty-time-scale-options.js b/tests/e2e/graphics/test-cases/applying-options/empty-time-scale-options.js
index c4f6f449da..def2da03b0 100644
--- a/tests/e2e/graphics/test-cases/applying-options/empty-time-scale-options.js
+++ b/tests/e2e/graphics/test-cases/applying-options/empty-time-scale-options.js
@@ -23,7 +23,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addCandlestickSeries();
diff --git a/tests/e2e/graphics/test-cases/applying-options/fix-both-edges-then-scroll.js b/tests/e2e/graphics/test-cases/applying-options/fix-both-edges-then-scroll.js
index efab161ad8..abe3cc13a2 100644
--- a/tests/e2e/graphics/test-cases/applying-options/fix-both-edges-then-scroll.js
+++ b/tests/e2e/graphics/test-cases/applying-options/fix-both-edges-then-scroll.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addLineSeries();
mainSeries.setData(generateData());
diff --git a/tests/e2e/graphics/test-cases/applying-options/fix-both-edges-time-scale-labels.js b/tests/e2e/graphics/test-cases/applying-options/fix-both-edges-time-scale-labels.js
index 493c7f2c8c..65ac6b1c38 100644
--- a/tests/e2e/graphics/test-cases/applying-options/fix-both-edges-time-scale-labels.js
+++ b/tests/e2e/graphics/test-cases/applying-options/fix-both-edges-time-scale-labels.js
@@ -35,6 +35,7 @@ function runTestCase(container) {
fixLeftEdge: true,
fixRightEdge: true,
},
+ layout: { attributionLogo: false },
});
const series = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/applying-options/fix-both-edges.js b/tests/e2e/graphics/test-cases/applying-options/fix-both-edges.js
index c0267b3aa8..9d6d64e802 100644
--- a/tests/e2e/graphics/test-cases/applying-options/fix-both-edges.js
+++ b/tests/e2e/graphics/test-cases/applying-options/fix-both-edges.js
@@ -28,6 +28,7 @@ function runTestCase(container) {
fixLeftEdge: true,
fixRightEdge: true,
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addCandlestickSeries();
diff --git a/tests/e2e/graphics/test-cases/applying-options/fix-left-edge.js b/tests/e2e/graphics/test-cases/applying-options/fix-left-edge.js
index 239e5cf09f..d302cac9b6 100644
--- a/tests/e2e/graphics/test-cases/applying-options/fix-left-edge.js
+++ b/tests/e2e/graphics/test-cases/applying-options/fix-left-edge.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addLineSeries();
mainSeries.setData(generateData());
diff --git a/tests/e2e/graphics/test-cases/applying-options/increase-min-bar-spacing.js b/tests/e2e/graphics/test-cases/applying-options/increase-min-bar-spacing.js
index 63b10113b0..587c6bf837 100644
--- a/tests/e2e/graphics/test-cases/applying-options/increase-min-bar-spacing.js
+++ b/tests/e2e/graphics/test-cases/applying-options/increase-min-bar-spacing.js
@@ -27,6 +27,7 @@ function runTestCase(container) {
timeScale: {
minBarSpacing: 0.001,
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addBarSeries();
diff --git a/tests/e2e/graphics/test-cases/applying-options/make-series-hidden.js b/tests/e2e/graphics/test-cases/applying-options/make-series-hidden.js
index 447b9f627d..0d5ea8046d 100644
--- a/tests/e2e/graphics/test-cases/applying-options/make-series-hidden.js
+++ b/tests/e2e/graphics/test-cases/applying-options/make-series-hidden.js
@@ -18,6 +18,7 @@ function runTestCase(container) {
rightPriceScale: {
mode: LightweightCharts.PriceScaleMode.IndexedTo100,
},
+ layout: { attributionLogo: false },
});
const lineSeries = chart.addLineSeries({
baseLineVisible: true,
diff --git a/tests/e2e/graphics/test-cases/applying-options/make-series-visible.js b/tests/e2e/graphics/test-cases/applying-options/make-series-visible.js
index 933f8ebea9..a5c33c0aee 100644
--- a/tests/e2e/graphics/test-cases/applying-options/make-series-visible.js
+++ b/tests/e2e/graphics/test-cases/applying-options/make-series-visible.js
@@ -18,6 +18,7 @@ function runTestCase(container) {
rightPriceScale: {
mode: LightweightCharts.PriceScaleMode.IndexedTo100,
},
+ layout: { attributionLogo: false },
});
const lineSeries = chart.addLineSeries({
visible: false,
diff --git a/tests/e2e/graphics/test-cases/applying-options/move-price-scale.js b/tests/e2e/graphics/test-cases/applying-options/move-price-scale.js
index 3ce6a77f14..49f5fb9d9a 100644
--- a/tests/e2e/graphics/test-cases/applying-options/move-price-scale.js
+++ b/tests/e2e/graphics/test-cases/applying-options/move-price-scale.js
@@ -16,6 +16,7 @@ function runTestCase(container) {
const chart = window.chart = LightweightCharts.createChart(container, {
rightPriceScale: { visible: true },
leftPriceScale: { visible: false },
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addLineSeries({
diff --git a/tests/e2e/graphics/test-cases/applying-options/move-series-from-right-to-left.js b/tests/e2e/graphics/test-cases/applying-options/move-series-from-right-to-left.js
index 93e3dc4c5b..b4bf702474 100644
--- a/tests/e2e/graphics/test-cases/applying-options/move-series-from-right-to-left.js
+++ b/tests/e2e/graphics/test-cases/applying-options/move-series-from-right-to-left.js
@@ -21,6 +21,7 @@ function runTestCase(container) {
rightPriceScale: {
visible: true,
},
+ layout: { attributionLogo: false },
});
const firstSeries = chart.addLineSeries({
diff --git a/tests/e2e/graphics/test-cases/applying-options/move-series-to-overlay.js b/tests/e2e/graphics/test-cases/applying-options/move-series-to-overlay.js
index 60475d9fe0..d4a13281d2 100644
--- a/tests/e2e/graphics/test-cases/applying-options/move-series-to-overlay.js
+++ b/tests/e2e/graphics/test-cases/applying-options/move-series-to-overlay.js
@@ -14,7 +14,7 @@ function generateData(offset) {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const firstSeries = chart.addLineSeries({
lineWidth: 1,
diff --git a/tests/e2e/graphics/test-cases/applying-options/re-enable-autosize.js b/tests/e2e/graphics/test-cases/applying-options/re-enable-autosize.js
index 693e377559..72449deae5 100644
--- a/tests/e2e/graphics/test-cases/applying-options/re-enable-autosize.js
+++ b/tests/e2e/graphics/test-cases/applying-options/re-enable-autosize.js
@@ -23,7 +23,7 @@ function runTestCase(container) {
box.style.height = '200px';
container.appendChild(box);
- const chart = LightweightCharts.createChart(box, { autoSize: true, height: 200, width: 200 });
+ const chart = LightweightCharts.createChart(box, { autoSize: true, height: 200, width: 200, layout: { attributionLogo: false } });
const mainSeries = chart.addAreaSeries();
mainSeries.setData(generateData());
diff --git a/tests/e2e/graphics/test-cases/applying-options/reduce-min-bar-spacing.js b/tests/e2e/graphics/test-cases/applying-options/reduce-min-bar-spacing.js
index e84799cfc4..763a432f31 100644
--- a/tests/e2e/graphics/test-cases/applying-options/reduce-min-bar-spacing.js
+++ b/tests/e2e/graphics/test-cases/applying-options/reduce-min-bar-spacing.js
@@ -23,7 +23,7 @@ function generateData(startValue) {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addBarSeries();
diff --git a/tests/e2e/graphics/test-cases/applying-options/scale-margins-for-overlay-series.js b/tests/e2e/graphics/test-cases/applying-options/scale-margins-for-overlay-series.js
index 59a13d1eb6..1be4e86a9f 100644
--- a/tests/e2e/graphics/test-cases/applying-options/scale-margins-for-overlay-series.js
+++ b/tests/e2e/graphics/test-cases/applying-options/scale-margins-for-overlay-series.js
@@ -14,7 +14,7 @@ function generateData(valueOffset) {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const firstSeries = chart.addLineSeries({
color: 'blue',
diff --git a/tests/e2e/graphics/test-cases/applying-options/scroll-to-future-then-fix-right-edge.js b/tests/e2e/graphics/test-cases/applying-options/scroll-to-future-then-fix-right-edge.js
index f1df90b373..62c78b6563 100644
--- a/tests/e2e/graphics/test-cases/applying-options/scroll-to-future-then-fix-right-edge.js
+++ b/tests/e2e/graphics/test-cases/applying-options/scroll-to-future-then-fix-right-edge.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addLineSeries();
mainSeries.setData(generateData());
diff --git a/tests/e2e/graphics/test-cases/applying-options/scroll-to-past-then-fix-right-edge.js b/tests/e2e/graphics/test-cases/applying-options/scroll-to-past-then-fix-right-edge.js
index 86ae0ab972..0eda367976 100644
--- a/tests/e2e/graphics/test-cases/applying-options/scroll-to-past-then-fix-right-edge.js
+++ b/tests/e2e/graphics/test-cases/applying-options/scroll-to-past-then-fix-right-edge.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addLineSeries();
mainSeries.setData(generateData());
diff --git a/tests/e2e/graphics/test-cases/applying-options/series-price-format.js b/tests/e2e/graphics/test-cases/applying-options/series-price-format.js
index 211d457294..4ccecdc6ba 100644
--- a/tests/e2e/graphics/test-cases/applying-options/series-price-format.js
+++ b/tests/e2e/graphics/test-cases/applying-options/series-price-format.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addLineSeries({
priceFormat: {
diff --git a/tests/e2e/graphics/test-cases/applying-options/series-title.js b/tests/e2e/graphics/test-cases/applying-options/series-title.js
index b79dc1a9bb..e2b4c137f4 100644
--- a/tests/e2e/graphics/test-cases/applying-options/series-title.js
+++ b/tests/e2e/graphics/test-cases/applying-options/series-title.js
@@ -14,7 +14,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const firstSeries = chart.addLineSeries({
title: 'Initial title',
diff --git a/tests/e2e/graphics/test-cases/applying-options/unfix-right-edge-then-scroll-to-future.js b/tests/e2e/graphics/test-cases/applying-options/unfix-right-edge-then-scroll-to-future.js
index 5ba22a33ae..2fc6f0297a 100644
--- a/tests/e2e/graphics/test-cases/applying-options/unfix-right-edge-then-scroll-to-future.js
+++ b/tests/e2e/graphics/test-cases/applying-options/unfix-right-edge-then-scroll-to-future.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addLineSeries();
mainSeries.setData(generateData());
diff --git a/tests/e2e/graphics/test-cases/applying-options/update-chart-width.js b/tests/e2e/graphics/test-cases/applying-options/update-chart-width.js
index 37c36b317b..46e8852f5c 100644
--- a/tests/e2e/graphics/test-cases/applying-options/update-chart-width.js
+++ b/tests/e2e/graphics/test-cases/applying-options/update-chart-width.js
@@ -31,6 +31,7 @@ function runTestCase(container) {
barSpacing: 1000000,
rightOffset: 100000,
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addCandlestickSeries();
diff --git a/tests/e2e/graphics/test-cases/applying-options/watermark.js b/tests/e2e/graphics/test-cases/applying-options/watermark.js
index b09403a39a..4f4dacb688 100644
--- a/tests/e2e/graphics/test-cases/applying-options/watermark.js
+++ b/tests/e2e/graphics/test-cases/applying-options/watermark.js
@@ -23,7 +23,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addCandlestickSeries();
diff --git a/tests/e2e/graphics/test-cases/applying-options/zoom-in-then-fix-both-edges.js b/tests/e2e/graphics/test-cases/applying-options/zoom-in-then-fix-both-edges.js
index 5e76280f00..db48c4f837 100644
--- a/tests/e2e/graphics/test-cases/applying-options/zoom-in-then-fix-both-edges.js
+++ b/tests/e2e/graphics/test-cases/applying-options/zoom-in-then-fix-both-edges.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addLineSeries();
mainSeries.setData(generateData());
diff --git a/tests/e2e/graphics/test-cases/applying-options/zoom-out-then-fix-both-edges.js b/tests/e2e/graphics/test-cases/applying-options/zoom-out-then-fix-both-edges.js
index 61af24b82f..8200975b45 100644
--- a/tests/e2e/graphics/test-cases/applying-options/zoom-out-then-fix-both-edges.js
+++ b/tests/e2e/graphics/test-cases/applying-options/zoom-out-then-fix-both-edges.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addLineSeries();
mainSeries.setData(generateData());
diff --git a/tests/e2e/graphics/test-cases/constrast-colors.js b/tests/e2e/graphics/test-cases/constrast-colors.js
index 14b758a93b..e9763080fe 100644
--- a/tests/e2e/graphics/test-cases/constrast-colors.js
+++ b/tests/e2e/graphics/test-cases/constrast-colors.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = (window.chart = LightweightCharts.createChart(container));
+ const chart = (window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } }));
const mainSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/correct-price-range-in-autoscale.js b/tests/e2e/graphics/test-cases/correct-price-range-in-autoscale.js
index bf6658b7d9..60af7a92fc 100644
--- a/tests/e2e/graphics/test-cases/correct-price-range-in-autoscale.js
+++ b/tests/e2e/graphics/test-cases/correct-price-range-in-autoscale.js
@@ -15,7 +15,7 @@ function generateData(valueOffset, daysStep) {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const firstSeries = chart.addLineSeries();
const secondSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/crosshair-marker-position.js b/tests/e2e/graphics/test-cases/crosshair-marker-position.js
index d1a40bd06a..2574bb143a 100644
--- a/tests/e2e/graphics/test-cases/crosshair-marker-position.js
+++ b/tests/e2e/graphics/test-cases/crosshair-marker-position.js
@@ -2,7 +2,7 @@
window.ignoreMouseMove = true;
function runTestCase(container) {
- const chart = (window.chart = LightweightCharts.createChart(container));
+ const chart = (window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } }));
const mainSeries = chart.addLineSeries({
pointMarkersVisible: true,
diff --git a/tests/e2e/graphics/test-cases/data-validation.js b/tests/e2e/graphics/test-cases/data-validation.js
index b46203d274..5cde6d3e4f 100644
--- a/tests/e2e/graphics/test-cases/data-validation.js
+++ b/tests/e2e/graphics/test-cases/data-validation.js
@@ -14,7 +14,7 @@ function runTestCase(container) {
// passed
}
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const lineSeries = chart.addLineSeries();
const barSeries = chart.addBarSeries();
diff --git a/tests/e2e/graphics/test-cases/degenerative-horizontal-series-with-integer-min-tick/indexed-to-100-scale.js b/tests/e2e/graphics/test-cases/degenerative-horizontal-series-with-integer-min-tick/indexed-to-100-scale.js
index 866916fb46..0e3f34f3a7 100644
--- a/tests/e2e/graphics/test-cases/degenerative-horizontal-series-with-integer-min-tick/indexed-to-100-scale.js
+++ b/tests/e2e/graphics/test-cases/degenerative-horizontal-series-with-integer-min-tick/indexed-to-100-scale.js
@@ -20,6 +20,7 @@ function runTestCase(container) {
rightPriceScale: {
mode: LightweightCharts.PriceScaleMode.IndexedTo100,
},
+ layout: { attributionLogo: false },
});
const firstSeries = chart.addLineSeries({
diff --git a/tests/e2e/graphics/test-cases/degenerative-horizontal-series-with-integer-min-tick/normal-scale.js b/tests/e2e/graphics/test-cases/degenerative-horizontal-series-with-integer-min-tick/normal-scale.js
index 1c9c116cf4..f195449d6b 100644
--- a/tests/e2e/graphics/test-cases/degenerative-horizontal-series-with-integer-min-tick/normal-scale.js
+++ b/tests/e2e/graphics/test-cases/degenerative-horizontal-series-with-integer-min-tick/normal-scale.js
@@ -20,6 +20,7 @@ function runTestCase(container) {
rightPriceScale: {
mode: LightweightCharts.PriceScaleMode.Normal,
},
+ layout: { attributionLogo: false },
});
const firstSeries = chart.addLineSeries({
diff --git a/tests/e2e/graphics/test-cases/degenerative-horizontal-series-with-integer-min-tick/percentage-scale.js b/tests/e2e/graphics/test-cases/degenerative-horizontal-series-with-integer-min-tick/percentage-scale.js
index a7e3aee282..dc39562655 100644
--- a/tests/e2e/graphics/test-cases/degenerative-horizontal-series-with-integer-min-tick/percentage-scale.js
+++ b/tests/e2e/graphics/test-cases/degenerative-horizontal-series-with-integer-min-tick/percentage-scale.js
@@ -20,6 +20,7 @@ function runTestCase(container) {
rightPriceScale: {
mode: LightweightCharts.PriceScaleMode.Percentage,
},
+ layout: { attributionLogo: false },
});
const firstSeries = chart.addLineSeries({
diff --git a/tests/e2e/graphics/test-cases/dont-draw-lines-when-out-of-visible-range.js b/tests/e2e/graphics/test-cases/dont-draw-lines-when-out-of-visible-range.js
index 0245d2d7f2..948e759d6c 100644
--- a/tests/e2e/graphics/test-cases/dont-draw-lines-when-out-of-visible-range.js
+++ b/tests/e2e/graphics/test-cases/dont-draw-lines-when-out-of-visible-range.js
@@ -26,6 +26,7 @@ function runTestCase(container) {
labelVisible: false,
},
},
+ layout: { attributionLogo: false },
}));
const whitespaceData = generateData().map(d => ({ time: d.time }));
diff --git a/tests/e2e/graphics/test-cases/fit-content-with-few-data.js b/tests/e2e/graphics/test-cases/fit-content-with-few-data.js
index 4873cfebe0..e0adaf88f8 100644
--- a/tests/e2e/graphics/test-cases/fit-content-with-few-data.js
+++ b/tests/e2e/graphics/test-cases/fit-content-with-few-data.js
@@ -14,7 +14,7 @@ function generateData(valueOffset, count) {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const series = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/fit-content-with-lot-data.js b/tests/e2e/graphics/test-cases/fit-content-with-lot-data.js
index 3b6bfca8aa..a2a0dc9334 100644
--- a/tests/e2e/graphics/test-cases/fit-content-with-lot-data.js
+++ b/tests/e2e/graphics/test-cases/fit-content-with-lot-data.js
@@ -26,6 +26,7 @@ function runTestCase(container) {
timeVisible: true,
lockVisibleTimeRangeOnResize: true,
},
+ layout: { attributionLogo: false },
});
const series = chart.addLineSeries({
diff --git a/tests/e2e/graphics/test-cases/horizontal-price-scale.js b/tests/e2e/graphics/test-cases/horizontal-price-scale.js
index 597bc721f8..eef1e54ca3 100644
--- a/tests/e2e/graphics/test-cases/horizontal-price-scale.js
+++ b/tests/e2e/graphics/test-cases/horizontal-price-scale.js
@@ -73,7 +73,8 @@ function runTestCase(container) {
const horzItemBehavior = new HorzScaleBehaviorPrice();
const chart = (window.chart = LightweightCharts.createChartEx(
container,
- horzItemBehavior
+ horzItemBehavior,
+ { layout: { attributionLogo: false } }
));
const s1 = chart.addLineSeries({
color: 'red',
diff --git a/tests/e2e/graphics/test-cases/incorrect-autoscale-when-prices-are-small.js b/tests/e2e/graphics/test-cases/incorrect-autoscale-when-prices-are-small.js
index 4a6a719f70..b7d26364da 100644
--- a/tests/e2e/graphics/test-cases/incorrect-autoscale-when-prices-are-small.js
+++ b/tests/e2e/graphics/test-cases/incorrect-autoscale-when-prices-are-small.js
@@ -18,7 +18,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const firstSeries = chart.addLineSeries();
const secondSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/initial-options/base-line-style.js b/tests/e2e/graphics/test-cases/initial-options/base-line-style.js
index 2a23d23f99..bb63909a46 100644
--- a/tests/e2e/graphics/test-cases/initial-options/base-line-style.js
+++ b/tests/e2e/graphics/test-cases/initial-options/base-line-style.js
@@ -18,6 +18,7 @@ function runTestCase(container) {
rightPriceScale: {
mode: LightweightCharts.PriceScaleMode.Percentage,
},
+ layout: { attributionLogo: false },
});
const firstSeries = chart.addLineSeries({
diff --git a/tests/e2e/graphics/test-cases/initial-options/chart-width-and-height.js b/tests/e2e/graphics/test-cases/initial-options/chart-width-and-height.js
index 6c425081d1..2d00943207 100644
--- a/tests/e2e/graphics/test-cases/initial-options/chart-width-and-height.js
+++ b/tests/e2e/graphics/test-cases/initial-options/chart-width-and-height.js
@@ -25,6 +25,7 @@ const chartOptionsToHideCrosshair = {
visible: false,
labelVisible: false,
},
+ layout: { attributionLogo: false },
};
const seriesOptionsToHideCrosshair = {
diff --git a/tests/e2e/graphics/test-cases/initial-options/crosshair-label-color-black.js b/tests/e2e/graphics/test-cases/initial-options/crosshair-label-color-black.js
index e7974e39b5..f8499de0ae 100644
--- a/tests/e2e/graphics/test-cases/initial-options/crosshair-label-color-black.js
+++ b/tests/e2e/graphics/test-cases/initial-options/crosshair-label-color-black.js
@@ -22,6 +22,7 @@ function runTestCase(container) {
labelBackgroundColor: '#000000',
},
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addAreaSeries();
diff --git a/tests/e2e/graphics/test-cases/initial-options/crosshair-label-color-greys.js b/tests/e2e/graphics/test-cases/initial-options/crosshair-label-color-greys.js
index 65b1d967da..bef18ef702 100644
--- a/tests/e2e/graphics/test-cases/initial-options/crosshair-label-color-greys.js
+++ b/tests/e2e/graphics/test-cases/initial-options/crosshair-label-color-greys.js
@@ -22,6 +22,7 @@ function runTestCase(container) {
labelBackgroundColor: '#DDDDDD',
},
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addAreaSeries();
diff --git a/tests/e2e/graphics/test-cases/initial-options/crosshair-label-color-named.js b/tests/e2e/graphics/test-cases/initial-options/crosshair-label-color-named.js
index 8d9340210c..3e04798cfc 100644
--- a/tests/e2e/graphics/test-cases/initial-options/crosshair-label-color-named.js
+++ b/tests/e2e/graphics/test-cases/initial-options/crosshair-label-color-named.js
@@ -22,6 +22,7 @@ function runTestCase(container) {
labelBackgroundColor: 'hotpink',
},
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addAreaSeries();
diff --git a/tests/e2e/graphics/test-cases/initial-options/crosshair-label-color-white.js b/tests/e2e/graphics/test-cases/initial-options/crosshair-label-color-white.js
index e5baf49681..3d14866878 100644
--- a/tests/e2e/graphics/test-cases/initial-options/crosshair-label-color-white.js
+++ b/tests/e2e/graphics/test-cases/initial-options/crosshair-label-color-white.js
@@ -22,6 +22,7 @@ function runTestCase(container) {
labelBackgroundColor: '#ffffff',
},
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addAreaSeries();
diff --git a/tests/e2e/graphics/test-cases/initial-options/crosshair-label-color-with-transparency.js b/tests/e2e/graphics/test-cases/initial-options/crosshair-label-color-with-transparency.js
index 663cb016f3..db267962f6 100644
--- a/tests/e2e/graphics/test-cases/initial-options/crosshair-label-color-with-transparency.js
+++ b/tests/e2e/graphics/test-cases/initial-options/crosshair-label-color-with-transparency.js
@@ -22,6 +22,7 @@ function runTestCase(container) {
labelBackgroundColor: 'rgba(120, 0, 19, 0.5)',
},
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addAreaSeries();
diff --git a/tests/e2e/graphics/test-cases/initial-options/crosshair-mode-hidden.js b/tests/e2e/graphics/test-cases/initial-options/crosshair-mode-hidden.js
index 63ce44f387..0b1674359b 100644
--- a/tests/e2e/graphics/test-cases/initial-options/crosshair-mode-hidden.js
+++ b/tests/e2e/graphics/test-cases/initial-options/crosshair-mode-hidden.js
@@ -29,6 +29,7 @@ function runTestCase(container) {
},
mode: LightweightCharts.CrosshairMode.Hidden,
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/initial-options/crosshair.js b/tests/e2e/graphics/test-cases/initial-options/crosshair.js
index b7f8b76726..71103702b4 100644
--- a/tests/e2e/graphics/test-cases/initial-options/crosshair.js
+++ b/tests/e2e/graphics/test-cases/initial-options/crosshair.js
@@ -26,6 +26,7 @@ function runTestCase(container) {
labelVisible: false,
},
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addAreaSeries();
diff --git a/tests/e2e/graphics/test-cases/initial-options/custom-date-format.js b/tests/e2e/graphics/test-cases/initial-options/custom-date-format.js
index 5765403da1..a05d3f1bf2 100644
--- a/tests/e2e/graphics/test-cases/initial-options/custom-date-format.js
+++ b/tests/e2e/graphics/test-cases/initial-options/custom-date-format.js
@@ -17,6 +17,7 @@ function runTestCase(container) {
localization: {
dateFormat: 'Year: yy (MM-yyyy)',
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addAreaSeries();
diff --git a/tests/e2e/graphics/test-cases/initial-options/custom-percentage-format.js b/tests/e2e/graphics/test-cases/initial-options/custom-percentage-format.js
index 0d40bf94ef..8cea323acc 100644
--- a/tests/e2e/graphics/test-cases/initial-options/custom-percentage-format.js
+++ b/tests/e2e/graphics/test-cases/initial-options/custom-percentage-format.js
@@ -17,6 +17,7 @@ function runTestCase(container) {
localization: {
percentageFormatter: p => `%${p.toFixed(3)}`,
},
+ layout: { attributionLogo: false },
}));
const mainSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/initial-options/custom-price-format-with-extending-axis.js b/tests/e2e/graphics/test-cases/initial-options/custom-price-format-with-extending-axis.js
index dcabc34ea2..f18012c0dc 100644
--- a/tests/e2e/graphics/test-cases/initial-options/custom-price-format-with-extending-axis.js
+++ b/tests/e2e/graphics/test-cases/initial-options/custom-price-format-with-extending-axis.js
@@ -19,7 +19,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const series = chart.addLineSeries({
priceFormat: {
diff --git a/tests/e2e/graphics/test-cases/initial-options/custom-price-format.js b/tests/e2e/graphics/test-cases/initial-options/custom-price-format.js
index 073ba98a7d..03f486aba7 100644
--- a/tests/e2e/graphics/test-cases/initial-options/custom-price-format.js
+++ b/tests/e2e/graphics/test-cases/initial-options/custom-price-format.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const areaSeries = chart.addAreaSeries({
priceFormat: {
diff --git a/tests/e2e/graphics/test-cases/initial-options/date-format.js b/tests/e2e/graphics/test-cases/initial-options/date-format.js
index 04122350f3..b56648188d 100644
--- a/tests/e2e/graphics/test-cases/initial-options/date-format.js
+++ b/tests/e2e/graphics/test-cases/initial-options/date-format.js
@@ -17,6 +17,7 @@ function runTestCase(container) {
localization: {
dateFormat: 'MMM dd, yyyy',
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addAreaSeries();
diff --git a/tests/e2e/graphics/test-cases/initial-options/draw-price-ticks.js b/tests/e2e/graphics/test-cases/initial-options/draw-price-ticks.js
index f306e7ec33..9844dd5523 100644
--- a/tests/e2e/graphics/test-cases/initial-options/draw-price-ticks.js
+++ b/tests/e2e/graphics/test-cases/initial-options/draw-price-ticks.js
@@ -17,6 +17,7 @@ function runTestCase(container) {
rightPriceScale: {
ticksVisible: true,
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/initial-options/draw-time-ticks.js b/tests/e2e/graphics/test-cases/initial-options/draw-time-ticks.js
index 95ede3e2fb..38230155f0 100644
--- a/tests/e2e/graphics/test-cases/initial-options/draw-time-ticks.js
+++ b/tests/e2e/graphics/test-cases/initial-options/draw-time-ticks.js
@@ -17,6 +17,7 @@ function runTestCase(container) {
timeScale: {
ticksVisible: true,
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/initial-options/fat-bars.js b/tests/e2e/graphics/test-cases/initial-options/fat-bars.js
index d398be6482..9708732988 100644
--- a/tests/e2e/graphics/test-cases/initial-options/fat-bars.js
+++ b/tests/e2e/graphics/test-cases/initial-options/fat-bars.js
@@ -27,6 +27,7 @@ function runTestCase(container) {
timeScale: {
barSpacing: 20,
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addBarSeries({
diff --git a/tests/e2e/graphics/test-cases/initial-options/fix-left-edge-and-update-data.js b/tests/e2e/graphics/test-cases/initial-options/fix-left-edge-and-update-data.js
index a16827bfa6..cff45ad85d 100644
--- a/tests/e2e/graphics/test-cases/initial-options/fix-left-edge-and-update-data.js
+++ b/tests/e2e/graphics/test-cases/initial-options/fix-left-edge-and-update-data.js
@@ -3,6 +3,7 @@ function runTestCase(container) {
timeScale: {
fixLeftEdge: true,
},
+ layout: { attributionLogo: false },
});
const line = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/initial-options/fix-left-edge.js b/tests/e2e/graphics/test-cases/initial-options/fix-left-edge.js
index 8e14486acb..d9385002b0 100644
--- a/tests/e2e/graphics/test-cases/initial-options/fix-left-edge.js
+++ b/tests/e2e/graphics/test-cases/initial-options/fix-left-edge.js
@@ -17,6 +17,7 @@ function runTestCase(container) {
timeScale: {
fixLeftEdge: true,
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/initial-options/gradient-background.js b/tests/e2e/graphics/test-cases/initial-options/gradient-background.js
index 570e3a47a8..029ca497be 100644
--- a/tests/e2e/graphics/test-cases/initial-options/gradient-background.js
+++ b/tests/e2e/graphics/test-cases/initial-options/gradient-background.js
@@ -21,6 +21,7 @@ function runTestCase(container) {
topColor: '#b1ff73',
bottomColor: '#1106b1',
},
+ attributionLogo: false,
},
});
diff --git a/tests/e2e/graphics/test-cases/initial-options/invalid-bar-spacing.js b/tests/e2e/graphics/test-cases/initial-options/invalid-bar-spacing.js
index 71620b4321..b7681ebd01 100644
--- a/tests/e2e/graphics/test-cases/initial-options/invalid-bar-spacing.js
+++ b/tests/e2e/graphics/test-cases/initial-options/invalid-bar-spacing.js
@@ -27,6 +27,7 @@ function runTestCase(container) {
timeScale: {
barSpacing: 1000,
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addCandlestickSeries();
diff --git a/tests/e2e/graphics/test-cases/initial-options/left-price-scale.js b/tests/e2e/graphics/test-cases/initial-options/left-price-scale.js
index 038c785f6e..61b9f7bf7a 100644
--- a/tests/e2e/graphics/test-cases/initial-options/left-price-scale.js
+++ b/tests/e2e/graphics/test-cases/initial-options/left-price-scale.js
@@ -17,6 +17,7 @@ function runTestCase(container) {
const chart = window.chart = LightweightCharts.createChart(container, {
rightPriceScale: { visible: false },
leftPriceScale: { visible: true },
+ layout: { attributionLogo: false },
});
const firstSeries = chart.addLineSeries({
diff --git a/tests/e2e/graphics/test-cases/initial-options/log-price-scale-mode.js b/tests/e2e/graphics/test-cases/initial-options/log-price-scale-mode.js
index ba65b9f65f..50a265138a 100644
--- a/tests/e2e/graphics/test-cases/initial-options/log-price-scale-mode.js
+++ b/tests/e2e/graphics/test-cases/initial-options/log-price-scale-mode.js
@@ -17,6 +17,7 @@ function runTestCase(container) {
rightPriceScale: {
mode: LightweightCharts.PriceScaleMode.Logarithmic,
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/initial-options/min-visible-bars.js b/tests/e2e/graphics/test-cases/initial-options/min-visible-bars.js
index 201f101f86..85e4c0d334 100644
--- a/tests/e2e/graphics/test-cases/initial-options/min-visible-bars.js
+++ b/tests/e2e/graphics/test-cases/initial-options/min-visible-bars.js
@@ -28,6 +28,7 @@ function runTestCase(container) {
barSpacing: 1000000,
rightOffset: 100000,
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addCandlestickSeries();
diff --git a/tests/e2e/graphics/test-cases/initial-options/no-autoscale.js b/tests/e2e/graphics/test-cases/initial-options/no-autoscale.js
index 129b83163e..2024a38a2c 100644
--- a/tests/e2e/graphics/test-cases/initial-options/no-autoscale.js
+++ b/tests/e2e/graphics/test-cases/initial-options/no-autoscale.js
@@ -17,6 +17,7 @@ function runTestCase(container) {
rightPriceScale: {
autoScale: false,
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addAreaSeries();
diff --git a/tests/e2e/graphics/test-cases/initial-options/no-base-line.js b/tests/e2e/graphics/test-cases/initial-options/no-base-line.js
index f065085576..bb98ac5521 100644
--- a/tests/e2e/graphics/test-cases/initial-options/no-base-line.js
+++ b/tests/e2e/graphics/test-cases/initial-options/no-base-line.js
@@ -18,6 +18,7 @@ function runTestCase(container) {
rightPriceScale: {
mode: LightweightCharts.PriceScaleMode.Percentage,
},
+ layout: { attributionLogo: false },
});
const firstSeries = chart.addLineSeries({
diff --git a/tests/e2e/graphics/test-cases/initial-options/no-price-line.js b/tests/e2e/graphics/test-cases/initial-options/no-price-line.js
index 45d36a428a..3d85ff03dd 100644
--- a/tests/e2e/graphics/test-cases/initial-options/no-price-line.js
+++ b/tests/e2e/graphics/test-cases/initial-options/no-price-line.js
@@ -18,6 +18,7 @@ function runTestCase(container) {
rightPriceScale: {
mode: LightweightCharts.PriceScaleMode.Percentage,
},
+ layout: { attributionLogo: false },
});
const firstSeries = chart.addLineSeries({
diff --git a/tests/e2e/graphics/test-cases/initial-options/no-price-scale.js b/tests/e2e/graphics/test-cases/initial-options/no-price-scale.js
index 6b92d4d774..66d2386872 100644
--- a/tests/e2e/graphics/test-cases/initial-options/no-price-scale.js
+++ b/tests/e2e/graphics/test-cases/initial-options/no-price-scale.js
@@ -17,6 +17,7 @@ function runTestCase(container) {
const chart = window.chart = LightweightCharts.createChart(container, {
rightPriceScale: { visible: false },
leftPriceScale: { visible: false },
+ layout: { attributionLogo: false },
});
const firstSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/initial-options/non-auto-scale-price-scale.js b/tests/e2e/graphics/test-cases/initial-options/non-auto-scale-price-scale.js
index efe4f71f09..7ee447b60e 100644
--- a/tests/e2e/graphics/test-cases/initial-options/non-auto-scale-price-scale.js
+++ b/tests/e2e/graphics/test-cases/initial-options/non-auto-scale-price-scale.js
@@ -17,6 +17,7 @@ function runTestCase(container) {
rightPriceScale: {
autoScale: false,
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/initial-options/price-format.js b/tests/e2e/graphics/test-cases/initial-options/price-format.js
index a78bd62fc2..0ab28d9934 100644
--- a/tests/e2e/graphics/test-cases/initial-options/price-format.js
+++ b/tests/e2e/graphics/test-cases/initial-options/price-format.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
// see issue#55
const mainSeries = chart.addLineSeries({
diff --git a/tests/e2e/graphics/test-cases/initial-options/price-line-source-default.js b/tests/e2e/graphics/test-cases/initial-options/price-line-source-default.js
index af4a3a17e5..bae9df4de4 100644
--- a/tests/e2e/graphics/test-cases/initial-options/price-line-source-default.js
+++ b/tests/e2e/graphics/test-cases/initial-options/price-line-source-default.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const series = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/initial-options/price-line-source-last-visible.js b/tests/e2e/graphics/test-cases/initial-options/price-line-source-last-visible.js
index f2dbad82c0..a309720d30 100644
--- a/tests/e2e/graphics/test-cases/initial-options/price-line-source-last-visible.js
+++ b/tests/e2e/graphics/test-cases/initial-options/price-line-source-last-visible.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const series = chart.addLineSeries({
priceLineSource: LightweightCharts.PriceLineSource.LastVisible,
diff --git a/tests/e2e/graphics/test-cases/initial-options/price-line-style.js b/tests/e2e/graphics/test-cases/initial-options/price-line-style.js
index 3530480058..5ba46e00b2 100644
--- a/tests/e2e/graphics/test-cases/initial-options/price-line-style.js
+++ b/tests/e2e/graphics/test-cases/initial-options/price-line-style.js
@@ -18,6 +18,7 @@ function runTestCase(container) {
rightPriceScale: {
mode: LightweightCharts.PriceScaleMode.Percentage,
},
+ layout: { attributionLogo: false },
});
const firstSeries = chart.addLineSeries({
diff --git a/tests/e2e/graphics/test-cases/initial-options/price-scale-entire-text-only.js b/tests/e2e/graphics/test-cases/initial-options/price-scale-entire-text-only.js
index 0558b4ad6b..dde81e2461 100644
--- a/tests/e2e/graphics/test-cases/initial-options/price-scale-entire-text-only.js
+++ b/tests/e2e/graphics/test-cases/initial-options/price-scale-entire-text-only.js
@@ -12,6 +12,7 @@ function runTestCase(container) {
timeVisible: true,
secondsVisible: true,
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/initial-options/small-candlesticks.js b/tests/e2e/graphics/test-cases/initial-options/small-candlesticks.js
index 0b3b3bc3a7..d034f66d97 100644
--- a/tests/e2e/graphics/test-cases/initial-options/small-candlesticks.js
+++ b/tests/e2e/graphics/test-cases/initial-options/small-candlesticks.js
@@ -27,6 +27,7 @@ function runTestCase(container) {
timeScale: {
barSpacing: 20,
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addCandlestickSeries({
diff --git a/tests/e2e/graphics/test-cases/initial-options/tick-marks-formatter-2.js b/tests/e2e/graphics/test-cases/initial-options/tick-marks-formatter-2.js
index 30c1712635..198fdfbe6f 100644
--- a/tests/e2e/graphics/test-cases/initial-options/tick-marks-formatter-2.js
+++ b/tests/e2e/graphics/test-cases/initial-options/tick-marks-formatter-2.js
@@ -23,6 +23,7 @@ function runTestCase(container) {
timeScale: {
tickMarkFormatter: (time, tickMarkType, locale) => time.toString(), // return time as is
},
+ layout: { attributionLogo: false },
});
const firstSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/initial-options/tick-marks-formatter.js b/tests/e2e/graphics/test-cases/initial-options/tick-marks-formatter.js
index e8205ab4dd..b871046d56 100644
--- a/tests/e2e/graphics/test-cases/initial-options/tick-marks-formatter.js
+++ b/tests/e2e/graphics/test-cases/initial-options/tick-marks-formatter.js
@@ -47,6 +47,7 @@ function runTestCase(container) {
throw new Error('unhandled tick mark type ' + tickMarkType);
},
},
+ layout: { attributionLogo: false },
});
const firstSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/initial-options/time-formatter-2.js b/tests/e2e/graphics/test-cases/initial-options/time-formatter-2.js
index 4bca045be7..ecc1d76104 100644
--- a/tests/e2e/graphics/test-cases/initial-options/time-formatter-2.js
+++ b/tests/e2e/graphics/test-cases/initial-options/time-formatter-2.js
@@ -23,6 +23,7 @@ function runTestCase(container) {
localization: {
timeFormatter: time => time, // return time as is
},
+ layout: { attributionLogo: false },
});
const firstSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/initial-options/time-formatter.js b/tests/e2e/graphics/test-cases/initial-options/time-formatter.js
index 83cc300a14..44c15109ac 100644
--- a/tests/e2e/graphics/test-cases/initial-options/time-formatter.js
+++ b/tests/e2e/graphics/test-cases/initial-options/time-formatter.js
@@ -24,6 +24,7 @@ function runTestCase(container) {
return 'ts=' + businessDayOrTimestamp;
},
},
+ layout: { attributionLogo: false },
});
const series = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/initial-options/time-scale.js b/tests/e2e/graphics/test-cases/initial-options/time-scale.js
index f061477f75..91f867128b 100644
--- a/tests/e2e/graphics/test-cases/initial-options/time-scale.js
+++ b/tests/e2e/graphics/test-cases/initial-options/time-scale.js
@@ -28,6 +28,7 @@ function runTestCase(container) {
rightOffset: 10,
barSpacing: 12,
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addCandlestickSeries();
diff --git a/tests/e2e/graphics/test-cases/initial-options/transparent-background.js b/tests/e2e/graphics/test-cases/initial-options/transparent-background.js
index dc880ba7d0..5d5b3aac41 100644
--- a/tests/e2e/graphics/test-cases/initial-options/transparent-background.js
+++ b/tests/e2e/graphics/test-cases/initial-options/transparent-background.js
@@ -20,6 +20,7 @@ function runTestCase(container) {
type: LightweightCharts.ColorType.Solid,
color: 'rgba(80, 80, 80, 0.5)',
},
+ attributionLogo: false,
},
});
diff --git a/tests/e2e/graphics/test-cases/initial-options/use-observer.js b/tests/e2e/graphics/test-cases/initial-options/use-observer.js
index 2fc2587825..ce18d6821e 100644
--- a/tests/e2e/graphics/test-cases/initial-options/use-observer.js
+++ b/tests/e2e/graphics/test-cases/initial-options/use-observer.js
@@ -28,7 +28,7 @@ function runTestCase(container) {
container.appendChild(box);
- const chart = LightweightCharts.createChart(box, { autoSize: true, ...config });
+ const chart = LightweightCharts.createChart(box, { autoSize: true, layout: { attributionLogo: false }, ...config });
const mainSeries = chart.addAreaSeries();
mainSeries.setData(generateData());
diff --git a/tests/e2e/graphics/test-cases/initial-options/watermark.js b/tests/e2e/graphics/test-cases/initial-options/watermark.js
index 55068364b1..19c135d485 100644
--- a/tests/e2e/graphics/test-cases/initial-options/watermark.js
+++ b/tests/e2e/graphics/test-cases/initial-options/watermark.js
@@ -22,6 +22,7 @@ function runTestCase(container) {
fontFamily: 'Roboto',
fontStyle: 'italic',
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addAreaSeries();
diff --git a/tests/e2e/graphics/test-cases/initial-options/zero-precision.js b/tests/e2e/graphics/test-cases/initial-options/zero-precision.js
index f225aa4a19..d62008772c 100644
--- a/tests/e2e/graphics/test-cases/initial-options/zero-precision.js
+++ b/tests/e2e/graphics/test-cases/initial-options/zero-precision.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
// see issue#59
const mainSeries = chart.addLineSeries({
diff --git a/tests/e2e/graphics/test-cases/logical-range/bars-in-gap.js b/tests/e2e/graphics/test-cases/logical-range/bars-in-gap.js
index 0cc4d7e8d8..ee39fd5937 100644
--- a/tests/e2e/graphics/test-cases/logical-range/bars-in-gap.js
+++ b/tests/e2e/graphics/test-cases/logical-range/bars-in-gap.js
@@ -14,7 +14,7 @@ function generateData(count) {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addLineSeries();
const series = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/logical-range/bars-in-range.js b/tests/e2e/graphics/test-cases/logical-range/bars-in-range.js
index 946679e5dd..8d3a47345c 100644
--- a/tests/e2e/graphics/test-cases/logical-range/bars-in-range.js
+++ b/tests/e2e/graphics/test-cases/logical-range/bars-in-range.js
@@ -14,7 +14,7 @@ function generateData(count) {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const series = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/logical-range/subscribe-visible-logical-range-change.js b/tests/e2e/graphics/test-cases/logical-range/subscribe-visible-logical-range-change.js
index 980385d310..4f313e960d 100644
--- a/tests/e2e/graphics/test-cases/logical-range/subscribe-visible-logical-range-change.js
+++ b/tests/e2e/graphics/test-cases/logical-range/subscribe-visible-logical-range-change.js
@@ -14,7 +14,7 @@ function generateData(count) {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const series = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/months-chart.js b/tests/e2e/graphics/test-cases/months-chart.js
index e51b0f9673..33c82c1fd8 100644
--- a/tests/e2e/graphics/test-cases/months-chart.js
+++ b/tests/e2e/graphics/test-cases/months-chart.js
@@ -14,7 +14,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const firstSeries = chart.addLineSeries();
firstSeries.setData(generateData());
diff --git a/tests/e2e/graphics/test-cases/plugins/autoscaling.js b/tests/e2e/graphics/test-cases/plugins/autoscaling.js
index a831849636..8f66309c98 100644
--- a/tests/e2e/graphics/test-cases/plugins/autoscaling.js
+++ b/tests/e2e/graphics/test-cases/plugins/autoscaling.js
@@ -199,7 +199,7 @@ class BandsIndicator extends PluginBase {
}
function runTestCase(container) {
- const chart = (window.chart = LightweightCharts.createChart(container));
+ const chart = (window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } }));
const mainSeries = chart.addLineSeries();
const data = generateData();
mainSeries.setData(data);
diff --git a/tests/e2e/graphics/test-cases/plugins/axis-labels.js b/tests/e2e/graphics/test-cases/plugins/axis-labels.js
index 4d97bdf710..3a6b73b154 100644
--- a/tests/e2e/graphics/test-cases/plugins/axis-labels.js
+++ b/tests/e2e/graphics/test-cases/plugins/axis-labels.js
@@ -48,7 +48,7 @@ class TestPlugin {
}
function runTestCase(container) {
- const chart = (window.chart = LightweightCharts.createChart(container));
+ const chart = (window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } }));
const mainSeries = chart.addLineSeries();
mainSeries.setData(generateData());
mainSeries.attachPrimitive(new TestPlugin());
diff --git a/tests/e2e/graphics/test-cases/plugins/basic.js b/tests/e2e/graphics/test-cases/plugins/basic.js
index 3674eff79f..a20253e795 100644
--- a/tests/e2e/graphics/test-cases/plugins/basic.js
+++ b/tests/e2e/graphics/test-cases/plugins/basic.js
@@ -413,7 +413,7 @@ class AnchoredText {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
chart.timeScale().applyOptions({
barSpacing: 50,
diff --git a/tests/e2e/graphics/test-cases/plugins/custom-series.js b/tests/e2e/graphics/test-cases/plugins/custom-series.js
index 7be5370237..2935fabd2f 100644
--- a/tests/e2e/graphics/test-cases/plugins/custom-series.js
+++ b/tests/e2e/graphics/test-cases/plugins/custom-series.js
@@ -288,7 +288,7 @@ class WhiskerBoxSeries {
}
function runTestCase(container) {
- const chart = (window.chart = LightweightCharts.createChart(container));
+ const chart = (window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } }));
const customSeriesView = new WhiskerBoxSeries();
const myCustomSeries = chart.addCustomSeries(customSeriesView, {
diff --git a/tests/e2e/graphics/test-cases/plugins/layer-bottom.js b/tests/e2e/graphics/test-cases/plugins/layer-bottom.js
index 725d49a1dd..eba6498c3d 100644
--- a/tests/e2e/graphics/test-cases/plugins/layer-bottom.js
+++ b/tests/e2e/graphics/test-cases/plugins/layer-bottom.js
@@ -79,7 +79,7 @@ class TestPlugin {
}
function runTestCase(container) {
- const chart = (window.chart = LightweightCharts.createChart(container));
+ const chart = (window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } }));
const mainSeries = chart.addLineSeries();
mainSeries.setData(generateData());
mainSeries.attachPrimitive(new TestPlugin());
diff --git a/tests/e2e/graphics/test-cases/plugins/layer-normal.js b/tests/e2e/graphics/test-cases/plugins/layer-normal.js
index 4cb81f24ca..33d71edcd3 100644
--- a/tests/e2e/graphics/test-cases/plugins/layer-normal.js
+++ b/tests/e2e/graphics/test-cases/plugins/layer-normal.js
@@ -79,7 +79,7 @@ class TestPlugin {
}
function runTestCase(container) {
- const chart = (window.chart = LightweightCharts.createChart(container));
+ const chart = (window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } }));
const mainSeries = chart.addLineSeries();
mainSeries.setData(generateData());
mainSeries.attachPrimitive(new TestPlugin());
diff --git a/tests/e2e/graphics/test-cases/plugins/layer-top.js b/tests/e2e/graphics/test-cases/plugins/layer-top.js
index 7d3ac57a88..8759e13e20 100644
--- a/tests/e2e/graphics/test-cases/plugins/layer-top.js
+++ b/tests/e2e/graphics/test-cases/plugins/layer-top.js
@@ -79,7 +79,7 @@ class TestPlugin {
}
function runTestCase(container) {
- const chart = (window.chart = LightweightCharts.createChart(container));
+ const chart = (window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } }));
const mainSeries = chart.addLineSeries();
mainSeries.setData(generateData());
mainSeries.attachPrimitive(new TestPlugin());
diff --git a/tests/e2e/graphics/test-cases/plugins/layers.js b/tests/e2e/graphics/test-cases/plugins/layers.js
index ab246b4bb4..378a98882b 100644
--- a/tests/e2e/graphics/test-cases/plugins/layers.js
+++ b/tests/e2e/graphics/test-cases/plugins/layers.js
@@ -83,7 +83,7 @@ class TestPlugin {
}
function runTestCase(container) {
- const chart = (window.chart = LightweightCharts.createChart(container));
+ const chart = (window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } }));
const mainSeries = chart.addLineSeries();
mainSeries.setData(generateData());
mainSeries.attachPrimitive(new TestPlugin());
diff --git a/tests/e2e/graphics/test-cases/plugins/panes.js b/tests/e2e/graphics/test-cases/plugins/panes.js
index 6dc1fc8afd..cc1d533d5a 100644
--- a/tests/e2e/graphics/test-cases/plugins/panes.js
+++ b/tests/e2e/graphics/test-cases/plugins/panes.js
@@ -131,7 +131,7 @@ class TestPlugin {
}
function runTestCase(container) {
- const chart = (window.chart = LightweightCharts.createChart(container));
+ const chart = (window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } }));
const mainSeries = chart.addLineSeries();
mainSeries.setData(generateData());
mainSeries.attachPrimitive(new TestPlugin());
diff --git a/tests/e2e/graphics/test-cases/price-line-label-colors.js b/tests/e2e/graphics/test-cases/price-line-label-colors.js
index 7b194e7f47..c362ba0290 100644
--- a/tests/e2e/graphics/test-cases/price-line-label-colors.js
+++ b/tests/e2e/graphics/test-cases/price-line-label-colors.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = (window.chart = LightweightCharts.createChart(container));
+ const chart = (window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } }));
const mainSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/price-scale/logarithmic-scale-on-extra-small-values.js b/tests/e2e/graphics/test-cases/price-scale/logarithmic-scale-on-extra-small-values.js
index 1816bf3155..11f13d8a97 100644
--- a/tests/e2e/graphics/test-cases/price-scale/logarithmic-scale-on-extra-small-values.js
+++ b/tests/e2e/graphics/test-cases/price-scale/logarithmic-scale-on-extra-small-values.js
@@ -15,6 +15,7 @@ function runTestCase(container) {
rightPriceScale: {
mode: LightweightCharts.PriceScaleMode.Logarithmic,
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addAreaSeries({
diff --git a/tests/e2e/graphics/test-cases/price-scale/logarithmic-scale-on-small-values.js b/tests/e2e/graphics/test-cases/price-scale/logarithmic-scale-on-small-values.js
index f4f752a402..d985e08243 100644
--- a/tests/e2e/graphics/test-cases/price-scale/logarithmic-scale-on-small-values.js
+++ b/tests/e2e/graphics/test-cases/price-scale/logarithmic-scale-on-small-values.js
@@ -15,6 +15,7 @@ function runTestCase(container) {
rightPriceScale: {
mode: LightweightCharts.PriceScaleMode.Logarithmic,
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addAreaSeries({
diff --git a/tests/e2e/graphics/test-cases/price-scale/minimum-scale-dimensions.js b/tests/e2e/graphics/test-cases/price-scale/minimum-scale-dimensions.js
index d2805583bf..1d273964a0 100644
--- a/tests/e2e/graphics/test-cases/price-scale/minimum-scale-dimensions.js
+++ b/tests/e2e/graphics/test-cases/price-scale/minimum-scale-dimensions.js
@@ -28,6 +28,7 @@ function runTestCase(container) {
timeScale: {
minimumHeight: 50,
},
+ layout: { attributionLogo: false },
};
const chart = (window.chart = LightweightCharts.createChart(
diff --git a/tests/e2e/graphics/test-cases/price-scale/no-empty-mark-on-price-scale.js b/tests/e2e/graphics/test-cases/price-scale/no-empty-mark-on-price-scale.js
index a2257f524b..d17e4a632a 100644
--- a/tests/e2e/graphics/test-cases/price-scale/no-empty-mark-on-price-scale.js
+++ b/tests/e2e/graphics/test-cases/price-scale/no-empty-mark-on-price-scale.js
@@ -1,5 +1,5 @@
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const series = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/price-scale/percentage-first-value-invisible-series.js b/tests/e2e/graphics/test-cases/price-scale/percentage-first-value-invisible-series.js
index 022c63c1f5..49fe504d16 100644
--- a/tests/e2e/graphics/test-cases/price-scale/percentage-first-value-invisible-series.js
+++ b/tests/e2e/graphics/test-cases/price-scale/percentage-first-value-invisible-series.js
@@ -7,6 +7,7 @@ function runTestCase(container) {
layout: {
textColor: 'black',
background: { type: 'solid', color: 'white' },
+ attributionLogo: false,
},
};
const chart = (window.chart = LightweightCharts.createChart(
diff --git a/tests/e2e/graphics/test-cases/price-scale/series-label-is-fully-visible-at-edge-of-scale.js b/tests/e2e/graphics/test-cases/price-scale/series-label-is-fully-visible-at-edge-of-scale.js
index af82aa9bdd..52642d8c45 100644
--- a/tests/e2e/graphics/test-cases/price-scale/series-label-is-fully-visible-at-edge-of-scale.js
+++ b/tests/e2e/graphics/test-cases/price-scale/series-label-is-fully-visible-at-edge-of-scale.js
@@ -1,5 +1,5 @@
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const areaSeries = chart.addAreaSeries({
symbol: 'AAPL',
diff --git a/tests/e2e/graphics/test-cases/remove-series-extended-time-scale.js b/tests/e2e/graphics/test-cases/remove-series-extended-time-scale.js
index 7b9d756acb..acb903203f 100644
--- a/tests/e2e/graphics/test-cases/remove-series-extended-time-scale.js
+++ b/tests/e2e/graphics/test-cases/remove-series-extended-time-scale.js
@@ -13,7 +13,7 @@ function generateData(step, startDay) {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addLineSeries({
color: '#0000ff',
diff --git a/tests/e2e/graphics/test-cases/rtl-page.js b/tests/e2e/graphics/test-cases/rtl-page.js
index c8ec38efd4..1da9d06ce6 100644
--- a/tests/e2e/graphics/test-cases/rtl-page.js
+++ b/tests/e2e/graphics/test-cases/rtl-page.js
@@ -15,7 +15,7 @@ function generateData() {
function runTestCase(container) {
window.document.dir = 'rtl';
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/series-markers/marker-in-gap-from-left.js b/tests/e2e/graphics/test-cases/series-markers/marker-in-gap-from-left.js
index 88d760ca1e..e62d6978e3 100644
--- a/tests/e2e/graphics/test-cases/series-markers/marker-in-gap-from-left.js
+++ b/tests/e2e/graphics/test-cases/series-markers/marker-in-gap-from-left.js
@@ -1,5 +1,5 @@
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const lineSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/series-markers/marker-in-gap.js b/tests/e2e/graphics/test-cases/series-markers/marker-in-gap.js
index 723f368051..38549f3be7 100644
--- a/tests/e2e/graphics/test-cases/series-markers/marker-in-gap.js
+++ b/tests/e2e/graphics/test-cases/series-markers/marker-in-gap.js
@@ -1,5 +1,5 @@
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const lineSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/series-markers/series-arrow-markers.js b/tests/e2e/graphics/test-cases/series-markers/series-arrow-markers.js
index dc8e6a5fd3..7025fa5c16 100644
--- a/tests/e2e/graphics/test-cases/series-markers/series-arrow-markers.js
+++ b/tests/e2e/graphics/test-cases/series-markers/series-arrow-markers.js
@@ -23,7 +23,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addBarSeries();
diff --git a/tests/e2e/graphics/test-cases/series-markers/series-circle-markers.js b/tests/e2e/graphics/test-cases/series-markers/series-circle-markers.js
index 123b9b625e..0aced988b6 100644
--- a/tests/e2e/graphics/test-cases/series-markers/series-circle-markers.js
+++ b/tests/e2e/graphics/test-cases/series-markers/series-circle-markers.js
@@ -23,7 +23,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addBarSeries();
diff --git a/tests/e2e/graphics/test-cases/series-markers/series-markers-aligned.js b/tests/e2e/graphics/test-cases/series-markers/series-markers-aligned.js
index e5f38600e7..23101b0d68 100644
--- a/tests/e2e/graphics/test-cases/series-markers/series-markers-aligned.js
+++ b/tests/e2e/graphics/test-cases/series-markers/series-markers-aligned.js
@@ -1,5 +1,5 @@
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const line = chart.addLineSeries();
line.setData([
diff --git a/tests/e2e/graphics/test-cases/series-markers/series-markers-max-bar-spacing.js b/tests/e2e/graphics/test-cases/series-markers/series-markers-max-bar-spacing.js
index 8b4beeb4aa..167c205a2c 100644
--- a/tests/e2e/graphics/test-cases/series-markers/series-markers-max-bar-spacing.js
+++ b/tests/e2e/graphics/test-cases/series-markers/series-markers-max-bar-spacing.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/series-markers/series-markers-min-bar-spacing.js b/tests/e2e/graphics/test-cases/series-markers/series-markers-min-bar-spacing.js
index d3dbf1b598..6b253fc623 100644
--- a/tests/e2e/graphics/test-cases/series-markers/series-markers-min-bar-spacing.js
+++ b/tests/e2e/graphics/test-cases/series-markers/series-markers-min-bar-spacing.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/series-markers/series-markers-object-business-day.js b/tests/e2e/graphics/test-cases/series-markers/series-markers-object-business-day.js
index a7951dc03d..faf7f97577 100644
--- a/tests/e2e/graphics/test-cases/series-markers/series-markers-object-business-day.js
+++ b/tests/e2e/graphics/test-cases/series-markers/series-markers-object-business-day.js
@@ -1,5 +1,5 @@
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const line = chart.addLineSeries();
line.setData([
diff --git a/tests/e2e/graphics/test-cases/series-markers/series-markers-out-of-visible-range.js b/tests/e2e/graphics/test-cases/series-markers/series-markers-out-of-visible-range.js
index 8b9e2e4405..6e467f43c2 100644
--- a/tests/e2e/graphics/test-cases/series-markers/series-markers-out-of-visible-range.js
+++ b/tests/e2e/graphics/test-cases/series-markers/series-markers-out-of-visible-range.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/series-markers/series-markers-re-aligned.js b/tests/e2e/graphics/test-cases/series-markers/series-markers-re-aligned.js
index 8755dcfda3..c731e063e2 100644
--- a/tests/e2e/graphics/test-cases/series-markers/series-markers-re-aligned.js
+++ b/tests/e2e/graphics/test-cases/series-markers/series-markers-re-aligned.js
@@ -1,5 +1,5 @@
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const line = chart.addLineSeries();
line.setData([
diff --git a/tests/e2e/graphics/test-cases/series-markers/series-markers-update.js b/tests/e2e/graphics/test-cases/series-markers/series-markers-update.js
index f1311c5762..8be06811ff 100644
--- a/tests/e2e/graphics/test-cases/series-markers/series-markers-update.js
+++ b/tests/e2e/graphics/test-cases/series-markers/series-markers-update.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/series-markers/series-markers-with-text.js b/tests/e2e/graphics/test-cases/series-markers/series-markers-with-text.js
index 2d2861eacd..f8a099becf 100644
--- a/tests/e2e/graphics/test-cases/series-markers/series-markers-with-text.js
+++ b/tests/e2e/graphics/test-cases/series-markers/series-markers-with-text.js
@@ -28,6 +28,7 @@ function runTestCase(container) {
{
layout: {
fontSize: 20,
+ attributionLogo: false,
},
}
);
diff --git a/tests/e2e/graphics/test-cases/series-markers/series-square-markers.js b/tests/e2e/graphics/test-cases/series-markers/series-square-markers.js
index e11a9c52fa..8585b7bd89 100644
--- a/tests/e2e/graphics/test-cases/series-markers/series-square-markers.js
+++ b/tests/e2e/graphics/test-cases/series-markers/series-square-markers.js
@@ -23,7 +23,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addBarSeries();
diff --git a/tests/e2e/graphics/test-cases/series-markers/set-markers-before-series-data.js b/tests/e2e/graphics/test-cases/series-markers/set-markers-before-series-data.js
index 57f20c8c21..18f4a7a1ef 100644
--- a/tests/e2e/graphics/test-cases/series-markers/set-markers-before-series-data.js
+++ b/tests/e2e/graphics/test-cases/series-markers/set-markers-before-series-data.js
@@ -1,5 +1,5 @@
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/series/2-baseline-series.js b/tests/e2e/graphics/test-cases/series/2-baseline-series.js
index 9e55616237..f0e5742321 100644
--- a/tests/e2e/graphics/test-cases/series/2-baseline-series.js
+++ b/tests/e2e/graphics/test-cases/series/2-baseline-series.js
@@ -40,7 +40,7 @@ function generateData(valueOffset) {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const firstSeries = chart.addBaselineSeries({
baseValue: {
diff --git a/tests/e2e/graphics/test-cases/series/2-points-line-series.js b/tests/e2e/graphics/test-cases/series/2-points-line-series.js
index fa2bd31529..2f08e8d5f4 100644
--- a/tests/e2e/graphics/test-cases/series/2-points-line-series.js
+++ b/tests/e2e/graphics/test-cases/series/2-points-line-series.js
@@ -23,7 +23,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addBarSeries();
const lineSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/series/add-series-after-volume.js b/tests/e2e/graphics/test-cases/series/add-series-after-volume.js
index 38ea32ae51..b5465449a0 100644
--- a/tests/e2e/graphics/test-cases/series/add-series-after-volume.js
+++ b/tests/e2e/graphics/test-cases/series/add-series-after-volume.js
@@ -2,7 +2,7 @@
// https://github.com/tradingview/lightweight-charts/issues/110
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const areaSeries = chart.addAreaSeries(); // or any other series type
const volumeSeries = chart.addHistogramSeries();
diff --git a/tests/e2e/graphics/test-cases/series/alternate-histogram-items-with-gaps.js b/tests/e2e/graphics/test-cases/series/alternate-histogram-items-with-gaps.js
index ad795fbf1c..08ddbe8e48 100644
--- a/tests/e2e/graphics/test-cases/series/alternate-histogram-items-with-gaps.js
+++ b/tests/e2e/graphics/test-cases/series/alternate-histogram-items-with-gaps.js
@@ -19,6 +19,7 @@ function runTestCase(container) {
timeScale: {
barSpacing: 100,
},
+ layout: { attributionLogo: false },
});
const lineSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/series/area-inverted-after-delay.js b/tests/e2e/graphics/test-cases/series/area-inverted-after-delay.js
index 81ceef9ced..cc33d018d5 100644
--- a/tests/e2e/graphics/test-cases/series/area-inverted-after-delay.js
+++ b/tests/e2e/graphics/test-cases/series/area-inverted-after-delay.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addAreaSeries({
invertFilledArea: false,
diff --git a/tests/e2e/graphics/test-cases/series/area-inverted.js b/tests/e2e/graphics/test-cases/series/area-inverted.js
index 4c49ef7361..680d2b4576 100644
--- a/tests/e2e/graphics/test-cases/series/area-inverted.js
+++ b/tests/e2e/graphics/test-cases/series/area-inverted.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addAreaSeries({
invertFilledArea: true,
diff --git a/tests/e2e/graphics/test-cases/series/area-out-of-viewport.js b/tests/e2e/graphics/test-cases/series/area-out-of-viewport.js
index 251e7ad34f..d7a82e1965 100644
--- a/tests/e2e/graphics/test-cases/series/area-out-of-viewport.js
+++ b/tests/e2e/graphics/test-cases/series/area-out-of-viewport.js
@@ -1,5 +1,5 @@
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const areaSeries = chart.addAreaSeries();
areaSeries.setData([
diff --git a/tests/e2e/graphics/test-cases/series/area-with-custom-colors.js b/tests/e2e/graphics/test-cases/series/area-with-custom-colors.js
index f6a9751be6..2b2ce84ac1 100644
--- a/tests/e2e/graphics/test-cases/series/area-with-custom-colors.js
+++ b/tests/e2e/graphics/test-cases/series/area-with-custom-colors.js
@@ -26,7 +26,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addAreaSeries();
diff --git a/tests/e2e/graphics/test-cases/series/area-with-point-markers.js b/tests/e2e/graphics/test-cases/series/area-with-point-markers.js
index c50aa59ee2..0a711cb7c0 100644
--- a/tests/e2e/graphics/test-cases/series/area-with-point-markers.js
+++ b/tests/e2e/graphics/test-cases/series/area-with-point-markers.js
@@ -17,6 +17,7 @@ function runTestCase(container) {
timeScale: {
barSpacing: 12,
},
+ layout: { attributionLogo: false },
}));
const mainSeries = chart.addAreaSeries({ pointMarkersVisible: true });
diff --git a/tests/e2e/graphics/test-cases/series/area-with-whitespaces.js b/tests/e2e/graphics/test-cases/series/area-with-whitespaces.js
index 0122d42a77..2b99ca2320 100644
--- a/tests/e2e/graphics/test-cases/series/area-with-whitespaces.js
+++ b/tests/e2e/graphics/test-cases/series/area-with-whitespaces.js
@@ -17,7 +17,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addAreaSeries();
diff --git a/tests/e2e/graphics/test-cases/series/area.js b/tests/e2e/graphics/test-cases/series/area.js
index 2af6cc3f8e..e8962cb1e2 100644
--- a/tests/e2e/graphics/test-cases/series/area.js
+++ b/tests/e2e/graphics/test-cases/series/area.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addAreaSeries();
diff --git a/tests/e2e/graphics/test-cases/series/bar-semitransparent.js b/tests/e2e/graphics/test-cases/series/bar-semitransparent.js
index 7436ef716b..1b1156f4a3 100644
--- a/tests/e2e/graphics/test-cases/series/bar-semitransparent.js
+++ b/tests/e2e/graphics/test-cases/series/bar-semitransparent.js
@@ -23,7 +23,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addBarSeries({
upColor: 'rgba(0, 250, 0, 0.3)',
diff --git a/tests/e2e/graphics/test-cases/series/bar-with-custom-colors.js b/tests/e2e/graphics/test-cases/series/bar-with-custom-colors.js
index 716ccacd5d..ff6a0f76c2 100644
--- a/tests/e2e/graphics/test-cases/series/bar-with-custom-colors.js
+++ b/tests/e2e/graphics/test-cases/series/bar-with-custom-colors.js
@@ -27,7 +27,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addBarSeries();
diff --git a/tests/e2e/graphics/test-cases/series/bar.js b/tests/e2e/graphics/test-cases/series/bar.js
index 23585510e7..8368496b9e 100644
--- a/tests/e2e/graphics/test-cases/series/bar.js
+++ b/tests/e2e/graphics/test-cases/series/bar.js
@@ -23,7 +23,7 @@ function generateData(startValue) {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addBarSeries();
diff --git a/tests/e2e/graphics/test-cases/series/bars-with-whitespaces.js b/tests/e2e/graphics/test-cases/series/bars-with-whitespaces.js
index 8cc2ea6676..03984ebf40 100644
--- a/tests/e2e/graphics/test-cases/series/bars-with-whitespaces.js
+++ b/tests/e2e/graphics/test-cases/series/bars-with-whitespaces.js
@@ -25,7 +25,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addBarSeries();
diff --git a/tests/e2e/graphics/test-cases/series/baseline-with-custom-colors.js b/tests/e2e/graphics/test-cases/series/baseline-with-custom-colors.js
index 784ab3c1a8..cbd3f2565a 100644
--- a/tests/e2e/graphics/test-cases/series/baseline-with-custom-colors.js
+++ b/tests/e2e/graphics/test-cases/series/baseline-with-custom-colors.js
@@ -35,7 +35,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addBaselineSeries({ baseValue: { type: 'price', price: 88 } });
diff --git a/tests/e2e/graphics/test-cases/series/baseline-with-point-markers.js b/tests/e2e/graphics/test-cases/series/baseline-with-point-markers.js
index c2fec958e5..8fcaa2e33d 100644
--- a/tests/e2e/graphics/test-cases/series/baseline-with-point-markers.js
+++ b/tests/e2e/graphics/test-cases/series/baseline-with-point-markers.js
@@ -40,7 +40,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addBaselineSeries({
lineWidth: 1,
diff --git a/tests/e2e/graphics/test-cases/series/baseline.js b/tests/e2e/graphics/test-cases/series/baseline.js
index 570d0083da..c1a735eed8 100644
--- a/tests/e2e/graphics/test-cases/series/baseline.js
+++ b/tests/e2e/graphics/test-cases/series/baseline.js
@@ -40,7 +40,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addBaselineSeries({
lineWidth: 1,
diff --git a/tests/e2e/graphics/test-cases/series/candlesticks-semitransparent.js b/tests/e2e/graphics/test-cases/series/candlesticks-semitransparent.js
index 688b541ac2..f64db809f6 100644
--- a/tests/e2e/graphics/test-cases/series/candlesticks-semitransparent.js
+++ b/tests/e2e/graphics/test-cases/series/candlesticks-semitransparent.js
@@ -23,7 +23,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addCandlestickSeries({
borderColor: 'rgba(0, 0, 255, 0.2)',
diff --git a/tests/e2e/graphics/test-cases/series/candlesticks-with-custom-colors.js b/tests/e2e/graphics/test-cases/series/candlesticks-with-custom-colors.js
index c09f64dac8..1bed6c1918 100644
--- a/tests/e2e/graphics/test-cases/series/candlesticks-with-custom-colors.js
+++ b/tests/e2e/graphics/test-cases/series/candlesticks-with-custom-colors.js
@@ -29,7 +29,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addCandlestickSeries();
diff --git a/tests/e2e/graphics/test-cases/series/candlesticks-with-huge-range.js b/tests/e2e/graphics/test-cases/series/candlesticks-with-huge-range.js
index 569027543d..c325ba6dd6 100644
--- a/tests/e2e/graphics/test-cases/series/candlesticks-with-huge-range.js
+++ b/tests/e2e/graphics/test-cases/series/candlesticks-with-huge-range.js
@@ -23,7 +23,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addCandlestickSeries();
diff --git a/tests/e2e/graphics/test-cases/series/candlesticks.js b/tests/e2e/graphics/test-cases/series/candlesticks.js
index d7d1c3e262..ab9628af1b 100644
--- a/tests/e2e/graphics/test-cases/series/candlesticks.js
+++ b/tests/e2e/graphics/test-cases/series/candlesticks.js
@@ -23,7 +23,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addCandlestickSeries();
diff --git a/tests/e2e/graphics/test-cases/series/candlestics-with-whitespaces.js b/tests/e2e/graphics/test-cases/series/candlestics-with-whitespaces.js
index d18da12306..bad680418f 100644
--- a/tests/e2e/graphics/test-cases/series/candlestics-with-whitespaces.js
+++ b/tests/e2e/graphics/test-cases/series/candlestics-with-whitespaces.js
@@ -25,7 +25,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addCandlestickSeries();
diff --git a/tests/e2e/graphics/test-cases/series/change-colors-via-set-data-in-histogram.js b/tests/e2e/graphics/test-cases/series/change-colors-via-set-data-in-histogram.js
index 961c6cd253..53f9c81699 100644
--- a/tests/e2e/graphics/test-cases/series/change-colors-via-set-data-in-histogram.js
+++ b/tests/e2e/graphics/test-cases/series/change-colors-via-set-data-in-histogram.js
@@ -14,7 +14,7 @@ function generateData(colors) {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addHistogramSeries();
diff --git a/tests/e2e/graphics/test-cases/series/crosshair-marker-border-width.js b/tests/e2e/graphics/test-cases/series/crosshair-marker-border-width.js
index 2b5acb2fa3..62e1ea36e4 100644
--- a/tests/e2e/graphics/test-cases/series/crosshair-marker-border-width.js
+++ b/tests/e2e/graphics/test-cases/series/crosshair-marker-border-width.js
@@ -16,7 +16,7 @@ function generateData(step) {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const areaSeries = chart.addAreaSeries({
crosshairMarkerBorderWidth: 5,
diff --git a/tests/e2e/graphics/test-cases/series/crosshair-marker-colors-change-to-default.js b/tests/e2e/graphics/test-cases/series/crosshair-marker-colors-change-to-default.js
index 4c491b716e..84e317ccab 100644
--- a/tests/e2e/graphics/test-cases/series/crosshair-marker-colors-change-to-default.js
+++ b/tests/e2e/graphics/test-cases/series/crosshair-marker-colors-change-to-default.js
@@ -16,7 +16,7 @@ function generateData(step) {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const areaSeries = chart.addAreaSeries({
crosshairMarkerBorderColor: '#ff00ff',
diff --git a/tests/e2e/graphics/test-cases/series/crosshair-marker-colors-change.js b/tests/e2e/graphics/test-cases/series/crosshair-marker-colors-change.js
index cae8a5633c..6aacde4349 100644
--- a/tests/e2e/graphics/test-cases/series/crosshair-marker-colors-change.js
+++ b/tests/e2e/graphics/test-cases/series/crosshair-marker-colors-change.js
@@ -16,7 +16,7 @@ function generateData(step) {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const areaSeries = chart.addAreaSeries();
const lineSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/series/crosshair-marker-colors.js b/tests/e2e/graphics/test-cases/series/crosshair-marker-colors.js
index ac90cfdde8..fdae465bf7 100644
--- a/tests/e2e/graphics/test-cases/series/crosshair-marker-colors.js
+++ b/tests/e2e/graphics/test-cases/series/crosshair-marker-colors.js
@@ -16,7 +16,7 @@ function generateData(step) {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const areaSeries = chart.addAreaSeries({
crosshairMarkerBorderColor: 'yellow',
diff --git a/tests/e2e/graphics/test-cases/series/curved-line-2-points.js b/tests/e2e/graphics/test-cases/series/curved-line-2-points.js
index 6c3a6567b6..f8b59cd1d3 100644
--- a/tests/e2e/graphics/test-cases/series/curved-line-2-points.js
+++ b/tests/e2e/graphics/test-cases/series/curved-line-2-points.js
@@ -1,5 +1,5 @@
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const lineSeries = chart.addLineSeries({
lineType: LightweightCharts.LineType.Curved,
diff --git a/tests/e2e/graphics/test-cases/series/curved-line-3-points.js b/tests/e2e/graphics/test-cases/series/curved-line-3-points.js
index 36f9c4dc65..95f8b3b30e 100644
--- a/tests/e2e/graphics/test-cases/series/curved-line-3-points.js
+++ b/tests/e2e/graphics/test-cases/series/curved-line-3-points.js
@@ -1,5 +1,5 @@
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const lineSeries = chart.addLineSeries({
lineType: LightweightCharts.LineType.Curved,
diff --git a/tests/e2e/graphics/test-cases/series/curved-line-area.js b/tests/e2e/graphics/test-cases/series/curved-line-area.js
index 1667f060da..47ad01ecce 100644
--- a/tests/e2e/graphics/test-cases/series/curved-line-area.js
+++ b/tests/e2e/graphics/test-cases/series/curved-line-area.js
@@ -15,7 +15,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const areaSeries = chart.addAreaSeries({
lineType: LightweightCharts.LineType.Curved,
diff --git a/tests/e2e/graphics/test-cases/series/curved-line-baseline.js b/tests/e2e/graphics/test-cases/series/curved-line-baseline.js
index afa7a12c9b..93ce0da62e 100644
--- a/tests/e2e/graphics/test-cases/series/curved-line-baseline.js
+++ b/tests/e2e/graphics/test-cases/series/curved-line-baseline.js
@@ -15,7 +15,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const baselineSeries = chart.addBaselineSeries({
lineType: LightweightCharts.LineType.Curved,
diff --git a/tests/e2e/graphics/test-cases/series/curved-line-colored-items.js b/tests/e2e/graphics/test-cases/series/curved-line-colored-items.js
index c184059ac1..b24cab8e31 100644
--- a/tests/e2e/graphics/test-cases/series/curved-line-colored-items.js
+++ b/tests/e2e/graphics/test-cases/series/curved-line-colored-items.js
@@ -18,7 +18,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const lineSeries = chart.addLineSeries({
lineType: LightweightCharts.LineType.Curved,
diff --git a/tests/e2e/graphics/test-cases/series/hidden-series-and-autoscale.js b/tests/e2e/graphics/test-cases/series/hidden-series-and-autoscale.js
index 77eabee7ef..446066a2c1 100644
--- a/tests/e2e/graphics/test-cases/series/hidden-series-and-autoscale.js
+++ b/tests/e2e/graphics/test-cases/series/hidden-series-and-autoscale.js
@@ -14,7 +14,7 @@ function generateData(mul = 1) {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const lineSeries = chart.addLineSeries({ visible: false });
lineSeries.setData(generateData());
diff --git a/tests/e2e/graphics/test-cases/series/histogram-add-new-color-on-update.js b/tests/e2e/graphics/test-cases/series/histogram-add-new-color-on-update.js
index 039f9f9a7b..c67ad4dbbf 100644
--- a/tests/e2e/graphics/test-cases/series/histogram-add-new-color-on-update.js
+++ b/tests/e2e/graphics/test-cases/series/histogram-add-new-color-on-update.js
@@ -24,7 +24,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addHistogramSeries({
color: '#ff0000',
diff --git a/tests/e2e/graphics/test-cases/series/histogram-change-default-color.js b/tests/e2e/graphics/test-cases/series/histogram-change-default-color.js
index cbb7351bf9..f5dbbd446e 100644
--- a/tests/e2e/graphics/test-cases/series/histogram-change-default-color.js
+++ b/tests/e2e/graphics/test-cases/series/histogram-change-default-color.js
@@ -1,5 +1,5 @@
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const series = chart.addHistogramSeries({
color: 'blue',
diff --git a/tests/e2e/graphics/test-cases/series/histogram-out-of-range.js b/tests/e2e/graphics/test-cases/series/histogram-out-of-range.js
index 73d042f6b3..a2fb7303fd 100644
--- a/tests/e2e/graphics/test-cases/series/histogram-out-of-range.js
+++ b/tests/e2e/graphics/test-cases/series/histogram-out-of-range.js
@@ -1,7 +1,7 @@
// see https://github.com/tradingview/lightweight-charts/issues/133
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const series = chart.addCandlestickSeries();
series.setData([
diff --git a/tests/e2e/graphics/test-cases/series/histogram-update-without-set-data.js b/tests/e2e/graphics/test-cases/series/histogram-update-without-set-data.js
index acd60555fa..508c3c3427 100644
--- a/tests/e2e/graphics/test-cases/series/histogram-update-without-set-data.js
+++ b/tests/e2e/graphics/test-cases/series/histogram-update-without-set-data.js
@@ -2,7 +2,7 @@
// https://github.com/tradingview/lightweight-charts/issues/110
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const areaSeries = chart.addAreaSeries();
const volumeSeries = chart.addHistogramSeries();
diff --git a/tests/e2e/graphics/test-cases/series/histogram-with-whitespaces.js b/tests/e2e/graphics/test-cases/series/histogram-with-whitespaces.js
index dbfc2b29a4..a1ab5eff60 100644
--- a/tests/e2e/graphics/test-cases/series/histogram-with-whitespaces.js
+++ b/tests/e2e/graphics/test-cases/series/histogram-with-whitespaces.js
@@ -17,7 +17,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addHistogramSeries();
diff --git a/tests/e2e/graphics/test-cases/series/histogram.js b/tests/e2e/graphics/test-cases/series/histogram.js
index be871f5586..8795706fb8 100644
--- a/tests/e2e/graphics/test-cases/series/histogram.js
+++ b/tests/e2e/graphics/test-cases/series/histogram.js
@@ -20,7 +20,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addHistogramSeries({
lineWidth: 1,
diff --git a/tests/e2e/graphics/test-cases/series/line-dotted.js b/tests/e2e/graphics/test-cases/series/line-dotted.js
index 7137310698..6f949c449e 100644
--- a/tests/e2e/graphics/test-cases/series/line-dotted.js
+++ b/tests/e2e/graphics/test-cases/series/line-dotted.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addLineSeries({
lineWidth: 1,
diff --git a/tests/e2e/graphics/test-cases/series/line-overlap.js b/tests/e2e/graphics/test-cases/series/line-overlap.js
index e0169a4c44..d574e66159 100644
--- a/tests/e2e/graphics/test-cases/series/line-overlap.js
+++ b/tests/e2e/graphics/test-cases/series/line-overlap.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addLineSeries({
lineWidth: 1,
diff --git a/tests/e2e/graphics/test-cases/series/line-series-with-point-markers-and-hidden-line.js b/tests/e2e/graphics/test-cases/series/line-series-with-point-markers-and-hidden-line.js
index 66915e7632..d32e563887 100644
--- a/tests/e2e/graphics/test-cases/series/line-series-with-point-markers-and-hidden-line.js
+++ b/tests/e2e/graphics/test-cases/series/line-series-with-point-markers-and-hidden-line.js
@@ -17,6 +17,7 @@ function runTestCase(container) {
timeScale: {
barSpacing: 12,
},
+ layout: { attributionLogo: false },
}));
const mainSeries = chart.addLineSeries({
diff --git a/tests/e2e/graphics/test-cases/series/line-with-custom-color-change-color-later.js b/tests/e2e/graphics/test-cases/series/line-with-custom-color-change-color-later.js
index 2e6cdf98fc..0e71fe3c56 100644
--- a/tests/e2e/graphics/test-cases/series/line-with-custom-color-change-color-later.js
+++ b/tests/e2e/graphics/test-cases/series/line-with-custom-color-change-color-later.js
@@ -1,5 +1,5 @@
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/series/line-with-custom-color.js b/tests/e2e/graphics/test-cases/series/line-with-custom-color.js
index 21b4782c0d..0bacecb4d6 100644
--- a/tests/e2e/graphics/test-cases/series/line-with-custom-color.js
+++ b/tests/e2e/graphics/test-cases/series/line-with-custom-color.js
@@ -1,5 +1,5 @@
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/series/line-with-point-markers.js b/tests/e2e/graphics/test-cases/series/line-with-point-markers.js
index 8b6acecc45..f28958368d 100644
--- a/tests/e2e/graphics/test-cases/series/line-with-point-markers.js
+++ b/tests/e2e/graphics/test-cases/series/line-with-point-markers.js
@@ -17,6 +17,7 @@ function runTestCase(container) {
timeScale: {
barSpacing: 12,
},
+ layout: { attributionLogo: false },
}));
const mainSeries = chart.addLineSeries({
diff --git a/tests/e2e/graphics/test-cases/series/line-with-steps-with-custom-color.js b/tests/e2e/graphics/test-cases/series/line-with-steps-with-custom-color.js
index e263ead396..dd0a236580 100644
--- a/tests/e2e/graphics/test-cases/series/line-with-steps-with-custom-color.js
+++ b/tests/e2e/graphics/test-cases/series/line-with-steps-with-custom-color.js
@@ -1,5 +1,5 @@
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addLineSeries({
lineType: LightweightCharts.LineType.WithSteps,
diff --git a/tests/e2e/graphics/test-cases/series/line-with-whitespaces.js b/tests/e2e/graphics/test-cases/series/line-with-whitespaces.js
index f7cd6a5a0d..03be60018e 100644
--- a/tests/e2e/graphics/test-cases/series/line-with-whitespaces.js
+++ b/tests/e2e/graphics/test-cases/series/line-with-whitespaces.js
@@ -17,7 +17,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/series/line.js b/tests/e2e/graphics/test-cases/series/line.js
index ef7aca38e1..0f60a313ed 100644
--- a/tests/e2e/graphics/test-cases/series/line.js
+++ b/tests/e2e/graphics/test-cases/series/line.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addLineSeries({
lineWidth: 1,
diff --git a/tests/e2e/graphics/test-cases/series/no-last-price-animation-on-adding-whitespace.js b/tests/e2e/graphics/test-cases/series/no-last-price-animation-on-adding-whitespace.js
index 7c726ec578..41a212bd83 100644
--- a/tests/e2e/graphics/test-cases/series/no-last-price-animation-on-adding-whitespace.js
+++ b/tests/e2e/graphics/test-cases/series/no-last-price-animation-on-adding-whitespace.js
@@ -1,5 +1,5 @@
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const series = chart.addLineSeries({
lastPriceAnimation: LightweightCharts.LastPriceAnimationMode.OnDataUpdate,
diff --git a/tests/e2e/graphics/test-cases/series/no-last-price-animation-on-first-set-data-after-reseting-data.js b/tests/e2e/graphics/test-cases/series/no-last-price-animation-on-first-set-data-after-reseting-data.js
index 1c7f6d0771..8091973ff4 100644
--- a/tests/e2e/graphics/test-cases/series/no-last-price-animation-on-first-set-data-after-reseting-data.js
+++ b/tests/e2e/graphics/test-cases/series/no-last-price-animation-on-first-set-data-after-reseting-data.js
@@ -1,5 +1,5 @@
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const series = chart.addLineSeries({
lastPriceAnimation: LightweightCharts.LastPriceAnimationMode.OnDataUpdate,
diff --git a/tests/e2e/graphics/test-cases/series/no-last-price-animation-on-first-set-data.js b/tests/e2e/graphics/test-cases/series/no-last-price-animation-on-first-set-data.js
index d467005349..5f180aa251 100644
--- a/tests/e2e/graphics/test-cases/series/no-last-price-animation-on-first-set-data.js
+++ b/tests/e2e/graphics/test-cases/series/no-last-price-animation-on-first-set-data.js
@@ -1,5 +1,5 @@
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const series = chart.addLineSeries({
lastPriceAnimation: LightweightCharts.LastPriceAnimationMode.OnDataUpdate,
diff --git a/tests/e2e/graphics/test-cases/series/no-last-price-animation-on-loading-history-data.js b/tests/e2e/graphics/test-cases/series/no-last-price-animation-on-loading-history-data.js
index d2d67f167d..f24c634fdd 100644
--- a/tests/e2e/graphics/test-cases/series/no-last-price-animation-on-loading-history-data.js
+++ b/tests/e2e/graphics/test-cases/series/no-last-price-animation-on-loading-history-data.js
@@ -1,5 +1,5 @@
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const series = chart.addLineSeries({
lastPriceAnimation: LightweightCharts.LastPriceAnimationMode.OnDataUpdate,
diff --git a/tests/e2e/graphics/test-cases/series/no-visible-points-in-the-middle.js b/tests/e2e/graphics/test-cases/series/no-visible-points-in-the-middle.js
index 6c7a3d29b4..afafe5b07a 100644
--- a/tests/e2e/graphics/test-cases/series/no-visible-points-in-the-middle.js
+++ b/tests/e2e/graphics/test-cases/series/no-visible-points-in-the-middle.js
@@ -24,6 +24,7 @@ function runTestCase(container) {
rightOffset: 7,
barSpacing: 50,
},
+ layout: { attributionLogo: false },
});
const firstSeries = chart.addLineSeries({
diff --git a/tests/e2e/graphics/test-cases/series/overlay-series-title-only-overlay-price-scale.js b/tests/e2e/graphics/test-cases/series/overlay-series-title-only-overlay-price-scale.js
index 217446ed42..bec7f8a36e 100644
--- a/tests/e2e/graphics/test-cases/series/overlay-series-title-only-overlay-price-scale.js
+++ b/tests/e2e/graphics/test-cases/series/overlay-series-title-only-overlay-price-scale.js
@@ -13,7 +13,7 @@ function generateData(func) {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const line1 = chart.addLineSeries({
priceScaleId: 'overlay',
diff --git a/tests/e2e/graphics/test-cases/series/overlay-series-title-only-overlay-stacked.js b/tests/e2e/graphics/test-cases/series/overlay-series-title-only-overlay-stacked.js
index 495fa077f6..a447567994 100644
--- a/tests/e2e/graphics/test-cases/series/overlay-series-title-only-overlay-stacked.js
+++ b/tests/e2e/graphics/test-cases/series/overlay-series-title-only-overlay-stacked.js
@@ -13,7 +13,7 @@ function generateData(func, shouldAddValue) {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
chart.priceScale('right').applyOptions({
visible: false,
diff --git a/tests/e2e/graphics/test-cases/series/overlay-series-title.js b/tests/e2e/graphics/test-cases/series/overlay-series-title.js
index a3ed2a990e..0d1f918724 100644
--- a/tests/e2e/graphics/test-cases/series/overlay-series-title.js
+++ b/tests/e2e/graphics/test-cases/series/overlay-series-title.js
@@ -13,7 +13,7 @@ function generateData(func) {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addLineSeries({
color: '#ff0000',
diff --git a/tests/e2e/graphics/test-cases/series/override-autoscale-fixed-range.js b/tests/e2e/graphics/test-cases/series/override-autoscale-fixed-range.js
index 48b0dd8f2d..e3aee766ea 100644
--- a/tests/e2e/graphics/test-cases/series/override-autoscale-fixed-range.js
+++ b/tests/e2e/graphics/test-cases/series/override-autoscale-fixed-range.js
@@ -20,6 +20,7 @@ function runTestCase(container) {
top: 0,
},
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addLineSeries({
diff --git a/tests/e2e/graphics/test-cases/series/price-line-apply-options.js b/tests/e2e/graphics/test-cases/series/price-line-apply-options.js
index bf22b283a9..10eb160244 100644
--- a/tests/e2e/graphics/test-cases/series/price-line-apply-options.js
+++ b/tests/e2e/graphics/test-cases/series/price-line-apply-options.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const series = chart.addLineSeries();
series.setData(generateData());
diff --git a/tests/e2e/graphics/test-cases/series/price-line-line-visibility.js b/tests/e2e/graphics/test-cases/series/price-line-line-visibility.js
index 6e4632f769..f48eaf02e2 100644
--- a/tests/e2e/graphics/test-cases/series/price-line-line-visibility.js
+++ b/tests/e2e/graphics/test-cases/series/price-line-line-visibility.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const series = chart.addLineSeries();
series.setData(generateData());
diff --git a/tests/e2e/graphics/test-cases/series/price-line-overlapping-series-title.js b/tests/e2e/graphics/test-cases/series/price-line-overlapping-series-title.js
index 3c5dcea5cf..47814b8267 100644
--- a/tests/e2e/graphics/test-cases/series/price-line-overlapping-series-title.js
+++ b/tests/e2e/graphics/test-cases/series/price-line-overlapping-series-title.js
@@ -1,5 +1,5 @@
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const series = chart.addLineSeries({ title: 'TITLE' });
diff --git a/tests/e2e/graphics/test-cases/series/price-line-with-percentage-scale-mode.js b/tests/e2e/graphics/test-cases/series/price-line-with-percentage-scale-mode.js
index 8918efdc32..b6b268d3e1 100644
--- a/tests/e2e/graphics/test-cases/series/price-line-with-percentage-scale-mode.js
+++ b/tests/e2e/graphics/test-cases/series/price-line-with-percentage-scale-mode.js
@@ -17,6 +17,7 @@ function runTestCase(container) {
rightPriceScale: {
mode: LightweightCharts.PriceScaleMode.Percentage,
},
+ layout: { attributionLogo: false },
});
const series = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/series/price-lines-align-labels.js b/tests/e2e/graphics/test-cases/series/price-lines-align-labels.js
index 67a84127be..90b171830e 100644
--- a/tests/e2e/graphics/test-cases/series/price-lines-align-labels.js
+++ b/tests/e2e/graphics/test-cases/series/price-lines-align-labels.js
@@ -18,6 +18,7 @@ function runTestCase(container) {
mode: LightweightCharts.PriceScaleMode.Percentage,
alignLabels: true,
},
+ layout: { attributionLogo: false },
});
const series = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/series/price-lines-do-not-align-labels.js b/tests/e2e/graphics/test-cases/series/price-lines-do-not-align-labels.js
index b3f0ca0d7c..c2d7f3bf7f 100644
--- a/tests/e2e/graphics/test-cases/series/price-lines-do-not-align-labels.js
+++ b/tests/e2e/graphics/test-cases/series/price-lines-do-not-align-labels.js
@@ -18,6 +18,7 @@ function runTestCase(container) {
mode: LightweightCharts.PriceScaleMode.Percentage,
alignLabels: false,
},
+ layout: { attributionLogo: false },
});
const series = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/series/price-lines-on-two-axis.js b/tests/e2e/graphics/test-cases/series/price-lines-on-two-axis.js
index d4a932481e..2b5462f166 100644
--- a/tests/e2e/graphics/test-cases/series/price-lines-on-two-axis.js
+++ b/tests/e2e/graphics/test-cases/series/price-lines-on-two-axis.js
@@ -24,6 +24,7 @@ function runTestCase(container) {
borderColor: '#EFF2F5',
ticksVisible: false,
},
+ layout: { attributionLogo: false },
});
const series = chart.addLineSeries({
diff --git a/tests/e2e/graphics/test-cases/series/price-lines-remove.js b/tests/e2e/graphics/test-cases/series/price-lines-remove.js
index a83347cd83..8c94fccef4 100644
--- a/tests/e2e/graphics/test-cases/series/price-lines-remove.js
+++ b/tests/e2e/graphics/test-cases/series/price-lines-remove.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const series = chart.addLineSeries();
series.setData(generateData());
diff --git a/tests/e2e/graphics/test-cases/series/price-lines.js b/tests/e2e/graphics/test-cases/series/price-lines.js
index a7810839ec..877039e950 100644
--- a/tests/e2e/graphics/test-cases/series/price-lines.js
+++ b/tests/e2e/graphics/test-cases/series/price-lines.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const series = chart.addLineSeries();
series.setData(generateData());
diff --git a/tests/e2e/graphics/test-cases/series/series-price-formatter.js b/tests/e2e/graphics/test-cases/series/series-price-formatter.js
index f7a8a7a70e..e728bd64d9 100644
--- a/tests/e2e/graphics/test-cases/series/series-price-formatter.js
+++ b/tests/e2e/graphics/test-cases/series/series-price-formatter.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const lineSeries = chart.addLineSeries({
priceFormat: {
diff --git a/tests/e2e/graphics/test-cases/series/series-type.js b/tests/e2e/graphics/test-cases/series/series-type.js
index faa13fb3fc..6af742e063 100644
--- a/tests/e2e/graphics/test-cases/series/series-type.js
+++ b/tests/e2e/graphics/test-cases/series/series-type.js
@@ -1,5 +1,5 @@
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const line = chart.addLineSeries();
const area = chart.addAreaSeries();
const candlestick = chart.addCandlestickSeries();
diff --git a/tests/e2e/graphics/test-cases/series/series-visibility.js b/tests/e2e/graphics/test-cases/series/series-visibility.js
index bacd76bccf..fe80a04e60 100644
--- a/tests/e2e/graphics/test-cases/series/series-visibility.js
+++ b/tests/e2e/graphics/test-cases/series/series-visibility.js
@@ -37,6 +37,7 @@ function runTestCase(container) {
rightPriceScale: {
mode: LightweightCharts.PriceScaleMode.IndexedTo100,
},
+ layout: { attributionLogo: false },
});
const lineSeries = chart.addLineSeries({
visible: false,
diff --git a/tests/e2e/graphics/test-cases/series/set-empty-data-to-histogram.js b/tests/e2e/graphics/test-cases/series/set-empty-data-to-histogram.js
index 57dc91b395..7016c4f334 100644
--- a/tests/e2e/graphics/test-cases/series/set-empty-data-to-histogram.js
+++ b/tests/e2e/graphics/test-cases/series/set-empty-data-to-histogram.js
@@ -22,7 +22,7 @@ function generateColoredData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const areaSeries = chart.addAreaSeries();
const volumeSeries = chart.addHistogramSeries();
diff --git a/tests/e2e/graphics/test-cases/series/setting-same-data-after-time.js b/tests/e2e/graphics/test-cases/series/setting-same-data-after-time.js
index e847d8b9a6..9cf1ad5181 100644
--- a/tests/e2e/graphics/test-cases/series/setting-same-data-after-time.js
+++ b/tests/e2e/graphics/test-cases/series/setting-same-data-after-time.js
@@ -3,7 +3,7 @@ function copy(data) {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const lineSeries = chart.addLineSeries();
const data = [
diff --git a/tests/e2e/graphics/test-cases/series/several-non-regular-series.js b/tests/e2e/graphics/test-cases/series/several-non-regular-series.js
index 1fb4e3c386..86affdd51c 100644
--- a/tests/e2e/graphics/test-cases/series/several-non-regular-series.js
+++ b/tests/e2e/graphics/test-cases/series/several-non-regular-series.js
@@ -1,5 +1,5 @@
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const lineSeries1 = chart.addLineSeries();
const lineSeries2 = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/series/single-point-area.js b/tests/e2e/graphics/test-cases/series/single-point-area.js
index 2834801910..419f152fd1 100644
--- a/tests/e2e/graphics/test-cases/series/single-point-area.js
+++ b/tests/e2e/graphics/test-cases/series/single-point-area.js
@@ -4,6 +4,7 @@ function runTestCase(container) {
rightOffset: 7,
barSpacing: 50,
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addAreaSeries({
diff --git a/tests/e2e/graphics/test-cases/series/single-point-line.js b/tests/e2e/graphics/test-cases/series/single-point-line.js
index 90233646bf..f7a2184ab9 100644
--- a/tests/e2e/graphics/test-cases/series/single-point-line.js
+++ b/tests/e2e/graphics/test-cases/series/single-point-line.js
@@ -4,6 +4,7 @@ function runTestCase(container) {
rightOffset: 7,
barSpacing: 50,
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addLineSeries({
diff --git a/tests/e2e/graphics/test-cases/series/single-visible-point-line-first-bar.js b/tests/e2e/graphics/test-cases/series/single-visible-point-line-first-bar.js
index 5bc9ff5e08..3972107af3 100644
--- a/tests/e2e/graphics/test-cases/series/single-visible-point-line-first-bar.js
+++ b/tests/e2e/graphics/test-cases/series/single-visible-point-line-first-bar.js
@@ -24,6 +24,7 @@ function runTestCase(container) {
rightOffset: 7,
barSpacing: 50,
},
+ layout: { attributionLogo: false },
});
const firstSeries = chart.addLineSeries({
diff --git a/tests/e2e/graphics/test-cases/series/single-visible-point-line-last-bar.js b/tests/e2e/graphics/test-cases/series/single-visible-point-line-last-bar.js
index f4ef7070f4..4635badf61 100644
--- a/tests/e2e/graphics/test-cases/series/single-visible-point-line-last-bar.js
+++ b/tests/e2e/graphics/test-cases/series/single-visible-point-line-last-bar.js
@@ -24,6 +24,7 @@ function runTestCase(container) {
rightOffset: 7,
barSpacing: 50,
},
+ layout: { attributionLogo: false },
});
const firstSeries = chart.addLineSeries({
diff --git a/tests/e2e/graphics/test-cases/series/step-line-area.js b/tests/e2e/graphics/test-cases/series/step-line-area.js
index 9a4874beaa..b73569c1f0 100644
--- a/tests/e2e/graphics/test-cases/series/step-line-area.js
+++ b/tests/e2e/graphics/test-cases/series/step-line-area.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addAreaSeries({
lineType: LightweightCharts.LineType.WithSteps,
diff --git a/tests/e2e/graphics/test-cases/series/step-line-baseline.js b/tests/e2e/graphics/test-cases/series/step-line-baseline.js
index d0d7f0f326..b6cab4b9fb 100644
--- a/tests/e2e/graphics/test-cases/series/step-line-baseline.js
+++ b/tests/e2e/graphics/test-cases/series/step-line-baseline.js
@@ -15,7 +15,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const baselineSeries = chart.addBaselineSeries({
lineType: LightweightCharts.LineType.WithSteps,
diff --git a/tests/e2e/graphics/test-cases/series/step-line.js b/tests/e2e/graphics/test-cases/series/step-line.js
index 466a421fb4..eaa94dffff 100644
--- a/tests/e2e/graphics/test-cases/series/step-line.js
+++ b/tests/e2e/graphics/test-cases/series/step-line.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addLineSeries({
lineWidth: 1,
diff --git a/tests/e2e/graphics/test-cases/series/two-series-one-not-autoscaled.js b/tests/e2e/graphics/test-cases/series/two-series-one-not-autoscaled.js
index 50a50ddc19..33bc0efbbd 100644
--- a/tests/e2e/graphics/test-cases/series/two-series-one-not-autoscaled.js
+++ b/tests/e2e/graphics/test-cases/series/two-series-one-not-autoscaled.js
@@ -21,6 +21,7 @@ function runTestCase(container) {
top: 0,
},
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addLineSeries({
diff --git a/tests/e2e/graphics/test-cases/series/update-baseline-base-value.js b/tests/e2e/graphics/test-cases/series/update-baseline-base-value.js
index e69280172f..23f83ef3c3 100644
--- a/tests/e2e/graphics/test-cases/series/update-baseline-base-value.js
+++ b/tests/e2e/graphics/test-cases/series/update-baseline-base-value.js
@@ -40,7 +40,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addBaselineSeries({
lineWidth: 1,
diff --git a/tests/e2e/graphics/test-cases/series/update-removed-series-data.js b/tests/e2e/graphics/test-cases/series/update-removed-series-data.js
index b5557d6718..974dbefe84 100644
--- a/tests/e2e/graphics/test-cases/series/update-removed-series-data.js
+++ b/tests/e2e/graphics/test-cases/series/update-removed-series-data.js
@@ -39,6 +39,7 @@ function runTestCase(container) {
barSpacing: 40,
timeVisible: true,
},
+ layout: { attributionLogo: false },
});
const series1 = chart.addLineSeries({ title: 'Series 1' });
diff --git a/tests/e2e/graphics/test-cases/series/whitespace-updates.js b/tests/e2e/graphics/test-cases/series/whitespace-updates.js
index 9359af26ac..a1b958bba1 100644
--- a/tests/e2e/graphics/test-cases/series/whitespace-updates.js
+++ b/tests/e2e/graphics/test-cases/series/whitespace-updates.js
@@ -2,7 +2,7 @@
End result should be 4 visible bars, 1 whitespace, and finally 1 visible bar.
*/
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addCandlestickSeries();
diff --git a/tests/e2e/graphics/test-cases/set-crosshair-position.js b/tests/e2e/graphics/test-cases/set-crosshair-position.js
index 6f7bd027c2..6529660f8d 100644
--- a/tests/e2e/graphics/test-cases/set-crosshair-position.js
+++ b/tests/e2e/graphics/test-cases/set-crosshair-position.js
@@ -15,7 +15,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const series = chart.addLineSeries();
series.setData(generateData());
diff --git a/tests/e2e/graphics/test-cases/set-price-line-label.js b/tests/e2e/graphics/test-cases/set-price-line-label.js
index a0098b1e7d..2b3efd55f0 100644
--- a/tests/e2e/graphics/test-cases/set-price-line-label.js
+++ b/tests/e2e/graphics/test-cases/set-price-line-label.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/take-screenshot.js b/tests/e2e/graphics/test-cases/take-screenshot.js
index 988b444fc9..25f5e058c6 100644
--- a/tests/e2e/graphics/test-cases/take-screenshot.js
+++ b/tests/e2e/graphics/test-cases/take-screenshot.js
@@ -57,6 +57,7 @@ function runTestCase(container) {
type: LightweightCharts.ColorType.Solid,
color: '#fff',
},
+ attributionLogo: false,
},
leftPriceScale: {
visible: true,
diff --git a/tests/e2e/graphics/test-cases/time-scale/add-data-to-left-two-series.js b/tests/e2e/graphics/test-cases/time-scale/add-data-to-left-two-series.js
index 6893635ebf..3a6a5214a4 100644
--- a/tests/e2e/graphics/test-cases/time-scale/add-data-to-left-two-series.js
+++ b/tests/e2e/graphics/test-cases/time-scale/add-data-to-left-two-series.js
@@ -37,7 +37,7 @@ let areaSeries2 = null;
const ONE_DAY_IN_SEC = 24 * 60 * 60;
function createChart(container) {
- chart = window.chart = LightweightCharts.createChart(container);
+ chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
}
function createFirstSeries() {
diff --git a/tests/e2e/graphics/test-cases/time-scale/add-data-to-left.js b/tests/e2e/graphics/test-cases/time-scale/add-data-to-left.js
index 5a16f19f75..3a8c52f7af 100644
--- a/tests/e2e/graphics/test-cases/time-scale/add-data-to-left.js
+++ b/tests/e2e/graphics/test-cases/time-scale/add-data-to-left.js
@@ -35,7 +35,7 @@ let areaSeries = null;
const ONE_DAY_IN_SEC = 24 * 60 * 60;
function createChart(container) {
- chart = window.chart = LightweightCharts.createChart(container);
+ chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
}
function createOneSeries() {
diff --git a/tests/e2e/graphics/test-cases/time-scale/add-data-to-right-two-series.js b/tests/e2e/graphics/test-cases/time-scale/add-data-to-right-two-series.js
index e8f74df487..c2bd4bafe1 100644
--- a/tests/e2e/graphics/test-cases/time-scale/add-data-to-right-two-series.js
+++ b/tests/e2e/graphics/test-cases/time-scale/add-data-to-right-two-series.js
@@ -37,7 +37,7 @@ let areaSeries2 = null;
const ONE_DAY_IN_SEC = 24 * 60 * 60;
function createChart(container) {
- chart = window.chart = LightweightCharts.createChart(container);
+ chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
}
function createFirstSeries() {
diff --git a/tests/e2e/graphics/test-cases/time-scale/add-data-to-right.js b/tests/e2e/graphics/test-cases/time-scale/add-data-to-right.js
index c2593a5a41..82c221e8c2 100644
--- a/tests/e2e/graphics/test-cases/time-scale/add-data-to-right.js
+++ b/tests/e2e/graphics/test-cases/time-scale/add-data-to-right.js
@@ -35,7 +35,7 @@ let areaSeries = null;
const ONE_DAY_IN_SEC = 24 * 60 * 60;
function createChart(container) {
- chart = window.chart = LightweightCharts.createChart(container);
+ chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
}
function createOneSeries() {
diff --git a/tests/e2e/graphics/test-cases/time-scale/allow-shift-range-whitespace-replacement.js b/tests/e2e/graphics/test-cases/time-scale/allow-shift-range-whitespace-replacement.js
index d90aaa03e7..0d7b6c8a50 100644
--- a/tests/e2e/graphics/test-cases/time-scale/allow-shift-range-whitespace-replacement.js
+++ b/tests/e2e/graphics/test-cases/time-scale/allow-shift-range-whitespace-replacement.js
@@ -23,6 +23,7 @@ function runTestCase(container) {
shiftVisibleRangeOnNewBar: true,
allowShiftVisibleRangeOnWhitespaceReplacement: true,
},
+ layout: { attributionLogo: false },
});
const s1 = chart.addAreaSeries({
diff --git a/tests/e2e/graphics/test-cases/time-scale/disable-bold-labels.js b/tests/e2e/graphics/test-cases/time-scale/disable-bold-labels.js
index 9d390c3765..95ee9cb3b1 100644
--- a/tests/e2e/graphics/test-cases/time-scale/disable-bold-labels.js
+++ b/tests/e2e/graphics/test-cases/time-scale/disable-bold-labels.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
chart.timeScale().applyOptions({ allowBoldLabels: false });
const mainSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/time-scale/do-not-render-overlapping-marks-font-size-24.js b/tests/e2e/graphics/test-cases/time-scale/do-not-render-overlapping-marks-font-size-24.js
index 510408e168..7f39a4ca24 100644
--- a/tests/e2e/graphics/test-cases/time-scale/do-not-render-overlapping-marks-font-size-24.js
+++ b/tests/e2e/graphics/test-cases/time-scale/do-not-render-overlapping-marks-font-size-24.js
@@ -4,6 +4,7 @@ function runTestCase(container) {
handleScale: false,
layout: {
fontSize: 24,
+ attributionLogo: false,
},
crosshair: { vertLine: { labelVisible: false } },
timeScale: {
diff --git a/tests/e2e/graphics/test-cases/time-scale/do-not-render-overlapping-marks.js b/tests/e2e/graphics/test-cases/time-scale/do-not-render-overlapping-marks.js
index 18ac5afd47..960e187183 100644
--- a/tests/e2e/graphics/test-cases/time-scale/do-not-render-overlapping-marks.js
+++ b/tests/e2e/graphics/test-cases/time-scale/do-not-render-overlapping-marks.js
@@ -7,6 +7,7 @@ function runTestCase(container) {
tickMarkMaxCharacterLength: 'long prefix 0000-00-00'.length,
tickMarkFormatter: time => `long prefix ${time}`,
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/time-scale/do-not-shift-on-new-data-from-right.js b/tests/e2e/graphics/test-cases/time-scale/do-not-shift-on-new-data-from-right.js
index 9142ae1984..03eb5290d3 100644
--- a/tests/e2e/graphics/test-cases/time-scale/do-not-shift-on-new-data-from-right.js
+++ b/tests/e2e/graphics/test-cases/time-scale/do-not-shift-on-new-data-from-right.js
@@ -18,6 +18,7 @@ function runTestCase(container) {
rightOffset: 10,
shiftVisibleRangeOnNewBar: false,
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/time-scale/do-not-shift-range-when-replacing-whitespace.js b/tests/e2e/graphics/test-cases/time-scale/do-not-shift-range-when-replacing-whitespace.js
index 2d0d1fc463..6e1069a38e 100644
--- a/tests/e2e/graphics/test-cases/time-scale/do-not-shift-range-when-replacing-whitespace.js
+++ b/tests/e2e/graphics/test-cases/time-scale/do-not-shift-range-when-replacing-whitespace.js
@@ -21,6 +21,7 @@ function runTestCase(container) {
rightOffset: 10,
shiftVisibleRangeOnNewBar: true,
},
+ layout: { attributionLogo: false },
});
const s1 = chart.addLineSeries({
diff --git a/tests/e2e/graphics/test-cases/time-scale/fit-content-pricescale-changes.js b/tests/e2e/graphics/test-cases/time-scale/fit-content-pricescale-changes.js
index 15c1fca7cc..2b32e25396 100644
--- a/tests/e2e/graphics/test-cases/time-scale/fit-content-pricescale-changes.js
+++ b/tests/e2e/graphics/test-cases/time-scale/fit-content-pricescale-changes.js
@@ -20,6 +20,7 @@ function runTestCase(container) {
const chart = window.chart = LightweightCharts.createChart(container, {
width: 600,
height: 300,
+ layout: { attributionLogo: false },
});
chart.applyOptions({
timeScale: {
diff --git a/tests/e2e/graphics/test-cases/time-scale/hidden-time-scale-size.js b/tests/e2e/graphics/test-cases/time-scale/hidden-time-scale-size.js
index f776c9c532..e23bf7528f 100644
--- a/tests/e2e/graphics/test-cases/time-scale/hidden-time-scale-size.js
+++ b/tests/e2e/graphics/test-cases/time-scale/hidden-time-scale-size.js
@@ -1,5 +1,5 @@
async function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const timeScale = chart.timeScale();
diff --git a/tests/e2e/graphics/test-cases/time-scale/lock-visible-range-on-resize-and-fixing-edges.js b/tests/e2e/graphics/test-cases/time-scale/lock-visible-range-on-resize-and-fixing-edges.js
index fc206e8137..d7b083d6d8 100644
--- a/tests/e2e/graphics/test-cases/time-scale/lock-visible-range-on-resize-and-fixing-edges.js
+++ b/tests/e2e/graphics/test-cases/time-scale/lock-visible-range-on-resize-and-fixing-edges.js
@@ -20,6 +20,7 @@ function runTestCase(container) {
fixRightEdge: true,
lockVisibleTimeRangeOnResize: true,
},
+ layout: { attributionLogo: false },
});
const series = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/time-scale/min-bar-spacing.js b/tests/e2e/graphics/test-cases/time-scale/min-bar-spacing.js
index 94c68f6f72..5f2a0e6965 100644
--- a/tests/e2e/graphics/test-cases/time-scale/min-bar-spacing.js
+++ b/tests/e2e/graphics/test-cases/time-scale/min-bar-spacing.js
@@ -27,6 +27,7 @@ function runTestCase(container) {
timeScale: {
minBarSpacing: 0.001,
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addBarSeries();
diff --git a/tests/e2e/graphics/test-cases/time-scale/realign-partially-hidden-time-scale-mark-on-left.js b/tests/e2e/graphics/test-cases/time-scale/realign-partially-hidden-time-scale-mark-on-left.js
index 3d7b0bec55..b8c79690c3 100644
--- a/tests/e2e/graphics/test-cases/time-scale/realign-partially-hidden-time-scale-mark-on-left.js
+++ b/tests/e2e/graphics/test-cases/time-scale/realign-partially-hidden-time-scale-mark-on-left.js
@@ -75,6 +75,7 @@ function runTestCase(container) {
timeScale: {
timeVisible: true,
},
+ layout: { attributionLogo: false },
});
const series = chart.addAreaSeries();
diff --git a/tests/e2e/graphics/test-cases/time-scale/realign-partially-hidden-time-scale-mark-on-right.js b/tests/e2e/graphics/test-cases/time-scale/realign-partially-hidden-time-scale-mark-on-right.js
index bbebb96e9e..443b8395b5 100644
--- a/tests/e2e/graphics/test-cases/time-scale/realign-partially-hidden-time-scale-mark-on-right.js
+++ b/tests/e2e/graphics/test-cases/time-scale/realign-partially-hidden-time-scale-mark-on-right.js
@@ -79,6 +79,7 @@ function runTestCase(container) {
timeScale: {
timeVisible: true,
},
+ layout: { attributionLogo: false },
});
const series = chart.addAreaSeries();
diff --git a/tests/e2e/graphics/test-cases/time-scale/realign-partially-hidden-time-scale-marks.js b/tests/e2e/graphics/test-cases/time-scale/realign-partially-hidden-time-scale-marks.js
index 4384466533..d6fa085957 100644
--- a/tests/e2e/graphics/test-cases/time-scale/realign-partially-hidden-time-scale-marks.js
+++ b/tests/e2e/graphics/test-cases/time-scale/realign-partially-hidden-time-scale-marks.js
@@ -2,6 +2,7 @@ function runTestCase(container) {
const chart = window.chart = LightweightCharts.createChart(container, {
handleScroll: false,
handleScale: false,
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/time-scale/reset-time-scale-after-set-visible-range.js b/tests/e2e/graphics/test-cases/time-scale/reset-time-scale-after-set-visible-range.js
index f9c34ff965..ed83e6fd4c 100644
--- a/tests/e2e/graphics/test-cases/time-scale/reset-time-scale-after-set-visible-range.js
+++ b/tests/e2e/graphics/test-cases/time-scale/reset-time-scale-after-set-visible-range.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/time-scale/scroll-to-position-after-set-visible-range.js b/tests/e2e/graphics/test-cases/time-scale/scroll-to-position-after-set-visible-range.js
index 629f2f4fec..f0df697514 100644
--- a/tests/e2e/graphics/test-cases/time-scale/scroll-to-position-after-set-visible-range.js
+++ b/tests/e2e/graphics/test-cases/time-scale/scroll-to-position-after-set-visible-range.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/time-scale/scroll-to-position-with-no-data.js b/tests/e2e/graphics/test-cases/time-scale/scroll-to-position-with-no-data.js
index a789ec7ca2..a0aa896513 100644
--- a/tests/e2e/graphics/test-cases/time-scale/scroll-to-position-with-no-data.js
+++ b/tests/e2e/graphics/test-cases/time-scale/scroll-to-position-with-no-data.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
chart.timeScale().scrollToPosition(-100000);
// to force subscribe and emit event
diff --git a/tests/e2e/graphics/test-cases/time-scale/set-and-clear-series.js b/tests/e2e/graphics/test-cases/time-scale/set-and-clear-series.js
index f3ec60688d..44981e3645 100644
--- a/tests/e2e/graphics/test-cases/time-scale/set-and-clear-series.js
+++ b/tests/e2e/graphics/test-cases/time-scale/set-and-clear-series.js
@@ -9,6 +9,7 @@ function runTestCase(container) {
timeScale: {
barSpacing: 40,
},
+ layout: { attributionLogo: false },
});
const series = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/time-scale/set-right-offset-after-set-visible-range.js b/tests/e2e/graphics/test-cases/time-scale/set-right-offset-after-set-visible-range.js
index 14ca506fd2..1a2f8a3e47 100644
--- a/tests/e2e/graphics/test-cases/time-scale/set-right-offset-after-set-visible-range.js
+++ b/tests/e2e/graphics/test-cases/time-scale/set-right-offset-after-set-visible-range.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/time-scale/set-visible-logical-range-with-no-data.js b/tests/e2e/graphics/test-cases/time-scale/set-visible-logical-range-with-no-data.js
index c44527ff3a..169dad362b 100644
--- a/tests/e2e/graphics/test-cases/time-scale/set-visible-logical-range-with-no-data.js
+++ b/tests/e2e/graphics/test-cases/time-scale/set-visible-logical-range-with-no-data.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
chart.timeScale().setVisibleLogicalRange({ from: -1001000, to: -1000000 });
// to force subscribe and emit event
diff --git a/tests/e2e/graphics/test-cases/time-scale/set-visible-range-after-time.js b/tests/e2e/graphics/test-cases/time-scale/set-visible-range-after-time.js
index 410fceefde..aadcac6715 100644
--- a/tests/e2e/graphics/test-cases/time-scale/set-visible-range-after-time.js
+++ b/tests/e2e/graphics/test-cases/time-scale/set-visible-range-after-time.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/time-scale/set-visible-range-with-small-range.js b/tests/e2e/graphics/test-cases/time-scale/set-visible-range-with-small-range.js
index c2f072ba7c..613a452bc3 100644
--- a/tests/e2e/graphics/test-cases/time-scale/set-visible-range-with-small-range.js
+++ b/tests/e2e/graphics/test-cases/time-scale/set-visible-range-with-small-range.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/time-scale/set-visible-range-with-two-series.js b/tests/e2e/graphics/test-cases/time-scale/set-visible-range-with-two-series.js
index 03de458471..4d02b957ec 100644
--- a/tests/e2e/graphics/test-cases/time-scale/set-visible-range-with-two-series.js
+++ b/tests/e2e/graphics/test-cases/time-scale/set-visible-range-with-two-series.js
@@ -1,5 +1,5 @@
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const line1 = chart.addLineSeries();
line1.setData([
diff --git a/tests/e2e/graphics/test-cases/time-scale/set-visible-range.js b/tests/e2e/graphics/test-cases/time-scale/set-visible-range.js
index 1f890880bd..9c854e4f3a 100644
--- a/tests/e2e/graphics/test-cases/time-scale/set-visible-range.js
+++ b/tests/e2e/graphics/test-cases/time-scale/set-visible-range.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addLineSeries();
diff --git a/tests/e2e/graphics/test-cases/time-scale/time-scale-size-on-changing-chart-size.js b/tests/e2e/graphics/test-cases/time-scale/time-scale-size-on-changing-chart-size.js
index 8e545a3d5f..6f5e31e99a 100644
--- a/tests/e2e/graphics/test-cases/time-scale/time-scale-size-on-changing-chart-size.js
+++ b/tests/e2e/graphics/test-cases/time-scale/time-scale-size-on-changing-chart-size.js
@@ -2,7 +2,7 @@
window.ignoreMouseMove = true;
async function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container, { width: 150 });
+ const chart = window.chart = LightweightCharts.createChart(container, { width: 150, layout: { attributionLogo: false } });
const timeScale = chart.timeScale();
diff --git a/tests/e2e/graphics/test-cases/time-scale/time-scale-size-with-hidden-price-scale.js b/tests/e2e/graphics/test-cases/time-scale/time-scale-size-with-hidden-price-scale.js
index e8cad5a169..6f0b8e678b 100644
--- a/tests/e2e/graphics/test-cases/time-scale/time-scale-size-with-hidden-price-scale.js
+++ b/tests/e2e/graphics/test-cases/time-scale/time-scale-size-with-hidden-price-scale.js
@@ -1,5 +1,5 @@
async function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const timeScale = chart.timeScale();
diff --git a/tests/e2e/graphics/test-cases/time-scale/updates-after-replacing-whitespace-should-shift-timescale.js b/tests/e2e/graphics/test-cases/time-scale/updates-after-replacing-whitespace-should-shift-timescale.js
index 63f7f387ff..60617c564a 100644
--- a/tests/e2e/graphics/test-cases/time-scale/updates-after-replacing-whitespace-should-shift-timescale.js
+++ b/tests/e2e/graphics/test-cases/time-scale/updates-after-replacing-whitespace-should-shift-timescale.js
@@ -115,6 +115,7 @@ function runTestCase(container) {
*/
rightOffset: 2,
},
+ layout: { attributionLogo: false },
}));
const s1 = chart.addCandlestickSeries();
diff --git a/tests/e2e/graphics/test-cases/time-scale/updates-shift-the-timescale.js b/tests/e2e/graphics/test-cases/time-scale/updates-shift-the-timescale.js
index 3168547ae4..06a0aad858 100644
--- a/tests/e2e/graphics/test-cases/time-scale/updates-shift-the-timescale.js
+++ b/tests/e2e/graphics/test-cases/time-scale/updates-shift-the-timescale.js
@@ -72,6 +72,7 @@ function runTestCase(container) {
barSpacing: 18,
shiftVisibleRangeOnNewBar: true,
},
+ layout: { attributionLogo: false },
}));
const s1 = chart.addCandlestickSeries();
diff --git a/tests/e2e/graphics/test-cases/time-scale/updates-to-existing-data-points-should-not-shift-timescale.js b/tests/e2e/graphics/test-cases/time-scale/updates-to-existing-data-points-should-not-shift-timescale.js
index 81ddb54d8e..7fe4ece1cb 100644
--- a/tests/e2e/graphics/test-cases/time-scale/updates-to-existing-data-points-should-not-shift-timescale.js
+++ b/tests/e2e/graphics/test-cases/time-scale/updates-to-existing-data-points-should-not-shift-timescale.js
@@ -48,6 +48,7 @@ function runTestCase(container) {
barSpacing: 24,
shiftVisibleRangeOnNewBar: true,
},
+ layout: { attributionLogo: false },
}));
const s1 = chart.addCandlestickSeries();
diff --git a/tests/e2e/graphics/test-cases/transparent-color.js b/tests/e2e/graphics/test-cases/transparent-color.js
index 243cd5b383..6517cb2231 100644
--- a/tests/e2e/graphics/test-cases/transparent-color.js
+++ b/tests/e2e/graphics/test-cases/transparent-color.js
@@ -13,7 +13,7 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addHistogramSeries({
color: 'transparent',
diff --git a/tests/e2e/graphics/test-cases/two-scales/basic.js b/tests/e2e/graphics/test-cases/two-scales/basic.js
index 1740ca4e5a..1a4a44b386 100644
--- a/tests/e2e/graphics/test-cases/two-scales/basic.js
+++ b/tests/e2e/graphics/test-cases/two-scales/basic.js
@@ -54,6 +54,7 @@ function runTestCase(container) {
bottom: 0,
},
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addBarSeries({
diff --git a/tests/e2e/graphics/test-cases/two-scales/empty-price-scale-id.js b/tests/e2e/graphics/test-cases/two-scales/empty-price-scale-id.js
index 5a60749963..61b81e7d46 100644
--- a/tests/e2e/graphics/test-cases/two-scales/empty-price-scale-id.js
+++ b/tests/e2e/graphics/test-cases/two-scales/empty-price-scale-id.js
@@ -46,7 +46,7 @@ function generateDataLine(offset) {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addBarSeries({
borderColor: 'rgba(0, 0, 255, 0.2)',
diff --git a/tests/e2e/graphics/test-cases/two-scales/left-percent.js b/tests/e2e/graphics/test-cases/two-scales/left-percent.js
index 8cec26592f..00e607aa7a 100644
--- a/tests/e2e/graphics/test-cases/two-scales/left-percent.js
+++ b/tests/e2e/graphics/test-cases/two-scales/left-percent.js
@@ -54,6 +54,7 @@ function runTestCase(container) {
bottom: 0,
},
},
+ layout: { attributionLogo: false },
});
const mainSeries = chart.addBarSeries({
diff --git a/tests/e2e/graphics/test-cases/two-scales/price-scale-text-colors.js b/tests/e2e/graphics/test-cases/two-scales/price-scale-text-colors.js
index 332bdeb8a7..e1ce696027 100644
--- a/tests/e2e/graphics/test-cases/two-scales/price-scale-text-colors.js
+++ b/tests/e2e/graphics/test-cases/two-scales/price-scale-text-colors.js
@@ -21,6 +21,7 @@ function runTestCase(container) {
visible: true,
textColor: 'red',
},
+ layout: { attributionLogo: false },
});
const series1 = chart.addLineSeries({ color: 'red', priceScaleId: 'right' });
diff --git a/tests/e2e/graphics/test-cases/two-scales/two-groups-of-overlays.js b/tests/e2e/graphics/test-cases/two-scales/two-groups-of-overlays.js
index cfe7c13bab..804021519d 100644
--- a/tests/e2e/graphics/test-cases/two-scales/two-groups-of-overlays.js
+++ b/tests/e2e/graphics/test-cases/two-scales/two-groups-of-overlays.js
@@ -46,7 +46,7 @@ function generateDataLine(offset) {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addBarSeries({
borderColor: 'rgba(0, 0, 255, 0.2)',
diff --git a/tests/e2e/graphics/test-cases/two-scales/two-overlays-share-scale.js b/tests/e2e/graphics/test-cases/two-scales/two-overlays-share-scale.js
index 92a6d027b9..0a016bedf3 100644
--- a/tests/e2e/graphics/test-cases/two-scales/two-overlays-share-scale.js
+++ b/tests/e2e/graphics/test-cases/two-scales/two-overlays-share-scale.js
@@ -46,7 +46,7 @@ function generateDataLine(offset) {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, { layout: { attributionLogo: false } });
const mainSeries = chart.addBarSeries({
borderColor: 'rgba(0, 0, 255, 0.2)',
From 7ff6ba91e7bbfaf38259ab8339013c924ee2a5ad Mon Sep 17 00:00:00 2001
From: Mark Silverwood <3482679+SlicedSilver@users.noreply.github.com>
Date: Mon, 26 Feb 2024 16:43:56 +0000
Subject: [PATCH 03/10] add new graphics e2e tests for attribution logo
---
.../test-cases/attribution-logo-dark.js | 30 ++++++++++++++++
.../test-cases/attribution-logo-light.js | 36 +++++++++++++++++++
2 files changed, 66 insertions(+)
create mode 100644 tests/e2e/graphics/test-cases/attribution-logo-dark.js
create mode 100644 tests/e2e/graphics/test-cases/attribution-logo-light.js
diff --git a/tests/e2e/graphics/test-cases/attribution-logo-dark.js b/tests/e2e/graphics/test-cases/attribution-logo-dark.js
new file mode 100644
index 0000000000..88c4800696
--- /dev/null
+++ b/tests/e2e/graphics/test-cases/attribution-logo-dark.js
@@ -0,0 +1,30 @@
+function generateData() {
+ const res = [];
+ const time = new Date(Date.UTC(2018, 0, 1, 0, 0, 0, 0));
+ for (let i = 0; i < 500; ++i) {
+ res.push({
+ time: time.getTime() / 1000,
+ value: i,
+ });
+
+ time.setUTCDate(time.getUTCDate() + 1);
+ }
+ return res;
+}
+
+function runTestCase(container) {
+ const chart = (window.chart = LightweightCharts.createChart(container, {
+ layout: {
+ attributionLogo: true,
+ background: {
+ type: 'solid',
+ color: 'rgb(50,100,150)',
+ },
+ textColor: 'rgb(255,200,100)',
+ },
+ }));
+
+ const mainSeries = chart.addLineSeries();
+
+ mainSeries.setData(generateData());
+}
diff --git a/tests/e2e/graphics/test-cases/attribution-logo-light.js b/tests/e2e/graphics/test-cases/attribution-logo-light.js
new file mode 100644
index 0000000000..27b4215ab6
--- /dev/null
+++ b/tests/e2e/graphics/test-cases/attribution-logo-light.js
@@ -0,0 +1,36 @@
+function generateData() {
+ const res = [];
+ const time = new Date(Date.UTC(2018, 0, 1, 0, 0, 0, 0));
+ for (let i = 0; i < 500; ++i) {
+ res.push({
+ time: time.getTime() / 1000,
+ value: i,
+ });
+
+ time.setUTCDate(time.getUTCDate() + 1);
+ }
+ return res;
+}
+
+function runTestCase(container) {
+ const chart = (window.chart = LightweightCharts.createChart(container, {
+ layout: {
+ attributionLogo: true,
+ background: {
+ type: 'solid',
+ color: 'rgb(255,200,100)',
+ },
+ textColor: 'rgb(50,100,150)',
+ },
+ leftPriceScale: {
+ visible: true,
+ },
+ rightPriceScale: {
+ visible: false,
+ },
+ }));
+
+ const mainSeries = chart.addLineSeries();
+
+ mainSeries.setData(generateData());
+}
From bea721abde6a98125fad26d9b7240c5534ecf5f0 Mon Sep 17 00:00:00 2001
From: Mark Silverwood <3482679+SlicedSilver@users.noreply.github.com>
Date: Mon, 11 Mar 2024 14:26:15 +0100
Subject: [PATCH 04/10] update readme.md to include mention of attributionLogo
option
---
README.md | 1 +
src/model/layout-options.ts | 13 +++++++------
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
index c2d87540cb..66e9328468 100644
--- a/README.md
+++ b/README.md
@@ -103,6 +103,7 @@ This software incorporates several parts of tslib ( to the page of your website or mobile application that is available to your users.
As thanks for creating this product, we'd be grateful if you add it in a prominent place.
+You can use the [`attributionLogo`](https://tradingview.github.io/lightweight-charts/docs/api/interfaces/LayoutOptions#attributionLogo) chart option for displaying an appropriate link to on the chart itself, which will satisfy the link requirement.
[demo-url]: https://www.tradingview.com/lightweight-charts/
diff --git a/src/model/layout-options.ts b/src/model/layout-options.ts
index 93a18bd9c9..d6f90588a6 100644
--- a/src/model/layout-options.ts
+++ b/src/model/layout-options.ts
@@ -79,13 +79,14 @@ export interface LayoutOptions {
fontFamily: string;
/**
- * Display the 'Charting by TradingView' attribution logo on the main chart pane.
+ * Display the TradingView attribution logo on the main chart pane.
*
- * The licence for library specifies that you shall add the "attribution notice"
- * from the NOTICE file and a link to \ to the page
- * of your website or mobile application that is available to your users. Using this
- * attribution logo is sufficient for meeting this requirement. However, if you already
- * fulfill this requirement then you can disable this attribution logo.
+ * The licence for library specifies that you add the "attribution notice"
+ * from the NOTICE file to your code and a link to https://www.tradingview.com/ to
+ * the page of your website or mobile application that is available to your users.
+ * Using this attribution logo is sufficient for meeting this linking requirement.
+ * However, if you already fulfill this requirement then you can disable this
+ * attribution logo.
*
* @defaultValue true
*/
From eeb2b64f735f45a8b794129334ec39e4bf821a29 Mon Sep 17 00:00:00 2001
From: Andrii Ovcharenko
Date: Mon, 22 Apr 2024 13:30:35 +0200
Subject: [PATCH 05/10] fix multiple logos
---
src/gui/attribution-logo-widget.ts | 12 ++++++------
src/gui/pane-widget.ts | 9 ++++++---
2 files changed, 12 insertions(+), 9 deletions(-)
diff --git a/src/gui/attribution-logo-widget.ts b/src/gui/attribution-logo-widget.ts
index 6135cee7f7..948071b6f6 100644
--- a/src/gui/attribution-logo-widget.ts
+++ b/src/gui/attribution-logo-widget.ts
@@ -28,11 +28,7 @@ export class AttributionLogoWidget {
this._render();
}
- private _shouldUpdate(): boolean {
- return this._visible !== this._shouldBeVisible() || this._theme !== this._themeToUse();
- }
-
- private _removeElement(): void {
+ public removeElement(): void {
if (this._element) {
this._container.removeChild(this._element);
}
@@ -43,6 +39,10 @@ export class AttributionLogoWidget {
this._cssElement = undefined;
}
+ private _shouldUpdate(): boolean {
+ return this._visible !== this._shouldBeVisible() || this._theme !== this._themeToUse();
+ }
+
private _themeToUse(): LogoTheme {
return colorStringToGrayscale(this._chart.options().layout.textColor) > 160 ? 'dark' : 'light';
}
@@ -64,7 +64,7 @@ export class AttributionLogoWidget {
if (!this._shouldUpdate()) {
return;
}
- this._removeElement();
+ this.removeElement();
this._visible = this._shouldBeVisible();
if (this._visible) {
this._theme = this._themeToUse();
diff --git a/src/gui/pane-widget.ts b/src/gui/pane-widget.ts
index 2ccf4ff3bf..fa96ca2a01 100644
--- a/src/gui/pane-widget.ts
+++ b/src/gui/pane-widget.ts
@@ -143,8 +143,6 @@ export class PaneWidget implements IDestroyable, MouseEventHandlers {
treatHorzTouchDragAsPageScroll: () => this._startTrackPoint === null && !this._chart.options().handleScroll.horzTouchDrag,
}
);
-
- this._attributionLogoWidget = new AttributionLogoWidget(this._paneCell, this._chart);
}
public destroy(): void {
@@ -187,8 +185,13 @@ export class PaneWidget implements IDestroyable, MouseEventHandlers {
}
this.updatePriceAxisWidgetsStates();
- if (this._attributionLogoWidget) {
+
+ if (this._chart.paneWidgets().indexOf(this) === this._chart.paneWidgets().length - 1) {
+ this._attributionLogoWidget = this._attributionLogoWidget ?? new AttributionLogoWidget(this._paneCell, this._chart);
this._attributionLogoWidget.update();
+ } else {
+ this._attributionLogoWidget?.removeElement();
+ this._attributionLogoWidget = null;
}
}
From 910fc6e63de11e18d19a8d1b62fe69a7e29c979c Mon Sep 17 00:00:00 2001
From: Andrii Ovcharenko
Date: Tue, 30 Apr 2024 12:32:09 +0200
Subject: [PATCH 06/10] fix: add target blank to attr-logo
---
src/gui/attribution-logo-widget.ts | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gui/attribution-logo-widget.ts b/src/gui/attribution-logo-widget.ts
index 948071b6f6..e8a68ecc9a 100644
--- a/src/gui/attribution-logo-widget.ts
+++ b/src/gui/attribution-logo-widget.ts
@@ -74,6 +74,7 @@ export class AttributionLogoWidget {
this._element.href = `https://www.tradingview.com/?utm_medium=lwc-link&utm_campaign=lwc-chart${this._getUTMSource()}`;
this._element.title = 'Charting by TradingView';
this._element.id = 'tv-attr-logo';
+ this._element.target = '_blank';
this._element.innerHTML = svg;
this._element.toggleAttribute('data-dark', this._theme === 'dark');
this._container.appendChild(this._cssElement);
From 0244df7f339496887c1152ec7eaf999e26cf282c Mon Sep 17 00:00:00 2001
From: Mark Silverwood <3482679+SlicedSilver@users.noreply.github.com>
Date: Thu, 25 Jul 2024 17:22:57 +0100
Subject: [PATCH 07/10] Update .size-limit.js
---
.size-limit.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/.size-limit.js b/.size-limit.js
index 5848764b48..0163fcb209 100644
--- a/.size-limit.js
+++ b/.size-limit.js
@@ -4,21 +4,21 @@ module.exports = [
{
name: 'CJS',
path: 'dist/lightweight-charts.production.cjs',
- limit: '48.35 KB',
+ limit: '49.27 KB',
},
{
name: 'ESM',
path: 'dist/lightweight-charts.production.mjs',
- limit: '48.28 KB',
+ limit: '49.20 KB',
},
{
name: 'Standalone-ESM',
path: 'dist/lightweight-charts.standalone.production.mjs',
- limit: '50.00 KB',
+ limit: '50.92 KB',
},
{
name: 'Standalone',
path: 'dist/lightweight-charts.standalone.production.js',
- limit: '50.04 KB',
+ limit: '50.96 KB',
},
];
From 2038d8a16593d36b0beb1306a094cc6e194a6647 Mon Sep 17 00:00:00 2001
From: Mark Silverwood <3482679+SlicedSilver@users.noreply.github.com>
Date: Thu, 25 Jul 2024 18:00:21 +0100
Subject: [PATCH 08/10] update graphics tests to hide attribution logo
---
.../graphics/test-cases/price-scale/improve-alignment-2.js | 1 +
.../graphics/test-cases/price-scale/improve-alignment.js | 1 +
.../test-cases/series-markers/series-markers-all-above.js | 4 +++-
.../test-cases/series-markers/series-markers-all-below.js | 4 +++-
.../test-cases/series-markers/series-markers-all-inbar.js | 4 +++-
.../test-cases/time-scale/change-weight-of-day-tickmark.js | 6 +++++-
6 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/tests/e2e/graphics/test-cases/price-scale/improve-alignment-2.js b/tests/e2e/graphics/test-cases/price-scale/improve-alignment-2.js
index fd050db8ab..7a5601840c 100644
--- a/tests/e2e/graphics/test-cases/price-scale/improve-alignment-2.js
+++ b/tests/e2e/graphics/test-cases/price-scale/improve-alignment-2.js
@@ -10,6 +10,7 @@ function runTestCase(container) {
entireTextOnly: true,
alignLabels: true,
},
+ layout: { attributionLogo: false },
};
const chart = (window.chart = LightweightCharts.createChart(
diff --git a/tests/e2e/graphics/test-cases/price-scale/improve-alignment.js b/tests/e2e/graphics/test-cases/price-scale/improve-alignment.js
index f3e9215532..39420816cd 100644
--- a/tests/e2e/graphics/test-cases/price-scale/improve-alignment.js
+++ b/tests/e2e/graphics/test-cases/price-scale/improve-alignment.js
@@ -10,6 +10,7 @@ function runTestCase(container) {
entireTextOnly: true,
alignLabels: true,
},
+ layout: { attributionLogo: false },
};
const chart = (window.chart = LightweightCharts.createChart(
diff --git a/tests/e2e/graphics/test-cases/series-markers/series-markers-all-above.js b/tests/e2e/graphics/test-cases/series-markers/series-markers-all-above.js
index 7acc5c0784..d7addca5f2 100644
--- a/tests/e2e/graphics/test-cases/series-markers/series-markers-all-above.js
+++ b/tests/e2e/graphics/test-cases/series-markers/series-markers-all-above.js
@@ -13,7 +13,9 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, {
+ layout: { attributionLogo: false },
+ });
const mainSeries = chart.addHistogramSeries();
diff --git a/tests/e2e/graphics/test-cases/series-markers/series-markers-all-below.js b/tests/e2e/graphics/test-cases/series-markers/series-markers-all-below.js
index a54c90cdbf..7dd562b3e6 100644
--- a/tests/e2e/graphics/test-cases/series-markers/series-markers-all-below.js
+++ b/tests/e2e/graphics/test-cases/series-markers/series-markers-all-below.js
@@ -13,7 +13,9 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, {
+ layout: { attributionLogo: false },
+ });
const mainSeries = chart.addHistogramSeries();
diff --git a/tests/e2e/graphics/test-cases/series-markers/series-markers-all-inbar.js b/tests/e2e/graphics/test-cases/series-markers/series-markers-all-inbar.js
index 9e6b34571e..44690b394c 100644
--- a/tests/e2e/graphics/test-cases/series-markers/series-markers-all-inbar.js
+++ b/tests/e2e/graphics/test-cases/series-markers/series-markers-all-inbar.js
@@ -13,7 +13,9 @@ function generateData() {
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChart(container);
+ const chart = window.chart = LightweightCharts.createChart(container, {
+ layout: { attributionLogo: false },
+ });
const mainSeries = chart.addHistogramSeries();
diff --git a/tests/e2e/graphics/test-cases/time-scale/change-weight-of-day-tickmark.js b/tests/e2e/graphics/test-cases/time-scale/change-weight-of-day-tickmark.js
index bf045e5a0c..974b61503f 100644
--- a/tests/e2e/graphics/test-cases/time-scale/change-weight-of-day-tickmark.js
+++ b/tests/e2e/graphics/test-cases/time-scale/change-weight-of-day-tickmark.js
@@ -869,7 +869,11 @@ class CustomBehavior extends DefaultHorzScaleBehavior {
}
}
function runTestCase(container) {
- const chart = window.chart = LightweightCharts.createChartEx(container, new CustomBehavior(), { width: 800, height: 400 });
+ const chart = window.chart = LightweightCharts.createChartEx(container, new CustomBehavior(), {
+ width: 800,
+ height: 400,
+ layout: { attributionLogo: false },
+ });
let lastDate;
let lastTickMarkType;
From d0fd5ea8c05e54760435e4317435be6615d86a62 Mon Sep 17 00:00:00 2001
From: Mark Silverwood <3482679+SlicedSilver@users.noreply.github.com>
Date: Thu, 25 Jul 2024 21:22:35 +0100
Subject: [PATCH 09/10] add viewBox to the attribution logo
---
src/gui/attribution-logo-widget.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gui/attribution-logo-widget.ts b/src/gui/attribution-logo-widget.ts
index e8a68ecc9a..951df4eabd 100644
--- a/src/gui/attribution-logo-widget.ts
+++ b/src/gui/attribution-logo-widget.ts
@@ -4,7 +4,7 @@ import { IChartWidgetBase } from './chart-widget';
type LogoTheme = 'dark' | 'light';
-const svg = ``;
+const svg = ``;
const css = `a#tv-attr-logo{--fill:#131722;--stroke:#fff;position:absolute;left:10px;bottom:10px;height:19px;width:35px;margin:0;padding:0;border:0;z-index:3;}a#tv-attr-logo[data-dark]{--fill:#D1D4DC;--stroke:#131722;}`;
// This widget doesn't support dynamically responding to options changes
From b84e06381e045f13dab6e151ea72d884fe36eae9 Mon Sep 17 00:00:00 2001
From: Mark Silverwood <3482679+SlicedSilver@users.noreply.github.com>
Date: Thu, 25 Jul 2024 21:42:17 +0100
Subject: [PATCH 10/10] Update .size-limit.js
---
.size-limit.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/.size-limit.js b/.size-limit.js
index 0163fcb209..f1d78128ce 100644
--- a/.size-limit.js
+++ b/.size-limit.js
@@ -4,21 +4,21 @@ module.exports = [
{
name: 'CJS',
path: 'dist/lightweight-charts.production.cjs',
- limit: '49.27 KB',
+ limit: '49.28 KB',
},
{
name: 'ESM',
path: 'dist/lightweight-charts.production.mjs',
- limit: '49.20 KB',
+ limit: '49.21 KB',
},
{
name: 'Standalone-ESM',
path: 'dist/lightweight-charts.standalone.production.mjs',
- limit: '50.92 KB',
+ limit: '50.93 KB',
},
{
name: 'Standalone',
path: 'dist/lightweight-charts.standalone.production.js',
- limit: '50.96 KB',
+ limit: '50.97 KB',
},
];