Second vertical axis not appearing (leftPriceScale)
See original GitHub issueThank 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
- 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. - 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?
(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:
- Created 2 years ago
- Comments:9
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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
+1 to this issue