I have two charts (one for price, one for volume). I keep them in sync by usingthe various API observer functions. Works wonders.
Except the price scale width - I can get it using the priceScale('right').width() call, but I don't see any way to set it. I'd like to be able to keep the width of both chart's price scales in sync (and keep them set to the max width of the two).
Thanks!

Currently it is not possible to set or adjust the price scale width. The price scale adjusts its width to ensure that the tick marks remain fully visible.
It is however possible to have the volume and price within a single chart if that would suit your needs. Here is an example: https://jsfiddle.net/TradingView/cnbamtuh/
However if you wish to stick with two separate charts then I can suggest a hacky work-around for ensuring that the price scales line up correctly (for charts with the price scale on the right).
Firstly, you can set a custom price formatter to try ensure that the price strings are roughly the same width. This can be done by setting the
localizationproperty on the chart options (either duringcreateChart()or withchart.applyOptions()(https://tradingview.github.io/lightweight-charts/docs/api/interfaces/ChartOptions).If you set a custom font family which is monospaced then you might already have a working solution.
However if you stick with the default fonts then you will most likely need to do the following step as well.
You can then measure the widths of each priceScale using
series.priceScale().width()(https://tradingview.github.io/lightweight-charts/docs/api/interfaces/IPriceScaleApi) and manually adjust the chart sizes using an inline style on the container element for the chart