Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draw series last price & price line labels on the top layer #1046

Closed
kirchet opened this issue Mar 16, 2022 · 0 comments · Fixed by #1047
Closed

Draw series last price & price line labels on the top layer #1046

kirchet opened this issue Mar 16, 2022 · 0 comments · Fixed by #1047
Assignees
Labels
bug Unexpected problem or unintended behavior.
Milestone

Comments

@kirchet
Copy link
Contributor

kirchet commented Mar 16, 2022

Currently price lines can be painted over series/price line labels

image

Describe the solution you'd like

Labels should be painted on the top layer (the same way as it is on tradingview.com)

image

var chart = LightweightCharts.createChart(document.getElementById('container'), {
  width: 650,
  height: 400,
});

const series = chart.addLineSeries({ title: 'TITLE' });

series.setData([
  { time: '1990-04-24', value: 0 },
  { time: '1990-04-25', value: 1 },
  { time: '1990-04-26', value: 2 },
]);

series.createPriceLine({ color: 'red', title: 'price line', price: 2 });
@kirchet kirchet self-assigned this Mar 17, 2022
@timocov timocov added the bug Unexpected problem or unintended behavior. label Mar 17, 2022
@timocov timocov added this to the 4.0 milestone Mar 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unexpected problem or unintended behavior.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants