{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "1f943ba7-352d-4358-8c80-5a397ecc7c0f", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " " ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ " " ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ " \n", " " ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ " \n", " " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "%useLatestDescriptors\n", "%use dataframe\n", "%use lets-plot" ] }, { "cell_type": "markdown", "id": "2a51cb88-6706-4266-a2c0-794dad6ef810", "metadata": {}, "source": [ "# Customizing `geomPie()` with `start` and `direction` Parameters\n", "Two new parameters have been added to the `geomPie()` function:\n", "\n", "- `start`: specifies the starting angle of the first slice in degrees (0-360°)\n", "- `direction`: controls sector layout direction (1 for clockwise or -1 for counterclockwise)\n", "\n", "Previously, pie charts were limited by fixed positioning where the second slice always started at 0° and all slices were arranged clockwise. \n", "These new parameters provide precise control over slice positioning and orientation. " ] }, { "cell_type": "code", "execution_count": 2, "id": "83168fbc-3b0d-4899-998b-5339d4edc47f", "metadata": {}, "outputs": [ { "data": { "application/kotlindataframe+json": "{\"nrow\":3,\"ncol\":2,\"columns\":[\"Country\",\"GDP_2025_Trillion_USD\"],\"kotlin_dataframe\":[{\"Country\":\"United States\",\"GDP_2025_Trillion_USD\":30.34},{\"Country\":\"China\",\"GDP_2025_Trillion_USD\":19.53},{\"Country\":\"Germany\",\"GDP_2025_Trillion_USD\":4.92}]}", "text/html": [ " \n", " \n", " \n", " \n", " \n", "DataFrame: rowsCount = 3, columnsCount = 2
\n", "| Country | GDP_2025_Trillion_USD |
|---|---|
| United States | 30.340000 |
| China | 19.530000 |
| Germany | 4.920000 |