{"id":2090,"date":"2026-07-02T09:35:52","date_gmt":"2026-07-02T09:35:52","guid":{"rendered":"https:\/\/www.vpascode.com\/pl\/docs\/uncategorized\/mermaid-js-pie-chart-syntax-data-guide\/"},"modified":"2026-07-02T09:35:52","modified_gmt":"2026-07-02T09:35:52","slug":"mermaid-js-pie-chart-syntax-data-guide","status":"publish","type":"ld_docs","link":"https:\/\/www.vpascode.com\/pl\/docs\/vpascode-docs\/mermaid-js-pie-chart-syntax-data-guide\/","title":{"rendered":"Sk\u0142adnia wykresu ko\u0142owego Mermaid.js i przewodnik danych"},"content":{"rendered":"<p>Wykresy ko\u0142owe to okr\u0105g\u0142e grafiki statystyczne u\u017cywane do przedstawiania proporcji liczbowych poprzez podzia\u0142 danych na kawa\u0142ki. W Mermaid.js mo\u017cesz automatycznie tworzy\u0107 czyste, reaguj\u0105ce na zmiany podzia\u0142y danych bez zajmowania si\u0119 skomplikowanymi bibliotekami wykres\u00f3w ani narz\u0119dziami do projektowania wektorowego. Silnik renderuj\u0105cy dynamicznie obs\u0142uguje wszystkie przypisania kolor\u00f3w i obliczenia procentowe.<\/p>\n<h2>Podstawowa struktura sk\u0142adni<\/h2>\n<p>Ka\u017cdy wykres ko\u0142owy zaczyna si\u0119 od <code>pie<\/code> deklaracji. Mo\u017cesz opcjonalnie doda\u0107 tytu\u0142, po kt\u00f3rym nast\u0119puj\u0105 wpisy danych, gdzie etykiety kategorii s\u0105 otoczone cudzys\u0142owami i sparowane z dodatnimi warto\u015bciami liczbowymi.<\/p>\n<div class=\"vpascode-viewer-container vpascode-fancy-active\">\n<div class=\"vpascode-header\">\n<span class=\"vpascode-lang-label\">Mermaid<\/span><br \/>\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNoryEzl5SrJLMlJVQhOzC0AUgGZqQrOGYlFJbxcSs6JJanp+UWVCo5KClYKJqbIQk4gIWMDZCFnkJCRKQA7Oxfc\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 8px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>Edytuj Mermaid w VPasCode<\/span><br \/>\n<\/a>\n<\/div>\n<div class=\"vpascode-code-wrapper\">\n            <div class=\"vpascode-viewer-container vpascode-fancy-active\">\r\n                                <div class=\"vpascode-header\">\r\n                    <span class=\"vpascode-lang-label\">Mermaid<\/span>\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNoryEzl5SqpLCk92qQQUFRVmX20KTElv7xSobwyuyi1WCE7\/2gTkMvLpeSdWJKanl+UmajgqKRgpWBiiiLmBBIzNkARcwaJGZkCAP6TICA=\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 8px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n                                <div class=\"vpascode-code-wrapper\">\r\n                    <pre class=\"lang-mermaid\"><code class=\"language-mermaid\" data-language=\"mermaid\" class=\"language-mermaid\">pie\r\ntytu\u0142 Przyk\u0142adowy wykres ko\u0142owy\r\n\"Kategoria A\" : 45\r\n\"Kategoria B\" : 30\r\n\"Kategoria C\" : 25<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNoryEzl5SqpLCk92qQQUFRVmX20KTElv7xSobwyuyi1WCE7\/2gTkMvLpeSdWJKanl+UmajgqKRgpWBiiiLmBBIzNkARcwaJGZkCAP6TICA=\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 6px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n            <\/div>\r\n            \n<\/p><\/div>\n<div class=\"vpascode-actions\">\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNoryEzl5SrJLMlJVQhOzC0AUgGZqQrOGYlFJbxcSs6JJanp+UWVCo5KClYKJqbIQk4gIWMDZCFnkJCRKQA7Oxfc\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 6px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>Edytuj Mermaid w VPasCode<\/span><br \/>\n<\/a>\n<\/div>\n<\/div>\n<p id=\"tMloqNP\"><img fetchpriority=\"high\" alt=\"\" class=\"alignnone size-full wp-image-906\" decoding=\"async\" fetchpriority=\"high\" height=\"450\" sizes=\"(max-width: 595px) 100vw, 595px\" src=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a46313c62838.png\" srcset=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a46313c62838.png 595w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a46313c62838-300x227.png 300w\" width=\"595\"\/><\/p>\n<h2>Odwo\u0142anie do sk\u0142adni<\/h2>\n<p>Poni\u017csza tabela rozk\u0142ada podstawowe opcje strukturalne u\u017cywane do tworzenia mapy wykresu ko\u0142owego w Mermaid.js.<\/p>\n<table border=\"1\" cellpadding=\"5\" cellspacing=\"0\">\n<thead>\n<tr>\n<th>Sk\u0142adnik<\/th>\n<th>Opis<\/th>\n<th>Przyk\u0142ad sk\u0142adni<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>Deklaracja<\/strong><\/td>\n<td>Inicjuje silnik renderowania wykresu ko\u0142owego.<\/td>\n<td><code>pie<\/code><\/td>\n<\/tr>\n<tr>\n<td><strong>Flaga wy\u015bwietlania danych<\/strong><\/td>\n<td>Opcjonalny modyfikator dodawany od razu po <code>pie<\/code>aby wy\u015bwietli\u0107 rzeczywiste liczby obok obliczonych procent\u00f3w.<\/td>\n<td><code>pie showData<\/code><\/td>\n<\/tr>\n<tr>\n<td><strong>Tytu\u0142<\/strong><\/td>\n<td>Opcjonalny nag\u0142\u00f3wek wy\u015bwietlany wyra\u017anie powy\u017cej \u015brodka uk\u0142adu wykresu.<\/td>\n<td><code>tytu\u0142 \u0179r\u00f3d\u0142a przychod\u00f3w Q3<\/code><\/td>\n<\/tr>\n<tr>\n<td><strong>Etykieta wpisu danych<\/strong><\/td>\n<td>Nazwa kategorii, kt\u00f3ra zawsze musi by\u0107 otoczona podw\u00f3jnymi cudzys\u0142owami.<\/td>\n<td><code>\"Wyszukiwanie organiczne\"<\/code><\/td>\n<\/tr>\n<tr>\n<td><strong>Separator danych<\/strong><\/td>\n<td>Znak dwukropka oddzielaj\u0105cy ci\u0105g znak\u00f3w etykiety od jej warto\u015bci matematycznej.<\/td>\n<td><code>:<\/code><\/td>\n<\/tr>\n<tr>\n<td><strong>Warto\u015b\u0107 danych<\/strong><\/td>\n<td>Liczba dodatnia. Obs\u0142uguje bezwzgl\u0119dne liczby lub bezpo\u015brednie wagi dziesi\u0119tne do dw\u00f3ch miejsc po przecinku.<\/td>\n<td><code>54.25<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr\/>\n<h2>Szczeg\u00f3\u0142 z rzeczywistego \u015bwiata: \u017ar\u00f3d\u0142a ruchu na stronie internetowej<\/h2>\n<p>Ten szablon przedstawia klasyczny podzia\u0142 pulpitu marketingowego i analitycznego. U\u017cywa parametru <code>showData<\/code> aby jasno wy\u015bwietli\u0107 surowe metryki ruchu bezpo\u015brednio w legendzie, podczas gdy wykres przedstawia proporcje uk\u0142adu.<\/p>\n<div class=\"vpascode-viewer-container vpascode-fancy-active\">\n<div class=\"vpascode-header\">\n<span class=\"vpascode-lang-label\">Mermaid<\/span><br \/>\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNo1y0EKwjAQQNG94B2GnqCtrVS3rUsRjBcY4qQZSJMyCXh9M4Lb\/\/g7E2SfPgsWhMIlEMxJCF6CzrGF2WOMFPLx0DxkxViTIRTrG7jCaRzaCgsL2fJfFPqhUzDJMga405tRczeNmp\/kSKSC4UJZ4dJrv23IAWbcduQ1\/uA8tV81oDA3\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 8px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>Edytuj Mermaid w VPasCode<\/span><br \/>\n<\/a>\n<\/div>\n<div class=\"vpascode-code-wrapper\">\n            <div class=\"vpascode-viewer-container vpascode-fancy-active\">\r\n                                <div class=\"vpascode-header\">\r\n                    <span class=\"vpascode-lang-label\">Mermaid<\/span>\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNotzT0KwkAQhuFe8A5DeiHGRKK1nQiihfW4GcyYZDfsD0tSBjyF1zH3cles3+fj65nA1Mof0CJYti3BWVXGoleeoEGJ8zSAdqJ2y0VyG8zoGvaoGwalHyhZjJIS2MOmyNMgLkHCncZezW9NleTYsnwd24kqRjAhTRRmQQgOL1GsyyKKq9VKDqAqH4x7fl7iV3dZjEfs+nBIQKsOuf0vt2X6BcX8Qvo=\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 8px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n                                <div class=\"vpascode-code-wrapper\">\r\n                    <pre class=\"lang-mermaid\"><code class=\"language-mermaid\" data-language=\"mermaid\" class=\"language-mermaid\">pie showData title Podstawowe kana\u0142y ruchu\r\n\"Wyszukiwarki organiczne\" : 3540\r\n\"Ruch bezpo\u015bredni\" : 2410\r\n\"Media spo\u0142eczno\u015bciowe\" : 1850\r\n\"Strony odwo\u0142uj\u0105ce\" : 920\r\n\"Kampanie e-mailowe\" : 680<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNotzT0KwkAQhuFe8A5DeiHGRKK1nQiihfW4GcyYZDfsD0tSBjyF1zH3cles3+fj65nA1Mof0CJYti3BWVXGoleeoEGJ8zSAdqJ2y0VyG8zoGvaoGwalHyhZjJIS2MOmyNMgLkHCncZezW9NleTYsnwd24kqRjAhTRRmQQgOL1GsyyKKq9VKDqAqH4x7fl7iV3dZjEfs+nBIQKsOuf0vt2X6BcX8Qvo=\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 6px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n            <\/div>\r\n            \n<\/p><\/div>\n<div class=\"vpascode-actions\">\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNo1y0EKwjAQQNG94B2GnqCtrVS3rUsRjBcY4qQZSJMyCXh9M4Lb\/\/g7E2SfPgsWhMIlEMxJCF6CzrGF2WOMFPLx0DxkxViTIRTrG7jCaRzaCgsL2fJfFPqhUzDJMga405tRczeNmp\/kSKSC4UJZ4dJrv23IAWbcduQ1\/uA8tV81oDA3\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 6px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>Edytuj Mermaid w VPasCode<\/span><br \/>\n<\/a>\n<\/div>\n<\/div>\n<p id=\"zCZZawO\"><img alt=\"\" class=\"alignnone size-full wp-image-907\" decoding=\"async\" height=\"450\" sizes=\"(max-width: 684px) 100vw, 684px\" src=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a46314896f59.png\" srcset=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a46314896f59.png 684w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a46314896f59-300x197.png 300w\" width=\"684\"\/><\/p>\n<hr\/>\n<p><em><strong>Porada sk\u0142adniowa:<\/strong> Domy\u015blnie Mermaid wy\u015bwietla tylko wzgl\u0119dne obliczone procenty (np. 35%) nad ka\u017cdym obszarem wykresu. Dodanie s\u0142owa kluczowego <code>showData<\/code> natychmiast po <code>pie<\/code> zmienia etykiety tak, aby wy\u015bwietla\u0142y zar\u00f3wno procent na wykresie, jak i dok\u0142adne warto\u015bci surowe w do\u0142\u0105czonym li\u015bcie legendy.<\/em><\/p>\n<hr\/>\n<h2>Zaawansowane poj\u0119cie: Dyrektywy i formatowanie<\/h2>\n<p>Dla stron dokumentacji o wysokiej g\u0119sto\u015bci mo\u017cesz zastosowa\u0107 dyrektyw\u0119 konfiguracji w linii w g\u00f3rnej cz\u0119\u015bci fragmentu kodu, aby dostosowa\u0107 zachowanie stylizacji, zmieni\u0107 przesuni\u0119cia umiejscowienia tekstu lub zmodyfikowa\u0107 style linii strukturalnych.<\/p>\n<div class=\"vpascode-viewer-container vpascode-fancy-active\">\n<div class=\"vpascode-header\">\n<span class=\"vpascode-lang-label\">Mermaid<\/span><br \/>\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNpFjsGKwkAMhu+FvkPoYW8t1VUPvbkKnkRhwT2PnWwbnE5KJq0+\/s4UYU+B\/\/vzJWVZ5lnL\/pe6Js8ARsJlAii+9MqBlNg3UFe7FGuPA96MkLk7DO9m3LlMivKtwg\/8Iat9A8Xn+CryrEz+WAAldQiXEcUko3HwNdkOFfbOcbtkeVZche3UKhxxRsfjgF4LaGBTV9tIz0YeqOQ7+ICT8FP7BNfbap3oYQrKA8r\/kbDguqoj3duBPAVNZI6PzCg9Gpsaq00U\/AGp9VED\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 8px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>Edytuj Mermaid w VPasCode<\/span><br \/>\n<\/a>\n<\/div>\n<div class=\"vpascode-code-wrapper\">\n            <div class=\"vpascode-viewer-container vpascode-fancy-active\">\r\n                                <div class=\"vpascode-header\">\r\n                    <span class=\"vpascode-lang-label\">Mermaid<\/span>\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNotjTtuwzAMQHcDvgPh3YabTwffoU3QAunMRKxDy5YMmUJijblS126F71XJyESA7\/GxLMs8u1jzzW2TZwAj0zoBhO5ytBMLW9NAXb2mtVxpoBM6xnNP09OMNwcv5D7FWU1frOTaQLEd70WelakfBRCWnuDowqwC4\/KAs1fLL4kHO5LDy9wZam2eFR823P5+OhidVV6LL6CBXV3tI3pDp0nYtMBwC85OkuBmX20SPaydjiCA7pmM4MArr6s64nfUywPVDKgGNjzJ82lSXnYx8Q\/JHlUC\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 8px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n                                <div class=\"vpascode-code-wrapper\">\r\n                    <pre class=\"lang-mermaid\"><code class=\"language-mermaid\" data-language=\"mermaid\" class=\"language-mermaid\">---\r\nconfig:\r\n  pie:\r\n    textPosition: 0.6\r\n  themeVariables:\r\n    pieOuterStrokeWidth: \"3px\"\r\n---\r\npie title Przydzia\u0142 bud\u017cetu operacyjnego\r\n\"Rozw\u00f3j produktu\" : 40.5\r\n\"Marketing i wzrost\" : 25.25\r\n\"Operacje z klientami\" : 20.0\r\n\"Nak\u0142ady administracyjne\" : 14.25<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNotjTtuwzAMQHcDvgPh3YabTwffoU3QAunMRKxDy5YMmUJijblS126F71XJyESA7\/GxLMs8u1jzzW2TZwAj0zoBhO5ytBMLW9NAXb2mtVxpoBM6xnNP09OMNwcv5D7FWU1frOTaQLEd70WelakfBRCWnuDowqwC4\/KAs1fLL4kHO5LDy9wZam2eFR823P5+OhidVV6LL6CBXV3tI3pDp0nYtMBwC85OkuBmX20SPaydjiCA7pmM4MArr6s64nfUywPVDKgGNjzJ82lSXnYx8Q\/JHlUC\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 6px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n            <\/div>\r\n            \n<\/p><\/div>\n<div class=\"vpascode-actions\">\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNpFjsGKwkAMhu+FvkPoYW8t1VUPvbkKnkRhwT2PnWwbnE5KJq0+\/s4UYU+B\/\/vzJWVZ5lnL\/pe6Js8ARsJlAii+9MqBlNg3UFe7FGuPA96MkLk7DO9m3LlMivKtwg\/8Iat9A8Xn+CryrEz+WAAldQiXEcUko3HwNdkOFfbOcbtkeVZche3UKhxxRsfjgF4LaGBTV9tIz0YeqOQ7+ICT8FP7BNfbap3oYQrKA8r\/kbDguqoj3duBPAVNZI6PzCg9Gpsaq00U\/AGp9VED\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 6px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>Edytuj Mermaid w VPasCode<\/span><br \/>\n<\/a>\n<\/div>\n<\/div>\n<p id=\"cNQyAwW\"><img alt=\"\" class=\"alignnone size-full wp-image-908\" decoding=\"async\" height=\"450\" sizes=\"(max-width: 700px) 100vw, 700px\" src=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a463155bf5dd.png\" srcset=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a463155bf5dd.png 700w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a463155bf5dd-300x193.png 300w\" width=\"700\"\/><\/p>\n<h2>Typowe b\u0142\u0119dy sk\u0142adniowe<\/h2>\n<p>Cho\u0107 wykresy ko\u0142owe maj\u0105 jedn\u0105 z najprostszych sk\u0142adni w Mermaid, kilka b\u0142\u0119d\u00f3w formatowania mo\u017ce spowodowa\u0107 niepowodzenie analizy uk\u0142adu. Unikaj tych typowych b\u0142\u0119d\u00f3w:<\/p>\n<ul>\n<li><strong>Liczby ujemne:<\/strong> Silnik renderuj\u0105cy akceptuje tylko dodatnie warto\u015bci liczbowe. Przekazanie warto\u015bci ujemnej lub zera spowoduje naruszenie granic przetwarzania matematycznego.<\/li>\n<li><strong>Wymagania dotycz\u0105ce cudzys\u0142ow\u00f3w:<\/strong> Etykiety kategorii danych musz\u0105 zawsze u\u017cywa\u0107 podw\u00f3jnych cudzys\u0142ow\u00f3w. Jednokrotne cudzys\u0142owy lub brak cudzys\u0142ow\u00f3w spowoduje niepowodzenie kompilacji.<\/li>\n<li><strong>Ograniczenia dok\u0142adno\u015bci dziesi\u0119tnej:<\/strong> Cho\u0107 Mermaid p\u0142ynnie obs\u0142uguje dok\u0142adne liczby dziesi\u0119tne zmiennoprzecinkowe, domy\u015blnie \u015bledzi parametry z dok\u0142adno\u015bci\u0105 do dw\u00f3ch miejsc po przecinku. Zaokr\u0105glanie warto\u015bci z g\u00f3ry zapewnia \u015bcis\u0142\u0105 sp\u00f3jno\u015b\u0107.<\/li>\n<li><strong>G\u0119sto\u015b\u0107 kawa\u0142k\u00f3w:<\/strong> Aby zapewni\u0107 czytelne komunikowanie wizualne, najlepszym rozwi\u0105zaniem jest ograniczenie wykres\u00f3w do 6\u20138 kawa\u0142k\u00f3w. Je\u015bli zestawy danych zawieraj\u0105 wi\u0119cej element\u00f3w, po\u0142\u0105cz mniejsze w\u0119z\u0142y razem w kategorii \u201ePozosta\u0142e\u201d, aby zapewni\u0107 czytelno\u015b\u0107 projektu.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Wykresy ko\u0142owe to okr\u0105g\u0142e grafiki statystyczne u\u017cywane do przedstawiania proporcji liczbowych poprzez podzia\u0142 danych na kawa\u0142ki. W Mermaid.js mo\u017cesz automatycznie tworzy\u0107 czyste, reaguj\u0105ce na zmiany podzia\u0142y danych bez zajmowania si\u0119 skomplikowanymi bibliotekami wykres\u00f3w ani narz\u0119dziami do projektowania wektorowego. Silnik renderuj\u0105cy&#8230;<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":12,"template":"","meta":{"inline_featured_image":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}}},"ld_collection":[14],"class_list":["post-2090","ld_docs","type-ld_docs","status-publish","hentry","ld_collection-vpascode-docs"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Mermaid Pie Chart Syntax | VPasCode Text to Diagram Guide<\/title>\n<meta name=\"description\" content=\"Render quick percentage distribution breakdown charts using Mermaid pie syntax in VPasCode, a text to diagram tool.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.vpascode.com\/pl\/docs\/vpascode-docs\/mermaid-js-pie-chart-syntax-data-guide\/\" \/>\n<meta property=\"og:locale\" content=\"pl_PL\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Mermaid Pie Chart Syntax | VPasCode Text to Diagram Guide\" \/>\n<meta property=\"og:description\" content=\"Render quick percentage distribution breakdown charts using Mermaid pie syntax in VPasCode, a text to diagram tool.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vpascode.com\/pl\/docs\/vpascode-docs\/mermaid-js-pie-chart-syntax-data-guide\/\" \/>\n<meta property=\"og:site_name\" content=\"VPasCode\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a46313c62838.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Szacowany czas czytania\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minuty\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/docs\\\/vpascode-docs\\\/mermaid-js-pie-chart-syntax-data-guide\\\/\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/docs\\\/vpascode-docs\\\/mermaid-js-pie-chart-syntax-data-guide\\\/\",\"name\":\"Mermaid Pie Chart Syntax | VPasCode Text to Diagram Guide\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/docs\\\/vpascode-docs\\\/mermaid-js-pie-chart-syntax-data-guide\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/docs\\\/vpascode-docs\\\/mermaid-js-pie-chart-syntax-data-guide\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.vpascode.com\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/img_6a46313c62838.png\",\"datePublished\":\"2026-07-02T09:35:52+00:00\",\"description\":\"Render quick percentage distribution breakdown charts using Mermaid pie syntax in VPasCode, a text to diagram tool.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/docs\\\/vpascode-docs\\\/mermaid-js-pie-chart-syntax-data-guide\\\/#breadcrumb\"},\"inLanguage\":\"pl-PL\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/docs\\\/vpascode-docs\\\/mermaid-js-pie-chart-syntax-data-guide\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pl-PL\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/docs\\\/vpascode-docs\\\/mermaid-js-pie-chart-syntax-data-guide\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/img_6a46313c62838.png\",\"contentUrl\":\"https:\\\/\\\/www.vpascode.com\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/img_6a46313c62838.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/docs\\\/vpascode-docs\\\/mermaid-js-pie-chart-syntax-data-guide\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Lean Docs\",\"item\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/docs\\\/%ld_collection%\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Sk\u0142adnia wykresu ko\u0142owego Mermaid.js i przewodnik danych\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/#website\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/\",\"name\":\"VPasCode\",\"description\":\"by Visual Paradigm\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pl-PL\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/#organization\",\"name\":\"VPasCode\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pl-PL\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/wp-content\\\/uploads\\\/sites\\\/9\\\/2026\\\/06\\\/cropped-vp-online-logo-v1.png\",\"contentUrl\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/wp-content\\\/uploads\\\/sites\\\/9\\\/2026\\\/06\\\/cropped-vp-online-logo-v1.png\",\"width\":128,\"height\":138,\"caption\":\"VPasCode\"},\"image\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Mermaid Pie Chart Syntax | VPasCode Text to Diagram Guide","description":"Render quick percentage distribution breakdown charts using Mermaid pie syntax in VPasCode, a text to diagram tool.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.vpascode.com\/pl\/docs\/vpascode-docs\/mermaid-js-pie-chart-syntax-data-guide\/","og_locale":"pl_PL","og_type":"article","og_title":"Mermaid Pie Chart Syntax | VPasCode Text to Diagram Guide","og_description":"Render quick percentage distribution breakdown charts using Mermaid pie syntax in VPasCode, a text to diagram tool.","og_url":"https:\/\/www.vpascode.com\/pl\/docs\/vpascode-docs\/mermaid-js-pie-chart-syntax-data-guide\/","og_site_name":"VPasCode","og_image":[{"url":"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a46313c62838.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Szacowany czas czytania":"3 minuty"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vpascode.com\/pl\/docs\/vpascode-docs\/mermaid-js-pie-chart-syntax-data-guide\/","url":"https:\/\/www.vpascode.com\/pl\/docs\/vpascode-docs\/mermaid-js-pie-chart-syntax-data-guide\/","name":"Mermaid Pie Chart Syntax | VPasCode Text to Diagram Guide","isPartOf":{"@id":"https:\/\/www.vpascode.com\/pl\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.vpascode.com\/pl\/docs\/vpascode-docs\/mermaid-js-pie-chart-syntax-data-guide\/#primaryimage"},"image":{"@id":"https:\/\/www.vpascode.com\/pl\/docs\/vpascode-docs\/mermaid-js-pie-chart-syntax-data-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a46313c62838.png","datePublished":"2026-07-02T09:35:52+00:00","description":"Render quick percentage distribution breakdown charts using Mermaid pie syntax in VPasCode, a text to diagram tool.","breadcrumb":{"@id":"https:\/\/www.vpascode.com\/pl\/docs\/vpascode-docs\/mermaid-js-pie-chart-syntax-data-guide\/#breadcrumb"},"inLanguage":"pl-PL","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vpascode.com\/pl\/docs\/vpascode-docs\/mermaid-js-pie-chart-syntax-data-guide\/"]}]},{"@type":"ImageObject","inLanguage":"pl-PL","@id":"https:\/\/www.vpascode.com\/pl\/docs\/vpascode-docs\/mermaid-js-pie-chart-syntax-data-guide\/#primaryimage","url":"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a46313c62838.png","contentUrl":"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a46313c62838.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.vpascode.com\/pl\/docs\/vpascode-docs\/mermaid-js-pie-chart-syntax-data-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vpascode.com\/pl\/"},{"@type":"ListItem","position":2,"name":"Lean Docs","item":"https:\/\/www.vpascode.com\/pl\/docs\/%ld_collection%\/"},{"@type":"ListItem","position":3,"name":"Sk\u0142adnia wykresu ko\u0142owego Mermaid.js i przewodnik danych"}]},{"@type":"WebSite","@id":"https:\/\/www.vpascode.com\/pl\/#website","url":"https:\/\/www.vpascode.com\/pl\/","name":"VPasCode","description":"by Visual Paradigm","publisher":{"@id":"https:\/\/www.vpascode.com\/pl\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.vpascode.com\/pl\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pl-PL"},{"@type":"Organization","@id":"https:\/\/www.vpascode.com\/pl\/#organization","name":"VPasCode","url":"https:\/\/www.vpascode.com\/pl\/","logo":{"@type":"ImageObject","inLanguage":"pl-PL","@id":"https:\/\/www.vpascode.com\/pl\/#\/schema\/logo\/image\/","url":"https:\/\/www.vpascode.com\/pl\/wp-content\/uploads\/sites\/9\/2026\/06\/cropped-vp-online-logo-v1.png","contentUrl":"https:\/\/www.vpascode.com\/pl\/wp-content\/uploads\/sites\/9\/2026\/06\/cropped-vp-online-logo-v1.png","width":128,"height":138,"caption":"VPasCode"},"image":{"@id":"https:\/\/www.vpascode.com\/pl\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.vpascode.com\/pl\/wp-json\/wp\/v2\/ld_docs\/2090","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vpascode.com\/pl\/wp-json\/wp\/v2\/ld_docs"}],"about":[{"href":"https:\/\/www.vpascode.com\/pl\/wp-json\/wp\/v2\/types\/ld_docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.vpascode.com\/pl\/wp-json\/wp\/v2\/users\/3"}],"wp:attachment":[{"href":"https:\/\/www.vpascode.com\/pl\/wp-json\/wp\/v2\/media?parent=2090"}],"wp:term":[{"taxonomy":"ld_collection","embeddable":true,"href":"https:\/\/www.vpascode.com\/pl\/wp-json\/wp\/v2\/ld_collection?post=2090"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}