<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Documentation – Creating a Pie Chart with Leader Lines using C&#43;&#43;</title>
    <link>https://docs.aspose.com/cells/go-cpp/creating-pie-chart-with-leader-lines/</link>
    <description>Recent content in Creating a Pie Chart with Leader Lines using C&#43;&#43; on Documentation</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    
	  <atom:link href="https://docs.aspose.com/cells/go-cpp/creating-pie-chart-with-leader-lines/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Gocpp: Custom Slice or Sector Colors in Pie Chart with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/custom-slice-or-sector-colors-in-pie-chart/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/custom-slice-or-sector-colors-in-pie-chart/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

This article explains how to add custom colors to pie chart slices/sectors. By default, pie charts use the Microsoft Excel default template. To use other colors, redefine the colors in the chart.
&lt;/div&gt;

&lt;p&gt;To set a custom color for a pie chart&amp;rsquo;s individual slices or sectors:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Access the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/series/&#34;&gt;&lt;strong&gt;Series&lt;/strong&gt;&lt;/a&gt; object&amp;rsquo;s &lt;a href=&#34;https://reference.aspose.com/cells/cpp/aspose.cells.charts/chartpoint/&#34;&gt;&lt;strong&gt;ChartPoint&lt;/strong&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Assign the color of your choice using the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/area/getforegroundcolor/&#34;&gt;&lt;strong&gt;ChartPoint.GetForegroundColor()&lt;/strong&gt;&lt;/a&gt; property.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;This article also explains how to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Set a chart&amp;rsquo;s category data.&lt;/li&gt;
&lt;li&gt;Set a chart title linked to a cell.&lt;/li&gt;
&lt;li&gt;Adjust the chart title font settings.&lt;/li&gt;
&lt;li&gt;Position the legend.&lt;/li&gt;
&lt;/ul&gt;


&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

&lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/area/getforegroundcolor/&#34;&gt;&lt;strong&gt;ChartPoint.GetForegroundColor()&lt;/strong&gt;&lt;/a&gt; is not specific to pie charts but it can be used for all types of charts.
&lt;/div&gt;

&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-CustomSliceOrSectorColorsInPieChart.go&#34;&gt;&lt;/script&gt;


      </description>
    </item>
    
    <item>
      <title>Gocpp: Find if Data Points are in the Second Pie or Bar on a Pie of Pie or Bar of Pie Chart with Golang via C&#43;&#43;</title>
      <link>https://docs.aspose.com/cells/go-cpp/find-if-data-points-are-in-the-second-pie-or-bar-on-a-pie-of-pie-or-bar-of-pie-chart/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/go-cpp/find-if-data-points-are-in-the-second-pie-or-bar-on-a-pie-of-pie-or-bar-of-pie-chart/</guid>
      <description>
        
        
        &lt;h2 id=&#34;possible-usage-scenarios&#34;&gt;&lt;strong&gt;Possible Usage Scenarios&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;You can find if data points of a series are in the second pie on a &lt;em&gt;Pie of Pie&lt;/em&gt; chart or in the bar of a &lt;em&gt;Bar of Pie&lt;/em&gt; chart using Aspose.Cells. Please use the &lt;a href=&#34;https://reference.aspose.com/cells/go-cpp/chartpoint/isinsecondaryplot/&#34;&gt;ChartPoint.IsInSecondaryPlot&lt;/a&gt; property to determine this.&lt;/p&gt;
&lt;p&gt;Please download the &lt;a href=&#34;5115193.xlsx&#34;&gt;sample excel file&lt;/a&gt; used in the following sample code and see its console output. If you open the sample Excel file, you will find that all data points less than 10 are inside the bar of the &lt;em&gt;Bar of Pie&lt;/em&gt; chart, as also shown by the console output.&lt;/p&gt;
&lt;h2 id=&#34;find-if-data-points-are-in-the-second-pie-or-bar-on-a-pie-of-pie-or-bar-of-pie-chart&#34;&gt;&lt;strong&gt;Find if Data Points are in the Second Pie or Bar on a Pie of Pie or Bar of Pie Chart&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;The following sample code shows how to find if data points are in the second pie or bar on a &lt;em&gt;Pie of Pie&lt;/em&gt; or &lt;em&gt;Bar of Pie&lt;/em&gt; chart.&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/b414abd53259bbc47d2c3c0fe985395b.js?file=Examples-Go-CPP-FindIfDataPointsAreInTheSecondPieOrBarOnAPieOfPieOrBarOfPieChart.go&#34;&gt;&lt;/script&gt;

&lt;h2 id=&#34;console-output&#34;&gt;&lt;strong&gt;Console Output&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Please see the following console output generated after executing the above sample code with the sample Excel file. If &lt;a href=&#34;https://reference.aspose.com/cells/cpp/aspose.cells.charts/chartpoint/isinsecondaryplot/&#34;&gt;IsInSecondaryPlot&lt;/a&gt; is &lt;strong&gt;false&lt;/strong&gt;, the data point is inside the pie; if it is &lt;strong&gt;true&lt;/strong&gt;, the data point is inside the bar.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-java&#34; data-lang=&#34;java&#34;&gt; &lt;span class=&#34;n&#34;&gt;Value&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;15&lt;/span&gt;
&lt;span class=&#34;nl&#34;&gt;
&lt;/span&gt;&lt;span class=&#34;nl&#34;&gt;IsInSecondaryPlot:&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;False&lt;/span&gt;
&lt;span class=&#34;nl&#34;&gt;
&lt;/span&gt;&lt;span class=&#34;nl&#34;&gt;Value:&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;9&lt;/span&gt;
&lt;span class=&#34;nl&#34;&gt;
&lt;/span&gt;&lt;span class=&#34;nl&#34;&gt;IsInSecondaryPlot:&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;True&lt;/span&gt;
&lt;span class=&#34;nl&#34;&gt;
&lt;/span&gt;&lt;span class=&#34;nl&#34;&gt;Value:&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;2&lt;/span&gt;
&lt;span class=&#34;nl&#34;&gt;
&lt;/span&gt;&lt;span class=&#34;nl&#34;&gt;IsInSecondaryPlot:&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;True&lt;/span&gt;
&lt;span class=&#34;nl&#34;&gt;
&lt;/span&gt;&lt;span class=&#34;nl&#34;&gt;Value:&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;40&lt;/span&gt;
&lt;span class=&#34;nl&#34;&gt;
&lt;/span&gt;&lt;span class=&#34;nl&#34;&gt;IsInSecondaryPlot:&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;False&lt;/span&gt;
&lt;span class=&#34;nl&#34;&gt;
&lt;/span&gt;&lt;span class=&#34;nl&#34;&gt;Value:&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;5&lt;/span&gt;
&lt;span class=&#34;nl&#34;&gt;
&lt;/span&gt;&lt;span class=&#34;nl&#34;&gt;IsInSecondaryPlot:&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;True&lt;/span&gt;
&lt;span class=&#34;nl&#34;&gt;
&lt;/span&gt;&lt;span class=&#34;nl&#34;&gt;Value:&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;4&lt;/span&gt;
&lt;span class=&#34;nl&#34;&gt;
&lt;/span&gt;&lt;span class=&#34;nl&#34;&gt;IsInSecondaryPlot:&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;True&lt;/span&gt;
&lt;span class=&#34;nl&#34;&gt;
&lt;/span&gt;&lt;span class=&#34;nl&#34;&gt;Value:&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;25&lt;/span&gt;
&lt;span class=&#34;nl&#34;&gt;
&lt;/span&gt;&lt;span class=&#34;nl&#34;&gt;IsInSecondaryPlot:&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;False&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

      </description>
    </item>
    
  </channel>
</rss>
