Currently I have my data dynamically pulled from an API and I have my piechart within a listview. Is it possible to set a fixed size for the piechart (excluding legends) and have the legends at the bottom span the height they need? Currently I am calculating the height of the container containing the listview using this.
newCardHeight = 400.0 + (25 * data.length);
And oddly the height of the pie chart would expand if the newCardHeight has too much of its height. And vise versa it would compress the size of the pie chart if the height is too small.
Is there anyway to set a fixed width and height for the pie chart itself?
Currently I have my data dynamically pulled from an API and I have my piechart within a listview. Is it possible to set a fixed size for the piechart (excluding legends) and have the legends at the bottom span the height they need? Currently I am calculating the height of the container containing the listview using this.
newCardHeight = 400.0 + (25 * data.length);
And oddly the height of the pie chart would expand if the
newCardHeight
has too much of its height. And vise versa it would compress the size of the pie chart if the height is too small.Is there anyway to set a fixed width and height for the pie chart itself?