question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Second vertical axis not appearing (leftPriceScale)

See original GitHub issue

Thank you so much for offering this amazing library!

I was very excited to try the TradingView library and was surprised that it wasn’t built in React, so I was relieved to see that you created this React wrapper. 😃

Describe the bug

  1. It would have been nice to have documentation explain that series options need to be passed as an options object that will be used here: https://github.com/Kaktana/kaktana-react-lightweight-charts/blob/53cb75398fdb508aa7edf7af3fc597f6151c6ce2/src/kaktana-react-lightweight-charts.js#L144.
  2. It seems that priceScaleId: "left" is not working.
const lineSeries = [
  {
    data: mainSeriesData,
    options: {
      priceScaleId: "left", 
      title: "Portfolio Value"
    }
  },
  {
    data: percentSeriesData,
    options: {
      priceScaleId: "right",
      title: "Profit/loss %"
    }
  }
];

To Reproduce See https://codesandbox.io/s/stoic-northcutt-j9ti9?file=/src/App.tsx

Does kaktana-react-lightweight-charts wrapper not honor left vertical axis? Or am I doing something wrong?

image

(https://jsfiddle.net/3yeszpt5/ works without the wrapper.)

Expected behavior I should see 2 vertical axes, like at https://jsfiddle.net/3yeszpt5/.

Thank you so much for your help!

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:9

github_iconTop GitHub Comments

2reactions
tomlistercommented, May 16, 2021

It’s because they forgot to rebuild their dist. So version 2 is still being shipped on npm.

Not sure I’ll take a look for you soon

1reaction
kdrendel99commented, Apr 4, 2022

+1 to this issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add or remove a secondary axis in a chart in Excel
On the Series Options tab, under Plot Series On, click Secondary Axis and then click Close. A secondary vertical axis is displayed in...
Read more >
How to create two vertical axes on the same side
Add the secondary vertical axis · Right-click in the data series and choose Format Data Series... in the popup menu: Format data series...
Read more >
How to Add a Secondary Axis in Excel Charts (Easy Guide)
In this tutorial, I will show you how to add a secondary axis to a chart in Excel. It takes only a few...
Read more >
Option for Secondary Axis not Appearing
I have two Combo charts on two different tabs within one report. On the first graph, the X axis notes the Project Name....
Read more >
How to add or remove a secondary axis in Microsoft Excel
The scale of the secondary vertical axis shows the values for the associated data series. A secondary axis works well in a chart...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found