Skip to content

Tag: javascript

Plotly – How to remove the rangeslider

By default, candlestick and ohlc charts display a rangeslider. It seems like there’s no parameter to change the setting. So I’ve looked at javascript code in html file but was not able to find a clue to remove it. Can someone explain how to remove the rangeslider from candlestick chart? Answer I f…

Use zlib.js to decompress python zlib compress

On the server side I use python zlib to compress a string as follows: The result of the previous code is the following On the client side I use zlib.js to decompress I get the following error what am I doing wrong? Answer The problem was coding. in python I used base64 to encode. On the client side: Thank you

Odoo. Hide some options in field selection

I have some selection field in my model. Here example: In some cases I need hide specific options in selection(or radio buttons). How I can do this properly? Below screen from base calendar module which can more explain about my problem. Thanks in advance. Answer I found the solution. First of all we need to …