- struct scatterplot_chart *spc;
-
- spc = xzalloc (sizeof *spc);
- chart_item_init (&spc->chart_item, &scatterplot_chart_class, label);
+ struct scatterplot_chart *spc = XZALLOC (struct scatterplot_chart);
+ chart_init (&spc->chart, &scatterplot_chart_class, label);