Skip to content

Commit

Permalink
Fixed order of markers in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
timocov committed Feb 24, 2020
1 parent 71d0968 commit 84154b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ function runTestCase(container) {
mainSeries.setData(data);

var markers = [
{ time: data[data.length - 1].time, position: 'inBar', color: 'red', shape: 'arrowUp' },
{ time: data[data.length - 2].time, position: 'inBar', color: 'red', shape: 'arrowDown' },
{ time: data[data.length - 3].time, position: 'inBar', color: 'red', shape: 'circle' },
{ time: data[data.length - 4].time, position: 'inBar', color: 'red', shape: 'square' },
{ time: data[data.length - 3].time, position: 'inBar', color: 'red', shape: 'circle' },
{ time: data[data.length - 2].time, position: 'inBar', color: 'red', shape: 'arrowDown' },
{ time: data[data.length - 1].time, position: 'inBar', color: 'red', shape: 'arrowUp' },
];

mainSeries.setMarkers(markers);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ function runTestCase(container) {

mainSeries.setMarkers([
{ time: data[0].time, position: 'belowBar', color: 'red', shape: 'arrowUp' },
{ time: data[data.length - 1].time, position: 'belowBar', color: 'red', shape: 'arrowUp' },
{ time: data[data.length - 2].time, position: 'belowBar', color: 'red', shape: 'arrowUp' },
{ time: data[data.length - 3].time, position: 'belowBar', color: 'red', shape: 'arrowUp' },
{ time: data[data.length - 4].time, position: 'belowBar', color: 'red', shape: 'arrowUp' },
{ time: data[data.length - 3].time, position: 'belowBar', color: 'red', shape: 'arrowUp' },
{ time: data[data.length - 2].time, position: 'belowBar', color: 'red', shape: 'arrowUp' },
{ time: data[data.length - 1].time, position: 'belowBar', color: 'red', shape: 'arrowUp' },
]);

chart.timeScale().scrollToPosition(-4);
Expand Down

0 comments on commit 84154b8

Please sign in to comment.