title: Rename the "slices" in Pie chart using Highcharts in shiny R
body: <p>Used the below code to  make a pie chart in shiny R interface using Highcharts but was unable to name the slices. I have used a dataset stored in csv format from my app folder.</p>
  
  <pre><code>  output$Hist&lt;-renderHighchart({
  
          data&lt;-read.csv(paste0(getwd(),"/data.csv"),header=TRUE,stringsAsFactors=FALSE)
          highchart() %&gt;%
            hc_chart(type = "pie") %&gt;% 
            hc_plotOptions(
              series = list(showInLegend = TRUE)
            ) %&gt;% 
            hc_add_series(data =  data$Count, name = data$X) %&gt;%
      hc_tooltip(valueDecimals = 0,
                       pointFormat = "Count: {point.y}") %&gt;%
   hc_legend(enabled = TRUE)%&gt;%
  </code></pre>
  
  <p>Image of the chart:
  <a href="https://i.stack.imgur.com/XTUbR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XTUbR.png" alt="this is the chart output"></a></p>
  
  <p><a href="https://i.stack.imgur.com/qa7Xh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qa7Xh.png" alt="sample data"></a></p>