@justEfere
Posted
to actually get the exact dynamic height. You need to find what percent is the .json amount value to the total height of the chart div.. for example. if the total height of the div is 200px, and the .json amount is 23.4. you then need to find 23.4% of 200 and use the value as fill value for the div.
${(23.4/100)*200}px will give you the exact height for any div and make it dynamic.
I hope this was helpful.
Marked as helpful
@Saad-Hisham
Posted
ty bro I used Photoshop to get the size of every bar and divide it on JSON amount code for the same bar and all bars gave me the value 2.86 so I guessed this is the equation @justEfere