Skip to content

Commit

Permalink
update graphics tests to hide attribution logo
Browse files Browse the repository at this point in the history
  • Loading branch information
SlicedSilver committed Jul 25, 2024
1 parent 0244df7 commit 2038d8a
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ function runTestCase(container) {
entireTextOnly: true,
alignLabels: true,
},
layout: { attributionLogo: false },
};

const chart = (window.chart = LightweightCharts.createChart(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ function runTestCase(container) {
entireTextOnly: true,
alignLabels: true,
},
layout: { attributionLogo: false },
};

const chart = (window.chart = LightweightCharts.createChart(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 2038d8a

Please sign in to comment.