Forum Discussion
SVG Bar Chart within a table
- 6 years ago
That probably means that internally the SVG defaults the chart scale to 100 if no value is given.
In that case you need to provide a dynamic chart scale based on your largest number.
Say, your numbers a and b are 4300 and 3500. Then your chart scale should be a "1" followed by
(int(LOG10(max(number a,number b))+1) "0" strings.
That probably means that internally the SVG defaults the chart scale to 100 if no value is given.
In that case you need to provide a dynamic chart scale based on your largest number.
Say, your numbers a and b are 4300 and 3500. Then your chart scale should be a "1" followed by
(int(LOG10(max(number a,number b))+1) "0" strings.
Thank you that really helped. Your idea of getting the maximum did the trick. Thank you