{"id":15377,"date":"2016-06-03T16:00:38","date_gmt":"2016-06-03T08:00:38","guid":{"rendered":"http:\/\/localhost\/help\/?page_id=15377"},"modified":"2017-12-14T14:37:09","modified_gmt":"2017-12-14T06:37:09","slug":"pie-chart-4-3-2","status":"publish","type":"page","link":"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/pie-chart\/pie-chart-4-3-2\/","title":{"rendered":"Pie Chart (4.3.2)"},"content":{"rendered":"<p class=\"page-subheading\"><\/p>\n<p class=\"left-bar\">This article applies to the Pie Chart in versions 4.3.2 and earlier of P2 Explorer.\u00a0For help on the latest version, see <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/pie-chart\/\">Pie Chart<\/a>.<\/p>\n<h3 class=\"page-subheading\">Overview<\/h3>\n<p class=\"intro-text\">The Pie Chart\u00a0shows\u00a0a circular shape divided into coloured sectors that each represent a proportion of the whole. It is best used when the\u00a0parts sum up to a meaningful whole and do not overlap. To ensure a readable chart, the number of parts should be less than 5.<\/p>\n<p class=\"intro-text\">The following diagram shows a Pie Chart\u00a0being configured:<\/p>\n<p class=\"intro-text\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/03\/pie.png\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-3326\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/03\/pie-800x366.png\" alt=\"pie\" width=\"800\" height=\"366\" \/><\/a><\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"130\"><strong>Source Data<\/strong>:<\/td>\n<td>The dataset from which the Pie Chart\u00a0sources its data.<\/td>\n<\/tr>\n<tr>\n<td><strong>Legend<\/strong>:<\/td>\n<td>Select the check box if you want to display the legend for the Pie Chart. The legend is displayed to the right of the chart.<\/td>\n<\/tr>\n<tr>\n<td><strong>Value Column<\/strong>:<\/td>\n<td>The column that contains the values that will be represented as a slice of the pie.<\/td>\n<\/tr>\n<tr>\n<td><strong>Name Column<\/strong>:<\/td>\n<td>The column that contains the values that will be used as the labels of each slice (i.e. the legend).<\/td>\n<\/tr>\n<tr>\n<td><strong>Arc Action<\/strong>:<\/td>\n<td>The action to invoke when a user selects a slice of the pie chart.\u00a0<\/td>\n<\/tr>\n<tr>\n<td><strong>Arc Action Selection<\/strong>:<\/td>\n<td>The name of the action parameter that you want to use the selected arc for.\u00a0Note: The name must be enclosed in\u00a0single quotation marks.<\/td>\n<\/tr>\n<tr>\n<td><strong>Selected<\/strong>:<\/td>\n<td>The event that represents the slice of the pie that the user selects.\u00a0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p class=\"page-subheading\">\u00a0<\/p>\n<div style=\"position: relative;\">\n<hr \/>\n<h3 class=\"page-subheading\"><span id=\"Tutorial\">Tutorial<\/span><\/h3>\n<p class=\"intro-text\">The Pie Chart\u00a0is a useful component for displaying portions of a whole. In this topic, we\u2019ll show you how to use the Pie Chart\u00a0to display a breakdown of\u00a0the reasons for downtime for a selected well. This is often used in production summary reports.\u00a0<\/p>\n<p class=\"intro-text\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/03\/pietut.png\" rel=\"lightbox-1\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-3600\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/03\/pietut-800x356.png\" alt=\"pietut\" width=\"800\" height=\"356\" \/><\/a><\/p>\n<p class=\"intro-text\">Let\u2019s look at how we\u2019re actually going to do this, step-by-step.<\/p>\n<hr \/>\n<h3 class=\"page-subheading\"><span id=\"Step_by_Step_Creating_a_Bullet_Graph_That_Displays_TargetvsPlanned\"><span id=\"Step_by_Step_Creating_a_Target_LabelThat_Displays_Targetvs_Actual_Data\"><span id=\"Step_by_Step_Creating_a_MeterThat_Displays_Planned_vs_Actual_Data\"><span id=\"Step_by_Step_Creating_a_Tank_That_Displays_Stored_Oil_Volumes_for_aSelectedEntity\"><span id=\"Step_by_Step_Creating_a_Schematic_Using_Precision_Layout\"><span id=\"Step_by_Step_Creating_a_Schematic_Using_Precision_Layout\">Step by Step: Creating a Pie Chart That Displays Downtime Reasons<\/span><\/span><\/span><\/span><\/span><\/span><\/h3>\n<p class=\"intro-text\">Before you start, open a new tab in Explorer and click the \u201cCreate a New Page in Studio Mode\u201d thumbnail.\u00a0Choose the <a title=\"Grid Layout\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/grid-layout\/\">grid<\/a>\u00a0layout \u2013 you can adjust the rows and columns if you like but it\u2019s not important for this exercise.<\/p>\n<p class=\"intro-text\">You will need to adjust the configuration to suit your data at your site.<\/p>\n<p class=\"intro-text\"><strong>Step 1. Add\u00a0the source data<\/strong><\/p>\n<p class=\"intro-text\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/03\/piedata.png\" rel=\"lightbox-2\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-3601\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/03\/piedata-800x510.png\" alt=\"piedata\" width=\"800\" height=\"510\" \/><\/a><\/p>\n<p class=\"intro-text\">\u00a0<\/p>\n<p class=\"intro-text\">Before we can display any\u00a0data on the page, \u00a0we need to add the source data.<\/p>\n<ul class=\"intro-text\">\n<li>Below the canvas, click the button labelled \u201c<a title=\"Add Data\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/add-data\/\">Add Data<\/a>\u201c.<\/li>\n<li>Choose the data you are going to use. For this tutorial, we are using a <a title=\"Add a Relational Dataset\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/add-data\/add-a-dataset\/\">dataset<\/a> called \u201cOilDowntimeByReason\u201d.<\/li>\n<li>In the configuration options, specify the following:\n<ul class=\"intro-text\">\n<li>Name: OilDowntimeByReason1 (this is automatically added)<\/li>\n<li>Query: OilDowntimeByReason (this is the query in P2 Server that is being used to return the data)<\/li>\n<li>StartDate: (Datetime)\u00a001\/04\/2015 12:00:00 AM<\/li>\n<li>EndDate: (Datetime)\u00a030\/04\/2015 12:00:00 AM<\/li>\n<li>EntitiesList: (Event) selectedEntity<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p class=\"intro-text\">\u00a0<\/p>\n<p class=\"intro-text\"><strong>Step 2. Add\u00a0the\u00a0Pie Chart<\/strong><\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/03\/piedrag.png\" rel=\"lightbox-3\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-3602\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/03\/piedrag-800x377.png\" alt=\"piedrag\" width=\"800\" height=\"377\" \/><\/a><\/p>\n<p class=\"intro-text\">Drag and drop the Pie Chart component\u00a0onto a grid cell.<\/p>\n<p class=\"intro-text\">\u00a0<\/p>\n<p class=\"intro-text\"><strong>Step 3. Configure the\u00a0Pie Chart<\/strong><\/p>\n<p class=\"intro-text\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/03\/pieconfig.png\" rel=\"lightbox-4\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-3603\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/03\/pieconfig-800x361.png\" alt=\"pieconfig\" width=\"800\" height=\"361\" \/><\/a><\/p>\n<p class=\"intro-text\">Configure the Pie Chart as follows:\u00a0<\/p>\n<ul class=\"intro-text\">\n<li>Source Data: OilDowntimeByReason1<\/li>\n<li>Legend: (Yes\/No) <em>(select this check box)<\/em><\/li>\n<li>Value Column: (Text) SumDowntimeHours<\/li>\n<li>Name Column: (Text) DowntimeReason<\/li>\n<\/ul>\n<p class=\"intro-text\">\u00a0<\/p>\n<p class=\"intro-text\"><strong>Step 4. Add and configure the Entity Selector<\/strong><\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/03\/pieentity1.png\" rel=\"lightbox-5\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3605 size-large\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/03\/pieentity1-800x379.png\" alt=\"\" width=\"800\" height=\"379\" \/><\/a><\/p>\n<p class=\"intro-text\">This step allows the user to select an entity, which will drive the meter indicator and measures.<\/p>\n<ul class=\"intro-text\">\n<li>Drag and drop the <a title=\"Entity Selector\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/entity-selector\/\">Entity Selector<\/a> control onto the canvas.<\/li>\n<li>Configure it as follows:\n<ul class=\"intro-text\">\n<li>Selected Entity: selectedEntity<\/li>\n<li>Selected Entities: selectedEntities<\/li>\n<li>Hierarchy Name: (Text) Oil and Gas<\/li>\n<li>Template Filter: (Text) Oil Producing Well<\/li>\n<li>Number of Selections: 1<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p class=\"intro-text\">\u00a0<\/p>\n<p class=\"intro-text\"><strong>Step 5. All done!<\/strong><\/p>\n<p class=\"intro-text\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/03\/pietut.png\" rel=\"lightbox-1\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-3600\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/03\/pietut-800x356.png\" alt=\"pietut\" width=\"800\" height=\"356\" \/><\/a><\/p>\n<p class=\"intro-text\">Congratulations! You now have a Pie Chart that will show you a breakdown of\u00a0the reasons for downtime for a selected well.<\/p>\n<ul class=\"intro-text\">\n<li>Click the preview\u00a0<a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/03\/preview.png\" rel=\"lightbox[1433] lightbox-7\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2896\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/03\/preview.png\" alt=\"preview\" width=\"13\" height=\"14\" \/><\/a>\u00a0button on the Studio toolbar to see what your page will look like in run-time.<\/li>\n<li>Select different entities and observe the changes in the pie chart.<\/li>\n<\/ul>\n<p class=\"intro-text\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1348\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/save.png\" alt=\"save\" width=\"48\" height=\"53\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/save.png 48w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/save-22x24.png 22w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/save-33x36.png 33w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/save-43x48.png 43w\" sizes=\"auto, (max-width: 48px) 100vw, 48px\" \/> Don\u2019t forget to <a title=\"Saving Your Page\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-create-your-first-page\/saving-your-page\/\">save your page<\/a>!<\/p>\n<\/div>\n<div style=\"position: relative;\">\u00a0<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The Pie Chart shows a circular shape divided into coloured sectors that each represent a proportion of the whole. It is best used when the parts sum up to a meaningful whole and do not overlap.  This article describes how to configure a pie chart in versions 4.3.2 and earlier of P2 Explorer.<\/p>\n<p class=\"continue-reading-button\"> <a class=\"continue-reading-link\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/pie-chart\/pie-chart-4-3-2\/\">Read more<i class=\"crycon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":4642,"parent":2684,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":"","_members_access_role":[],"_members_access_error":""},"categories":[11],"tags":[15],"class_list":["post-15377","page","type-page","status-publish","has-post-thumbnail","hentry","category-tutorial","tag-charts-2","Product-ex"],"_links":{"self":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/15377","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/comments?post=15377"}],"version-history":[{"count":0,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/15377\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/2684"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media\/4642"}],"wp:attachment":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media?parent=15377"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/categories?post=15377"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/tags?post=15377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}