Titles of chart seem to be truncated
Added by Joseph Nalluri over 9 years ago
Hello,
On implementing a Charts Widget, and also the Wt Chart examples, I am observing that the title appears to be truncated. Please see the screenshots. In both the implementations this problem is consistent with all both kinds of chart type. Anyone encountered this? Or am I missing something here?
Thanks.
chartTitle.JPG (115 KB) chartTitle.JPG | Chart Titles cut |
Replies (3)
RE: Titles of chart seem to be truncated - Added by Wim Dumon over 9 years ago
Hello Joseph,
Everything in the chart widget is truncated at the borders of the widget. You must make sure you configure the sizes and positions of all components of the chart to fit inside the widget.
Regards,
Wim.
RE: Titles of chart seem to be truncated - Added by Koen Deforche over 9 years ago
What version of Wt are you using? Do you see the same issue with the online version of the wt charts example?
In recent versions of Wt, there's a setAutoLayoutEnabled() call which automatically adjusts the chart area padding to make everything fit. Before that, you had to provide enough padding within the chart (i.e. margin around the actual chart) for labels and titles.
RE: Titles of chart seem to be truncated - Added by Joseph Nalluri over 9 years ago
I could resolve this by adding some padding around the chart. I have disabled the setAutolayoutEnabled because it was giving errors earlier.
Nonetheless, it works now!
Thanks.