Workaround changed API in Chart-cairo 1.3